var dbx;function dbxManager(a){dbx=this;if(!/^[-_a-z0-9]+$/i.test(a)){alert('Error from dbxManager:\n"'+a+'" is an invalid session ID');return}this.supported=!(document.getElementsByTagName("*").length==0||(navigator.vendor=="KDE"&&typeof window.sidebar=="undefined"));if(!this.supported){return}this.etype=typeof document.addEventListener!="undefined"?"addEventListener":typeof document.attachEvent!="undefined"?"attachEvent":"none";this.eprefix=(this.etype=="attachEvent"?"on":"");if(typeof window.opera!="undefined"&&parseFloat(navigator.userAgent.toLowerCase().split(/opera[\/ ]/)[1].split(" ")[0],10)<7.5){this.etype="none"}if(this.etype=="none"){this.supported=false;return}this.running=0;this.sid=a;this.savedata={};this.cookiestate=this.getCookieState()}dbxManager.prototype.setCookieState=function(){var a=new Date();a.setTime(a.getTime()+(365*24*60*60*1000));var b="";for(j in this.savedata){if(typeof this.savedata[j]!="function"){b+=j+"="+this.savedata[j]+"&"}}this.state=b.replace(/^(.+)&$/,"$1");this.cookiestring=this.state.replace(/,/g,"|");this.cookiestring=this.cookiestring.replace(/=/g,":");if(typeof this.onstatechange=="undefined"||this.onstatechange()){document.cookie="dbx-"+this.sid+"="+this.cookiestring+"; expires="+a.toGMTString()+"; path=/"}};dbxManager.prototype.getCookieState=function(){this.cookiestate=null;if(document.cookie){if(document.cookie.indexOf("dbx-"+this.sid)!=-1){this.cookie=document.cookie.split("dbx-"+this.sid+"=")[1].split(";")[0].split("&");for(var a in this.cookie){if(typeof this.cookie[a]!="function"){this.cookie[a]=this.cookie[a].replace(/\|/g,",");this.cookie[a]=this.cookie[a].replace(/:/g,"=");this.cookie[a]=this.cookie[a].split("=");this.cookie[a][1]=this.cookie[a][1].split(",")}}this.cookiestate={};for(a in this.cookie){if(typeof this.cookie[a]!="function"){this.cookiestate[this.cookie[a][0]]=this.cookie[a][1]}}}}return this.cookiestate};dbxManager.prototype.addDataMember=function(b,a){this.savedata[b]=a};dbxManager.prototype.createElement=function(a){return typeof document.createElementNS!="undefined"?document.createElementNS("http://www.w3.org/1999/xhtml",a):document.createElement(a)};dbxManager.prototype.getTarget=function(f,c,b){if(typeof b!="undefined"){var d=b}else{d=typeof f.target!="undefined"?f.target:f.srcElement}var a=new RegExp(c,"");while(!a.test(d.className)){d=d.parentNode}return d};function dbxGroup(k,m,a,l,u,b,f,e,g,n,p,o,s,t){if(!/^[-_a-z0-9]+$/i.test(k)){alert('Error from dbxGroup:\n"'+k+'" is an invalid container ID');return}this.container=document.getElementById(k);if(this.container==null||!dbx.supported){return}var h=this;this.gid=k;this.dragok=false;this.box=null;this.vertical=m=="vertical";this.threshold=parseInt(a,10);this.restrict=l=="yes";this.resolution=parseInt(u,10);this.toggles=b=="yes";this.defopen=f!="closed";this.vocab={open:e,close:g,move:n,toggle:p,kmove:o,ktoggle:s,syntax:t};this.container.style.position="relative";this.container.style.display="block";if(typeof window.opera!="undefined"){this.container.style.display="run-in"}this.boxes=[];this.buttons=[];this.order=[];this.eles=this.container.getElementsByTagName("*");for(var q=0;q0)){var o=this.boxes[h[d+(g?1:-1)][0]];if(this.resolution>0){var m={x:n.offsetLeft,y:n.offsetTop};var a={x:o.offsetLeft,y:o.offsetTop}}var c={insert:(g?o:n),before:(g?n:o)};this.container.insertBefore(c.insert,c.before);if(this.resolution>0){var b={sibling:new dbxAnimator(this,o,a,this.resolution,true,f),parent:new dbxAnimator(this,n,m,this.resolution,true,f)}}else{f.focus()}break}}}this.getBoxOrder()}};dbxGroup.prototype.compare=function(d,c){return d[1]-c[1]};dbxGroup.prototype.createTooltip=function(d,a){if(this.keydown){this.tooltip=this.container.appendChild(dbx.createElement("span"));this.tooltip.style.visibility="hidden";this.tooltip.className="dbx-tooltip";if(d!=null){this.tooltip.appendChild(document.createTextNode(this.vocab.kmove+this.vocab.ktoggle.replace("%toggle%",d?this.vocab.close:this.vocab.open)))}else{this.tooltip.appendChild(document.createTextNode(this.vocab.kmove))}var b=dbx.getTarget(null,"dbx-box",a);this.tooltip.style.left=b.offsetLeft+"px";this.tooltip.style.top=b.offsetTop+"px";var c=this.tooltip;window.setTimeout(function(){if(c!=null){c.style.visibility="visible"}},500)}};dbxGroup.prototype.removeTooltip=function(){if(this.tooltip!=null){this.tooltip.parentNode.removeChild(this.tooltip);this.tooltip=null}};dbxGroup.prototype.mousedown=function(c,b){var a=typeof c.target!="undefined"?c.target:c.srcElement;if(a.nodeName=="#text"){a=a.parentNode}if(!/dbx\-(toggle|box|group)/i.test(a.className)){while(!/dbx\-(handle|box|group)/i.test(a.className)){a=a.parentNode}}if(/dbx\-handle/i.test(a.className)){this.removeTooltip();this.released=false;this.initial={x:c.clientX,y:c.clientY};this.current={x:0,y:0};this.createCloneBox(b);if(typeof c.preventDefault!="undefined"){c.preventDefault()}if(typeof document.onselectstart!="undefined"){document.onselectstart=function(){return false}}}};dbxGroup.prototype.mousemove=function(b){if(this.dragok&&this.box!=null){this.positive=this.vertical?(b.clientY>this.current.y?true:false):(b.clientX>this.current.x?true:false);this.current={x:b.clientX,y:b.clientY};var a={x:this.current.x-this.initial.x,y:this.current.y-this.initial.y};if(((a.x>=0&&a.x<=this.threshold)||(a.x<=0&&a.x>=0-this.threshold))&&((a.y>=0&&a.y<=this.threshold)||(a.y<=0&&a.y>=0-this.threshold))){this.current.x-=a.x;this.current.y-=a.y}if(this.released||a.x>this.threshold||a.x<(0-this.threshold)||a.y>this.threshold||a.y<(0-this.threshold)){dbx.group=this.container;dbx.box=this.box;dbx.event=b;if(typeof dbx.onboxdrag=="undefined"||dbx.onboxdrag()){this.released=true;if(!this.restrict||!this.vertical){this.boxclone.style.left=(this.current.x-this.difference.x)+"px"}if(!this.restrict||this.vertical){this.boxclone.style.top=(this.current.y-this.difference.y)+"px"}this.moveOriginalToPosition(this.current.x,this.current.y);if(typeof b.preventDefault!="undefined"){b.preventDefault()}}}}return true};dbxGroup.prototype.mouseup=function(a){if(this.box!=null){this.moveOriginalToPosition(a.clientX,a.clientY);this.removeCloneBox();this.getBoxOrder();if(typeof document.onselectstart!="undefined"){document.onselectstart=function(){return true}}}this.dragok=false};dbxGroup.prototype.keypress=function(b,a){if(/^(3[7-9])|(40)$/.test(b.keyCode)){this.removeTooltip();if((this.vertical&&/^(38|40)$/.test(b.keyCode))||(!this.vertical&&/^(37|39)$/.test(b.keyCode))){this.shiftBoxPosition(b,a,/^[3][78]$/.test(b.keyCode)?false:true);if(typeof b.preventDefault!="undefined"){b.preventDefault()}else{return false}typeof b.stopPropagation!="undefined"?b.stopPropagation():b.cancelBubble=true;this.keydown=false}}return true};dbxGroup.prototype.getBoxOrder=function(){this.order=[];var a=this.eles.length;for(var b=0;bc.xy&&k.xyc.xy)){if(this.boxes[f]==this.box){return}var m=this.box.nextSibling;while(m.className==null||!/dbx\-box/.test(m.className)){m=m.nextSibling}if(this.boxes[f]==m){return}if(this.resolution>0){if(this.box[this.vertical?"offsetTop":"offsetLeft"]0&&e!=this.box){var d=new dbxAnimator(this,e,h,this.resolution,false,null)}else{}break}}};function dbxAnimator(b,d,g,e,i,c){this.caller=b;this.box=d;this.timer=null;var h=g[this.caller.vertical?"y":"x"];var a=this.box[this.caller.vertical?"offsetTop":"offsetLeft"];if(h!=a){if(dbx.running>this.caller.boxes.length-1){return}var f=this.caller.createClone(this.box,29999,arguments[2]);f.style.visibility="visible";this.box.style.visibility="hidden";this.animateClone(f,h,a>h?a-h:0-(h-a),this.caller.vertical?"top":"left",e,i,c)}}dbxAnimator.prototype.animateClone=function(f,d,g,a,e,h,b){var i=this;var c=0;dbx.running++;this.timer=window.setInterval(function(){c++;d+=g/e;f.style[a]=d+"px";if(c==e){window.clearTimeout(i.timer);i.timer=null;dbx.running--;i.caller.container.removeChild(f);i.box.style.visibility="visible";if(h){if(b!=null&&b.parentNode.style.visibility!="hidden"){b.focus()}else{if(i.caller.toggles){var k=i.caller.buttons[parseInt(i.box.className.split("dbxid")[1],10)];if(k!=null&&typeof k.isactive!="undefined"){k.focus()}}}}}},20)};if(typeof window.attachEvent!="undefined"){window.attachEvent("onunload",function(){var e=["mousedown","mousemove","mouseup","mouseout","click","keydown","keyup","focus","blur","selectstart","statechange","boxdrag","boxopen","boxclose"];var d=e.length;var b=document.all.length;for(var c=0;c