function MM_preloadStyles(){var g=document;if(g.Styles){if(!g.MM_p){g.MM_p=new Array()}var f,e=g.MM_p.length,b=MM_preloadStyles.arguments;for(f=0;f<b.length;f++){if(b[f].indexOf("#")!=0){g.MM_p[e]=new Style;g.MM_p[e++].src=b[f]}}}}function dtmlXMLLoaderObject(b,e,d,a){this.xmlDoc="";if(arguments.length==2){this.async=true}else{this.async=d}this.onloadAction=b||null;this.mainObject=e||null;this.waitCall=null;this.rSeed=a||false;return this}dtmlXMLLoaderObject.prototype.waitLoadFunction=function(a){this.check=function(){if((a)&&(a.onloadAction!=null)){if((!a.xmlDoc.readyState)||(a.xmlDoc.readyState==4)){a.onloadAction(a.mainObject,null,null,null,a);if(a.waitCall){a.waitCall();a.waitCall=null}a=null}}};return this.check};dtmlXMLLoaderObject.prototype.getXMLTopNode=function(b){if(this.xmlDoc.responseXML){var a=this.xmlDoc.responseXML.getElementsByTagName(b);var e=a[0]}else{var e=this.xmlDoc.documentElement}if(e){this._retry=false;return e}if((_isIE)&&(!this._retry)){var d=this.xmlDoc.responseText;this._retry=true;this.xmlDoc=new ActiveXObject("Microsoft.XMLDOM");this.xmlDoc.async=false;this.xmlDoc.loadXML(d);return this.getXMLTopNode(b)}dhtmlxError.throwError("LoadXML","Incorrect XML",[this.xmlDoc,this.mainObject]);return document.createElement("DIV")};dtmlXMLLoaderObject.prototype.loadXMLString=function(b){try{var d=new DOMParser();this.xmlDoc=d.parseFromString(b,"text/xml")}catch(a){this.xmlDoc=new ActiveXObject("Microsoft.XMLDOM");this.xmlDoc.async=this.async;this.xmlDoc.loadXML(b)}this.onloadAction(this.mainObject,null,null,null,this);if(this.waitCall){this.waitCall();this.waitCall=null}};dtmlXMLLoaderObject.prototype.loadXML=function(d,b,a,e){this.filePath=d;if(this.rSeed){d+=((d.indexOf("?")!=-1)?"&":"?")+"a_dhx_rSeed="+(new Date()).valueOf()}if((!_isIE)&&(window.XMLHttpRequest)){this.xmlDoc=new XMLHttpRequest()}else{if(document.implementation&&document.implementation.createDocument){this.xmlDoc=document.implementation.createDocument("","",null);this.xmlDoc.onload=new this.waitLoadFunction(this);this.xmlDoc.load(d);return}else{this.xmlDoc=new ActiveXObject("Microsoft.XMLHTTP")}}this.xmlDoc.open(b?"POST":"GET",d,this.async);if(e){this.xmlDoc.setRequestHeader("User-Agent","dhtmlxRPC v0.1 ("+navigator.userAgent+")");this.xmlDoc.setRequestHeader("Content-type","text/xml")}else{if(b){this.xmlDoc.setRequestHeader("Content-type","application/x-www-form-urlencoded")}}this.xmlDoc.onreadystatechange=new this.waitLoadFunction(this);this.xmlDoc.send(null||a)};dtmlXMLLoaderObject.prototype.destructor=function(){this.onloadAction=null;this.mainObject=null;this.xmlDoc=null;return null};function callerFunction(a,b){this.handler=function(d){if(!d){d=window.event}a(d,b);return true};return this.handler}function getAbsoluteLeft(b){var d=b.offsetLeft;var a=b.offsetParent;while(a!=null){d+=a.offsetLeft;a=a.offsetParent}return d}function getAbsoluteTop(d){var b=d.offsetTop;var a=d.offsetParent;while(a!=null){b+=a.offsetTop;a=a.offsetParent}return b}function convertStringToBoolean(a){if(typeof(a)=="string"){a=a.toLowerCase()}switch(a){case"1":case"true":case"yes":case"y":case 1:case true:return true;break;default:return false}}function getUrlSymbol(a){if(a.indexOf("?")!=-1){return"&"}else{return"?"}}function dhtmlDragAndDropObject(){if(window.dhtmlDragAndDrop){return window.dhtmlDragAndDrop}this.lastLanding=0;this.dragNode=0;this.dragStartNode=0;this.dragStartObject=0;this.tempDOMU=null;this.tempDOMM=null;this.waitDrag=0;window.dhtmlDragAndDrop=this;return this}dhtmlDragAndDropObject.prototype.removeDraggableItem=function(a){a.onmousedown=null;a.dragStarter=null;a.dragLanding=null};dhtmlDragAndDropObject.prototype.addDraggableItem=function(a,b){a.onmousedown=this.preCreateDragCopy;a.dragStarter=b;this.addDragLanding(a,b)};dhtmlDragAndDropObject.prototype.addDragLanding=function(a,b){a.dragLanding=b};dhtmlDragAndDropObject.prototype.preCreateDragCopy=function(a){if(window.dhtmlDragAndDrop.waitDrag){window.dhtmlDragAndDrop.waitDrag=0;document.body.onmouseup=window.dhtmlDragAndDrop.tempDOMU;document.body.onmousemove=window.dhtmlDragAndDrop.tempDOMM;return false}window.dhtmlDragAndDrop.waitDrag=1;window.dhtmlDragAndDrop.tempDOMU=document.body.onmouseup;window.dhtmlDragAndDrop.tempDOMM=document.body.onmousemove;window.dhtmlDragAndDrop.dragStartNode=this;window.dhtmlDragAndDrop.dragStartObject=this.dragStarter;document.body.onmouseup=window.dhtmlDragAndDrop.preCreateDragCopy;document.body.onmousemove=window.dhtmlDragAndDrop.callDrag;if((a)&&(a.preventDefault)){a.preventDefault();return false}return false};dhtmlDragAndDropObject.prototype.callDrag=function(d){if(!d){d=window.event}dragger=window.dhtmlDragAndDrop;if((d.button==0)&&(_isIE)){return dragger.stopDrag()}if(!dragger.dragNode){dragger.dragNode=dragger.dragStartObject._createDragNode(dragger.dragStartNode,d);if(!dragger.dragNode){return dragger.stopDrag()}dragger.gldragNode=dragger.dragNode;document.body.appendChild(dragger.dragNode);document.body.onmouseup=dragger.stopDrag;dragger.waitDrag=0;dragger.dragNode.pWindow=window;dragger.initFrameRoute()}if(dragger.dragNode.parentNode!=window.document.body){var a=dragger.gldragNode;if(dragger.gldragNode.old){a=dragger.gldragNode.old}a.parentNode.removeChild(a);var b=dragger.dragNode.pWindow;if(_isIE){var g=document.createElement("Div");g.innerHTML=dragger.dragNode.outerHTML;dragger.dragNode=g.childNodes[0]}else{dragger.dragNode=dragger.dragNode.cloneNode(true)}dragger.dragNode.pWindow=window;dragger.gldragNode.old=dragger.dragNode;document.body.appendChild(dragger.dragNode);b.dhtmlDragAndDrop.dragNode=dragger.dragNode}dragger.dragNode.style.left=d.clientX+15+(dragger.fx?dragger.fx*(-1):0)+(document.body.scrollLeft||document.documentElement.scrollLeft)+"px";dragger.dragNode.style.top=d.clientY+3+(dragger.fy?dragger.fy*(-1):0)+(document.body.scrollTop||document.documentElement.scrollTop)+"px";if(!d.srcElement){var f=d.target}else{f=d.srcElement}dragger.checkLanding(f,d)};dhtmlDragAndDropObject.prototype.calculateFramePosition=function(f){if(window.name){var d=parent.frames[window.name].frameElement.offsetParent;var e=0;var b=0;while(d){e+=d.offsetLeft;b+=d.offsetTop;d=d.offsetParent}if((parent.dhtmlDragAndDrop)){var a=parent.dhtmlDragAndDrop.calculateFramePosition(1);e+=a.split("_")[0]*1;b+=a.split("_")[1]*1}if(f){return e+"_"+b}else{this.fx=e}this.fy=b}return"0_0"};dhtmlDragAndDropObject.prototype.checkLanding=function(b,a){if((b)&&(b.dragLanding)){if(this.lastLanding){this.lastLanding.dragLanding._dragOut(this.lastLanding)}this.lastLanding=b;this.lastLanding=this.lastLanding.dragLanding._dragIn(this.lastLanding,this.dragStartNode,a.clientX,a.clientY,a);this.lastLanding_scr=(_isIE?a.srcElement:a.target)}else{if((b)&&(b.tagName!="BODY")){this.checkLanding(b.parentNode,a)}else{if(this.lastLanding){this.lastLanding.dragLanding._dragOut(this.lastLanding,a.clientX,a.clientY,a)}this.lastLanding=0;if(this._onNotFound){this._onNotFound()}}}};dhtmlDragAndDropObject.prototype.stopDrag=function(b,d){dragger=window.dhtmlDragAndDrop;if(!d){dragger.stopFrameRoute();var a=dragger.lastLanding;dragger.lastLanding=null;if(a){a.dragLanding._drag(dragger.dragStartNode,dragger.dragStartObject,a,(_isIE?event.srcElement:b.target))}}dragger.lastLanding=null;if((dragger.dragNode)&&(dragger.dragNode.parentNode==document.body)){dragger.dragNode.parentNode.removeChild(dragger.dragNode)}dragger.dragNode=0;dragger.gldragNode=0;dragger.fx=0;dragger.fy=0;dragger.dragStartNode=0;dragger.dragStartObject=0;document.body.onmouseup=dragger.tempDOMU;document.body.onmousemove=dragger.tempDOMM;dragger.tempDOMU=null;dragger.tempDOMM=null;dragger.waitDrag=0};dhtmlDragAndDropObject.prototype.stopFrameRoute=function(b){if(b){window.dhtmlDragAndDrop.stopDrag(1,1)}for(var a=0;a<window.frames.length;a++){if((window.frames[a]!=b)&&(window.frames[a].dhtmlDragAndDrop)){window.frames[a].dhtmlDragAndDrop.stopFrameRoute(window)}}if((parent.dhtmlDragAndDrop)&&(parent!=window)&&(parent!=b)){parent.dhtmlDragAndDrop.stopFrameRoute(window)}};dhtmlDragAndDropObject.prototype.initFrameRoute=function(b,d){if(b){window.dhtmlDragAndDrop.preCreateDragCopy();window.dhtmlDragAndDrop.dragStartNode=b.dhtmlDragAndDrop.dragStartNode;window.dhtmlDragAndDrop.dragStartObject=b.dhtmlDragAndDrop.dragStartObject;window.dhtmlDragAndDrop.dragNode=b.dhtmlDragAndDrop.dragNode;window.dhtmlDragAndDrop.gldragNode=b.dhtmlDragAndDrop.dragNode;window.document.body.onmouseup=window.dhtmlDragAndDrop.stopDrag;window.waitDrag=0;if(((!_isIE)&&(d))&&((!_isFF)||(_FFrv<1.8))){window.dhtmlDragAndDrop.calculateFramePosition()}}if((parent.dhtmlDragAndDrop)&&(parent!=window)&&(parent!=b)){parent.dhtmlDragAndDrop.initFrameRoute(window)}for(var a=0;a<window.frames.length;a++){if((window.frames[a]!=b)&&(window.frames[a].dhtmlDragAndDrop)){window.frames[a].dhtmlDragAndDrop.initFrameRoute(window,((!b||d)?1:0))}}};var _isFF=false;var _isIE=false;var _isOpera=false;var _isKHTML=false;var _isMacOS=false;if(navigator.userAgent.indexOf("Macintosh")!=-1){_isMacOS=true}if((navigator.userAgent.indexOf("Safari")!=-1)||(navigator.userAgent.indexOf("Konqueror")!=-1)){_isKHTML=true}else{if(navigator.userAgent.indexOf("Opera")!=-1){_isOpera=true;_OperaRv=parseFloat(navigator.userAgent.substr(navigator.userAgent.indexOf("Opera")+6,3))}else{if(navigator.appName.indexOf("Microsoft")!=-1){_isIE=true}else{_isFF=true;var _FFrv=parseFloat(navigator.userAgent.split("rv:")[1])}}}function isIE(){if(navigator.appName.indexOf("Microsoft")!=-1){if(navigator.userAgent.indexOf("Opera")==-1){return true}}return false}dtmlXMLLoaderObject.prototype.doXPath=function(d,a){if((_isOpera)||(_isKHTML)){return this.doXPathOpera(d,a)}if(_isIE){if(!a){if(!this.xmlDoc.nodeName){a=this.xmlDoc.responseXML}else{a=this.xmlDoc}}return a.selectNodes(d)}else{var f=a;if(!a){if(!this.xmlDoc.nodeName){a=this.xmlDoc.responseXML}else{a=this.xmlDoc}}if(a.nodeName.indexOf("document")!=-1){f=a}else{f=a;a=a.ownerDocument}var g=new Array();var b=a.evaluate(d,f,null,XPathResult.ANY_TYPE,null);var e=b.iterateNext();while(e){g[g.length]=e;e=b.iterateNext()}return g}};function _dhtmlxError(b,a,d){if(!this.catches){this.catches=new Array()}return this}_dhtmlxError.prototype.catchError=function(b,a){this.catches[b]=a};_dhtmlxError.prototype.throwError=function(b,a,d){if(this.catches[b]){return this.catches[b](b,a,d)}if(this.catches.ALL){return this.catches.ALL(b,a,d)}alert("Error type: "+arguments[0]+"\nDescription: "+arguments[1]);return null};window.dhtmlxError=new _dhtmlxError();dtmlXMLLoaderObject.prototype.doXPathOpera=function(d,a){var f=d.replace(/[\/]+/gi,"/").split("/");var e=null;var b=1;if(!f.length){return[]}if(f[0]=="."){e=[a]}else{if(f[0]==""){e=this.xmlDoc.responseXML.getElementsByTagName(f[b].replace(/\[[^\]]*\]/g,""));b++}else{return[]}}for(b;b<f.length;b++){e=this._getAllNamedChilds(e,f[b])}if(f[b-1].indexOf("[")!=-1){e=this._filterXPath(e,f[b-1])}return e};dtmlXMLLoaderObject.prototype._filterXPath=function(e,d){var g=new Array();var d=d.replace(/[^\[]*\[\@/g,"").replace(/[\[\]\@]*/g,"");for(var f=0;f<e.length;f++){if(e[f].getAttribute(d)){g[g.length]=e[f]}}return g};dtmlXMLLoaderObject.prototype._getAllNamedChilds=function(e,d){var h=new Array();for(var g=0;g<e.length;g++){for(var f=0;f<e[g].childNodes.length;f++){if(e[g].childNodes[f].tagName==d){h[h.length]=e[g].childNodes[f]}}}return h};function dhtmlXHeir(e,d){for(c in d){if(typeof(d[c])=="function"){e[c]=d[c]}}return e}function dhtmlxEvent(b,d,a){if(b.addEventListener){b.addEventListener(d,a,false)}else{if(b.attachEvent){b.attachEvent("on"+d,a)}}}function dhtmlXTreeObject(h,f,b,a){if(_isIE){try{document.execCommand("BackgroundImageCache",false,true)}catch(g){}}if(typeof(h)!="object"){this.parentObject=document.getElementById(h)}else{this.parentObject=h}this._itim_dg=true;this.dlmtr=",";this.dropLower=false;this.enableIEImageFix();this.xmlstate=0;this.mytype="tree";this.smcheck=true;this.width=f;this.height=b;this.rootId=a;this.childCalc=null;this.def_img_x="18px";this.def_img_y="18px";this.def_line_img_x="18px";this.def_line_img_y="18px";this._dragged=new Array();this._selected=new Array();this.style_pointer="pointer";if(navigator.appName=="Microsoft Internet Explorer"){this.style_pointer="hand"}this._aimgs=true;this.htmlcA=" [";this.htmlcB="]";this.lWin=window;this.cMenu=0;this.mlitems=0;this.dadmode=0;this.slowParse=false;this.autoScroll=true;this.hfMode=0;this.nodeCut=new Array();this.XMLsource=0;this.XMLloadingWarning=0;this._idpull={};this._pullSize=0;this.treeLinesOn=true;this.tscheck=false;this.timgen=true;this.dpcpy=false;this._ld_id=null;this.imPath="treeGfx/";this.checkArray=new Array("iconUnCheckAll.gif","iconCheckAll.gif","iconCheckGray.gif","iconUncheckDis.gif","iconCheckDis.gif","iconCheckDis.gif");this.radioArray=new Array("radio_off.gif","radio_on.gif","radio_on.gif","radio_off.gif","radio_on.gif","radio_on.gif");this.lineArray=new Array("line2.gif","line3.gif","line4.gif","blank.gif","blank.gif","line1.gif");this.minusArray=new Array("minus2.gif","minus3.gif","minus4.gif","minus.gif","minus5.gif");this.plusArray=new Array("plus2.gif","plus3.gif","plus4.gif","plus.gif","plus5.gif");this.imageArray=new Array("leaf.gif","folderOpen.gif","folderClosed.gif");this.cutImg=new Array(0,0,0);this.cutImage="but_cut.gif";this.dragger=new dhtmlDragAndDropObject();this.htmlNode=new dhtmlXTreeItemObject(this.rootId,"",0,this);this.htmlNode.htmlNode.childNodes[0].childNodes[0].style.display="none";this.htmlNode.htmlNode.childNodes[0].childNodes[0].childNodes[0].className="hiddenRow";this.allTree=this._createSelf();this.allTree.appendChild(this.htmlNode.htmlNode);if(_isFF){this.allTree.childNodes[0].width="100%"}this.allTree.onselectstart=new Function("return false;");this.XMLLoader=new dtmlXMLLoaderObject(this._parseXMLTree,this,true,this.no_cashe);if(_isIE){this.preventIECashing(true)}this.selectionBar=document.createElement("DIV");this.selectionBar.className="selectionBar";this.selectionBar.innerHTML="&nbsp;";this.selectionBar.style.display="none";this.allTree.appendChild(this.selectionBar);var d=this;if(window.addEventListener){window.addEventListener("unload",function(){try{d.destructor()}catch(j){}},false)}if(window.attachEvent){window.attachEvent("onunload",function(){try{d.destructor()}catch(j){}})}this.dhx_Event();return this}dhtmlXTreeObject.prototype.enableIEImageFix=function(a){if(!a){this._getImg=function(b){return document.createElement((b==this.rootId)?"div":"img")};this._setSrc=function(e,d){e.src=d};this._getSrc=function(b){return b.src}}else{this._getImg=function(){var b=document.createElement("DIV");b.innerHTML="&nbsp;";b.style.width="18px";b.style.height="18px";return b};this._setSrc=function(e,d){e.style.backgroundImage="url("+d+")"};this._getSrc=function(b){var d=b.style.backgroundImage;return b.substr(4,b.length-5)}}};dhtmlXTreeObject.prototype.destructor=function(){for(var b in this._idpull){var d=this._idpull[b];if(!d){continue}d.parentObject=null;d.treeNod=null;d.childNodes=null;d.span=null;d.tr.nodem=null;d.tr=null;d.htmlNode.objBelong=null;d.htmlNode=null;this._idpull[b]=null}this.allTree.innerHTML="";this.XMLLoader.destructor();for(var b in this){this[b]=null}};function cObject(){return this}cObject.prototype=new Object;cObject.prototype.clone=function(){function a(){}a.prototype=this;return new a()};function dhtmlXTreeItemObject(g,b,d,a,e,f){this.htmlNode="";this.acolor="";this.scolor="";this.tr=0;this.childsCount=0;this.tempDOMM=0;this.tempDOMU=0;this.dragSpan=0;this.dragMove=0;this.span=0;this.closeble=1;this.childNodes=new Array();this.userData=new cObject();this.checkstate=0;this.treeNod=a;this.label=b;this.parentObject=d;this.actionHandler=e;this.images=new Array(a.imageArray[0],a.imageArray[1],a.imageArray[2]);this.id=a._globalIdStorageAdd(g,this);if(this.treeNod.checkBoxOff){this.htmlNode=this.treeNod._createItem(1,this,f)}else{this.htmlNode=this.treeNod._createItem(0,this,f)}this.htmlNode.objBelong=this;return this}dhtmlXTreeObject.prototype._globalIdStorageAdd=function(b,a){if(this._globalIdStorageFind(b,1,1)){b=b+"_"+(new Date()).valueOf();return this._globalIdStorageAdd(b,a)}this._idpull[b]=a;this._pullSize++;return b};dhtmlXTreeObject.prototype._globalIdStorageSub=function(a){if(this._idpull[a]){this._idpull[a]=null;this._pullSize--}if((this._locker)&&(this._locker[a])){this._locker[a]=false}};dhtmlXTreeObject.prototype._globalIdStorageFind=function(g,a,d,e){var f=this._idpull[g];if(f){if((f.unParsed)&&(!d)){this.reParse(f,0)}if((e)&&(this._edsbpsA)){for(var b=0;b<this._edsbpsA.length;b++){if(this._edsbpsA[b][2]==g){dhtmlxError.throwError("getItem","Requested item still in parsing process.",g);return null}}}return f}if((this.slowParse)&&(g!=0)&&(!a)){return this.preParse(g)}else{return null}};dhtmlXTreeObject.prototype._getSubItemsXML=function(a){var d="";for(var b=0;b<a.childNodes.length;b++){if(a.childNodes[b].tagName=="item"){if(!d){d=a.childNodes[b].getAttribute("id")}else{d+=this.dlmtr+a.childNodes[b].getAttribute("id")}}}return d};dhtmlXTreeObject.prototype.enableSmartXMLParsing=function(a){this.slowParse=convertStringToBoolean(a)};dhtmlXTreeObject.prototype.findXML=function(d,b,f){for(var a=0;a<d.childNodes.length;a++){if(d.childNodes[a].nodeType==1){if(d.childNodes[a].getAttribute(b)==f){return d}var e=this.findXML(d.childNodes[a],b,f);if(e){return(e)}}}return false};dhtmlXTreeObject.prototype._getAllCheckedXML=function(g,f,k){var b=g.childNodes.length;for(var d=0;d<b;d++){var e=g.childNodes[d];if(e.tagName=="item"){var h=e.getAttribute("checked");var a=false;if(k==2){if(h=="-1"){a=true}}else{if(k==1){if((h)&&(h!="0")&&(h!="-1")){a=true}}else{if(k==0){if((!h)||(h=="0")){a=true}}}}if(a){if(f){f+=this.dlmtr+e.getAttribute("id")}else{f=e.getAttribute("id")}}f=this._getAllCheckedXML(e,f,k)}}if(f){return f}else{return""}};dhtmlXTreeObject.prototype._setSubCheckedXML=function(e,b){if(!b){return}if(!_isOpera){var g=e?"1":"";var f=this.XMLLoader.doXPath(".//item",b);for(var d=0;d<f.length;d++){f[d].setAttribute("checked",g)}}else{for(var d=0;d<b.childNodes.length;d++){var a=b.childNodes[d];if((a)&&(a.tagName=="item")){if(e){a.setAttribute("checked",1)}else{a.setAttribute("checked","")}this._setSubCheckedXML(e,a)}}}};dhtmlXTreeObject.prototype._getAllScraggyItemsXML=function(f,a){var g="";var b=false;for(var e=0;e<f.childNodes.length;e++){if((f.childNodes[e].tagName=="item")){b=true;var d=this._getAllScraggyItemsXML(f.childNodes[e],0);if(d!=""){if(g){g+=this.dlmtr+d}else{g=d}}}}if((!a)&&(!b)){if(g){g+=this.dlmtr+f.getAttribute("id")}else{g=f.getAttribute("id")}}return g};dhtmlXTreeObject.prototype._getAllFatItemsXML=function(f,a){var g="";var b=false;for(var e=0;e<f.childNodes.length;e++){if((f.childNodes[e].tagName=="item")){b=true;var d=this._getAllFatItemsXML(f.childNodes[e],0);if(d!=""){if(g){g+=this.dlmtr+d}else{g=d}}}}if((!a)&&(b)){if(g){g+=this.dlmtr+f.getAttribute("id")}else{g=f.getAttribute("id")}}return g};dhtmlXTreeObject.prototype._getAllSubItemsXML=function(e,d,b){for(var a=0;a<b.childNodes.length;a++){if(b.childNodes[a].tagName=="item"){if(!d){d=b.childNodes[a].getAttribute("id")}else{d+=this.dlmtr+b.childNodes[a].getAttribute("id")}d=this._getAllSubItemsXML(e,d,b.childNodes[a])}}return d};dhtmlXTreeObject.prototype.reParse=function(d){var g=this;if(!this.parsCount){g.callEvent("onXLS",[g,d.id])}this.xmlstate=1;var e=d.unParsed;d.unParsed=0;this.XMLloadingWarning=1;var a=this.parsingOn;var h=this.waitUpdateXML;var j=this.parsedArray;this.parsedArray=new Array();this.waitUpdateXML=false;this.parsingOn=d.id;this.parsedArray=new Array();this.setCheckList="";this._parseXMLTree(this,e,d.id,2,d);var k=this.setCheckList.split(this.dlmtr);for(var f=0;f<this.parsedArray.length;f++){d.htmlNode.childNodes[0].appendChild(this.parsedArray[f])}this.oldsmcheck=this.smcheck;this.smcheck=false;for(var b=0;b<k.length;b++){if(k[b]){this.setCheck(k[b],1)}}this.smcheck=this.oldsmcheck;this.parsingOn=a;this.waitUpdateXML=h;this.parsedArray=j;this.XMLloadingWarning=0;this._redrawFrom(this,d);return true};dhtmlXTreeObject.prototype.preParse=function(g){if(!g){return null}var f=this.XMLLoader.getXMLTopNode("tree");var b=0;var a=0;if(!f){return}for(b=0;b<f.childNodes.length;b++){if(f.childNodes[b].nodeType==1){var e=this.findXML(f.childNodes[b],"id",g);if(e!==false){var d=new Array();while(1){d[d.length]=e.getAttribute("id");f=this._globalIdStorageFind(e.getAttribute("id"),true,true,true);if(f){break}e=e.parentNode}for(var b=d.length-1;b>=0;b--){this._globalIdStorageFind(d[b],true,false)}f=this._globalIdStorageFind(g,true,false);if(!f){dhtmlxError.throwError("getItem","The item "+g+" not operable. Seems you have non-unique IDs in tree's XML.",g)}return f}}}return null};dhtmlXTreeObject.prototype._escape=function(a){switch(this.utfesc){case"none":return a;break;case"utf8":return encodeURI(a);break;default:return escape(a);break}};dhtmlXTreeObject.prototype._drawNewTr=function(f,d){var e=document.createElement("tr");var b=document.createElement("td");var a=document.createElement("td");b.appendChild(document.createTextNode(" "));a.colSpan=3;a.appendChild(f);e.appendChild(b);e.appendChild(a);return e};dhtmlXTreeObject.prototype.loadXMLString=function(d,b){var a=this;if(!this.parsCount){this.callEvent("onXLS",[a,null])}this.xmlstate=1;if(b){this.XMLLoader.waitCall=b}this.XMLLoader.loadXMLString(d)};dhtmlXTreeObject.prototype.loadXML=function(a,d){var b=this;if(!this.parsCount){this.callEvent("onXLS",[b,this._ld_id])}this._ld_id=null;this.xmlstate=1;this.XMLLoader=new dtmlXMLLoaderObject(this._parseXMLTree,this,true,this.no_cashe);if(d){this.XMLLoader.waitCall=d}this.XMLLoader.loadXML(a)};dhtmlXTreeObject.prototype._attachChildNode=function(h,g,e,j,t,s,r,k,d,m,n){if(m){h=m.parentObject}if(((h.XMLload==0)&&(this.XMLsource))&&(!this.XMLloadingWarning)){h.XMLload=1;this._loadDynXML(h.id)}var l=h.childsCount;var u=h.childNodes;if(n){if(n.tr.previousSibling.previousSibling){m=n.tr.previousSibling.nodem}else{k=k.replace("TOP","")+",TOP"}}if(m){var f,q;for(f=0;f<l;f++){if(u[f]==m){for(q=l;q!=f;q--){u[1+q]=u[q]}break}}f++;l=f}if(k){var o=k.split(",");for(var p=0;p<o.length;p++){switch(o[p]){case"TOP":if(h.childsCount>0){m=new Object;m.tr=h.childNodes[0].tr.previousSibling}h._has_top=true;for(f=l;f>0;f--){u[f]=u[f-1]}l=0;break}}}u[l]=new dhtmlXTreeItemObject(g,e,h,this,null,1);g=u[l].id;if(t){u[l].images[0]=t}if(s){u[l].images[1]=s}if(r){u[l].images[2]=r}h.childsCount++;var b=this._drawNewTr(u[l].htmlNode);if((this.XMLloadingWarning)||(this._hAdI)){u[l].htmlNode.parentNode.parentNode.style.display="none"}if((m)&&(m.tr.nextSibling)){h.htmlNode.childNodes[0].insertBefore(b,m.tr.nextSibling)}else{if(this.parsingOn==h.id){this.parsedArray[this.parsedArray.length]=b}else{h.htmlNode.childNodes[0].appendChild(b)}}if((m)&&(!m.span)){m=null}if(this.XMLsource){if((d)&&(d!=0)){u[l].XMLload=0}else{u[l].XMLload=1}}u[l].tr=b;b.nodem=u[l];if(h.itemId==0){b.childNodes[0].className="hiddenRow"}if((h._r_logic)||(this._frbtr)){this._setSrc(u[l].htmlNode.childNodes[0].childNodes[0].childNodes[1].childNodes[0],this.imPath+this.radioArray[0])}if(k){var o=k.split(",");for(var p=0;p<o.length;p++){switch(o[p]){case"SELECT":this.selectItem(g,false);break;case"CALL":this.selectItem(g,true);break;case"CHILD":u[l].XMLload=0;break;case"CHECKED":if(this.XMLloadingWarning){this.setCheckList+=this.dlmtr+g}else{this.setCheck(g,1)}break;case"HCHECKED":this._setCheck(u[l],"unsure");break;case"OPEN":u[l].openMe=1;break}}}if(!this.XMLloadingWarning){if((this._getOpenState(h)<0)&&(!this._hAdI)){this.openItem(h.id)}if(m){this._correctPlus(m);this._correctLine(m)}this._correctPlus(h);this._correctLine(h);this._correctPlus(u[l]);if(h.childsCount>=2){this._correctPlus(u[h.childsCount-2]);this._correctLine(u[h.childsCount-2])}if(h.childsCount!=2){this._correctPlus(u[0])}if(this.tscheck){this._correctCheckStates(h)}if(this._onradh){if(this.xmlstate==1){var a=this.onXLE;this.onXLE=function(v){this._onradh(g);if(a){a(v)}}}else{this._onradh(g)}}}if(this.cMenu){this.cMenu.setContextZone(u[l].span,u[l].id)}return u[l]};dhtmlXTreeObject.prototype.enableContextMenu=function(a){if(a){this.cMenu=a}};dhtmlXTreeObject.prototype.setItemContextMenu=function(f,e){var a=f.toString().split(this.dlmtr);for(var d=0;d<a.length;d++){var b=this._globalIdStorageFind(a[d]);if(!b){continue}e.setContextZone(b.span,b.id)}};dhtmlXTreeObject.prototype.insertNewItem=function(d,j,l,b,g,f,e,a,h){var m=this._globalIdStorageFind(d);if(!m){return(-1)}var k=this._attachChildNode(m,j,l,b,g,f,e,a,h);if((!this.XMLloadingWarning)&&(this.childCalc)){this._fixChildCountLabel(m)}return k};dhtmlXTreeObject.prototype.insertNewChild=function(d,j,k,b,g,f,e,a,h){return this.insertNewItem(d,j,k,b,g,f,e,a,h)};dhtmlXTreeObject.prototype._parseXMLTree=function(I,z,d,j,e,u){if(!e){e=I.XMLLoader}I.skipLock=true;if(!I.parsCount){I.parsCount=1}else{I.parsCount++}I.XMLloadingWarning=1;var A="";if(!z){z=e.getXMLTopNode("tree");d=z.getAttribute("id");if(z.getAttribute("radio")){I.htmlNode._r_logic=true}I.parsingOn=d;I.parsedArray=new Array();I.setCheckList=""}var l=I._globalIdStorageFind(d);if((l.childsCount)&&(!u)&&(!I._edsbps)&&(!l._has_top)){var T=l.childNodes[l.childsCount-1]}else{var T=0}if(z.getAttribute("order")){I._reorderXMLBranch(z)}var w=0;for(var P=u||0;P<z.childNodes.length;P++){if((z.childNodes[P].nodeType==1)&&(z.childNodes[P].tagName=="item")){l.XMLload=1;if((I._epgps)&&(I._epgpsC==w)){this._setNextPageSign(l,w+1*(u||0),j,z);break}var s=z.childNodes[P];var q=s.getAttribute("text");if((q===null)||(typeof(q)=="unknown")){for(var x=0;x<s.childNodes.length;x++){if(s.childNodes[x].tagName=="itemtext"){q=s.childNodes[x].firstChild.data;break}}}var D=s.getAttribute("id");if((typeof(I.waitUpdateXML)=="object")&&(!I.waitUpdateXML[D])){I._parseXMLTree(I,z.childNodes[P],D,1,e);continue}var L=s.getAttribute("im0");var K=s.getAttribute("im1");var J=s.getAttribute("im2");var r=s.getAttribute("aCol");var C=s.getAttribute("sCol");var v=s.getAttribute("child");var b=s.getAttribute("imwidth");var k=s.getAttribute("imheight");var V=s.getAttribute("top");var G=s.getAttribute("radio");var h=s.getAttribute("topoffset");var S=s.getAttribute("open");var f=s.getAttribute("select");var t=s.getAttribute("call");var g=s.getAttribute("checked");var M=s.getAttribute("closeable");var E=s.getAttribute("tooltip");var m=s.getAttribute("nocheckbox");var Q=s.getAttribute("disabled");var N=s.getAttribute("style");var y=s.getAttribute("locked");var R="";if(f){R+=",SELECT"}if(V){R+=",TOP"}if(t){A=D}if(g==-1){R+=",HCHECKED"}else{if(g){R+=",CHECKED"}}if(S){R+=",OPEN"}if(I.waitUpdateXML){if(I._globalIdStorageFind(D)){var p=I.updateItem(D,q,L,K,J,g)}else{if(w==0){R+=",TOP"}else{T=l.childNodes[w]}var p=I._attachChildNode(l,D,q,0,L,K,J,R,v,0,T);T=null}}else{var p=I._attachChildNode(l,D,q,0,L,K,J,R,v,0,T)}if(E){if(I._dhxTT){dhtmlxTooltip.setTooltip(p.span.parentNode.parentNode,E)}else{p.span.parentNode.parentNode.title=E}}if(N){if(p.span.style.cssText){p.span.style.cssText+=(";"+N)}else{p.span.setAttribute("style",p.span.getAttribute("style")+"; "+N)}}if(G){p._r_logic=true}if(m){p.span.parentNode.previousSibling.previousSibling.childNodes[0].style.display="none";p.nocheckbox=true}if(Q){if(g!=null){I._setCheck(p,convertStringToBoolean(g))}I.disableCheckbox(p,1)}p._acc=v||0;if(I.parserExtension){I.parserExtension._parseExtension(z.childNodes[P],I.parserExtension,D,d)}I.setItemColor(p,r,C);if(y=="1"){I._lockItem(p,true,true)}if((b)||(k)){I.setIconSize(b,k,p)}if((M=="0")||(M=="1")){I.setItemCloseable(p,M)}var B="";if(h){I.setItemTopOffset(p,h)}if((!I.slowParse)&&(!I.waitUpdateXML)){B=I._parseXMLTree(I,z.childNodes[P],D,1,e)}else{if(z.childNodes[P].childNodes.length>0){for(var U=0;U<z.childNodes[P].childNodes.length;U++){if(z.childNodes[P].childNodes[U].tagName=="item"){if(!p.childsCount){p.unParsed=z.childNodes[P]}}else{I.checkUserData(z.childNodes[P].childNodes[U],p.id)}}}}if(B!=""){A=B}if((I._edsbps)&&(w==I._edsbpsC)){I._distributedStart(z,P+1,d,j,l.childsCount);break}w++}else{I.checkUserData(z.childNodes[P],d)}}if(!j){if(I.waitUpdateXML){I.waitUpdateXML=false;for(var P=l.childsCount-1;P>=0;P--){if(l.childNodes[P]._dmark){I.deleteItem(l.childNodes[P].id)}}}var H=I._globalIdStorageFind(I.parsingOn);for(var P=0;P<I.parsedArray.length;P++){H.htmlNode.childNodes[0].appendChild(I.parsedArray[P])}I.lastLoadedXMLId=d;I.XMLloadingWarning=0;var F=I.setCheckList.split(I.dlmtr);for(var O=0;O<F.length;O++){if(F[O]){I.setCheck(F[O],1)}}if((I.XMLsource)&&(I.tscheck)&&(I.smcheck)&&(l.id!=I.rootId)){if(l.checkstate===0){I._setSubChecked(0,l)}else{if(l.checkstate===1){I._setSubChecked(1,l)}}}if(navigator.appVersion.indexOf("MSIE")!=-1&&navigator.appVersion.indexOf("5.5")!=-1){window.setTimeout(function(){I._redrawFrom(I,null,u)},10)}else{I._redrawFrom(I,null,u)}if(A!=""){I.selectItem(A,true)}if(I._branchUpdate){I._branchUpdateNext(z)}}if(I.parsCount==1){if((I.slowParse)&&(I.parsingOn==I.rootId)){var o=e.doXPath("//item[@open]",e.xmlDoc.responseXML||e.xmlDoc);for(var P=0;P<o.length;P++){I.openItem(o[P].getAttribute("id"))}}I.parsingOn=null;if((!I._edsbps)||(!I._edsbpsA.length)){window.setTimeout(function(){if(I.onXLE){I.onXLE(I,d)}I.callEvent("onXLE",[I,d])},1);I.xmlstate=0}I.skipLock=false}I.parsCount--;if(I._edsbps){window.setTimeout(function(){I._distributedStep(d)},I._edsbpsD)}if((I._epgps)&&(u)){this._setPrevPageSign(l,(u||0),j,z)}return A};dhtmlXTreeObject.prototype._branchUpdateNext=function(d){var a=this.XMLLoader.doXPath("./item",d);for(var b=0;b<a.length;b++){this._branchUpdate++;this.smartRefreshItem(a[b].getAttribute("id"),a[b])}this._branchUpdate--};dhtmlXTreeObject.prototype.checkUserData=function(b,d){if((b.nodeType==1)&&(b.tagName=="userdata")){var a=b.getAttribute("name");if((a)&&(b.childNodes[0])){this.setUserData(d,a,b.childNodes[0].data)}}};dhtmlXTreeObject.prototype._redrawFrom=function(j,b,h,d){if(!b){var f=j._globalIdStorageFind(j.lastLoadedXMLId);j.lastLoadedXMLId=-1;if(!f){return 0}}else{f=b}var g=0;for(var e=(h?h-1:0);e<f.childsCount;e++){if((!this._branchUpdate)||(this._getOpenState(f)==1)){if((!b)||(d==1)){f.childNodes[e].htmlNode.parentNode.parentNode.style.display=""}}if(f.childNodes[e].openMe==1){this._openItem(f.childNodes[e]);f.childNodes[e].openMe=0}j._redrawFrom(j,f.childNodes[e]);if(this.childCalc!=null){if((f.childNodes[e].unParsed)||((!f.childNodes[e].XMLload)&&(this.XMLsource))){if(f.childNodes[e]._acc){f.childNodes[e].span.innerHTML=f.childNodes[e].label+this.htmlcA+f.childNodes[e]._acc+this.htmlcB}else{f.childNodes[e].span.innerHTML=f.childNodes[e].label}}if((f.childNodes[e].childNodes.length)&&(this.childCalc)){if(this.childCalc==1){f.childNodes[e].span.innerHTML=f.childNodes[e].label+this.htmlcA+f.childNodes[e].childsCount+this.htmlcB}if(this.childCalc==2){var a=f.childNodes[e].childsCount-(f.childNodes[e].pureChilds||0);if(a){f.childNodes[e].span.innerHTML=f.childNodes[e].label+this.htmlcA+a+this.htmlcB}if(f.pureChilds){f.pureChilds++}else{f.pureChilds=1}}if(this.childCalc==3){f.childNodes[e].span.innerHTML=f.childNodes[e].label+this.htmlcA+f.childNodes[e]._acc+this.htmlcB}if(this.childCalc==4){var a=f.childNodes[e]._acc;if(a){f.childNodes[e].span.innerHTML=f.childNodes[e].label+this.htmlcA+a+this.htmlcB}}}else{if(this.childCalc==4){g++}}g+=f.childNodes[e]._acc;if(this.childCalc==3){g++}}}if((!f.unParsed)&&((f.XMLload)||(!this.XMLsource))){f._acc=g}j._correctLine(f);j._correctPlus(f);if((this.childCalc)&&(!b)){j._fixChildCountLabel(f)}};dhtmlXTreeObject.prototype._createSelf=function(){var a=document.createElement("div");a.className="containerTableStyle";a.style.width=this.width;a.style.height=this.height;this.parentObject.appendChild(a);return a};dhtmlXTreeObject.prototype._xcloseAll=function(b){if(b.unParsed){return}if(this.rootId!=b.id){var e=b.htmlNode.childNodes[0].childNodes;var a=e.length;for(var d=1;d<a;d++){e[d].style.display="none"}this._correctPlus(b)}for(var d=0;d<b.childsCount;d++){if(b.childNodes[d].childsCount){this._xcloseAll(b.childNodes[d])}}};dhtmlXTreeObject.prototype._xopenAll=function(a){this._HideShow(a,2);for(var b=0;b<a.childsCount;b++){this._xopenAll(a.childNodes[b])}};dhtmlXTreeObject.prototype._correctPlus=function(b){var d=b.htmlNode.childNodes[0].childNodes[0].childNodes[0].lastChild;var f=b.htmlNode.childNodes[0].childNodes[0].childNodes[2].childNodes[0];var a=this.lineArray;if((this.XMLsource)&&(!b.XMLload)){var a=this.plusArray;this._setSrc(f,this.imPath+b.images[2]);if(this._txtimg){return(d.innerHTML="[+]")}}else{if((b.childsCount)||(b.unParsed)){if((b.htmlNode.childNodes[0].childNodes[1])&&(b.htmlNode.childNodes[0].childNodes[1].style.display!="none")){if(!b.wsign){var a=this.minusArray}this._setSrc(f,this.imPath+b.images[1]);if(this._txtimg){return(d.innerHTML="[-]")}}else{if(!b.wsign){var a=this.plusArray}this._setSrc(f,this.imPath+b.images[2]);if(this._txtimg){return(d.innerHTML="[+]")}}}else{this._setSrc(f,this.imPath+b.images[0])}}var e=2;if(!b.treeNod.treeLinesOn){this._setSrc(d,this.imPath+a[3])}else{if(b.parentObject){e=this._getCountStatus(b.id,b.parentObject)}this._setSrc(d,this.imPath+a[e])}};dhtmlXTreeObject.prototype._correctLine=function(b){var a=b.parentObject;if(a){if((this._getLineStatus(b.id,a)==0)||(!this.treeLinesOn)){for(var d=1;d<=b.childsCount;d++){b.htmlNode.childNodes[0].childNodes[d].childNodes[0].style.backgroundImage="";b.htmlNode.childNodes[0].childNodes[d].childNodes[0].style.backgroundRepeat=""}}else{for(var d=1;d<=b.childsCount;d++){b.htmlNode.childNodes[0].childNodes[d].childNodes[0].style.backgroundImage="url("+this.imPath+this.lineArray[5]+")";b.htmlNode.childNodes[0].childNodes[d].childNodes[0].style.backgroundRepeat="repeat-y"}}}};dhtmlXTreeObject.prototype._getCountStatus=function(b,a){if(a.childsCount<=1){if(a.id==this.rootId){return 4}else{return 0}}if(a.childNodes[0].id==b){if(!a.id){return 2}else{return 1}}if(a.childNodes[a.childsCount-1].id==b){return 0}return 1};dhtmlXTreeObject.prototype._getLineStatus=function(b,a){if(a.childNodes[a.childsCount-1].id==b){return 0}return 1};dhtmlXTreeObject.prototype._HideShow=function(b,f){if((this.XMLsource)&&(!b.XMLload)){if(f==1){return}b.XMLload=1;this._loadDynXML(b.id);return}if(b.unParsed){this.reParse(b)}var e=b.htmlNode.childNodes[0].childNodes;var a=e.length;if(a>1){if(((e[1].style.display!="none")||(f==1))&&(f!=2)){this.allTree.childNodes[0].border="1";this.allTree.childNodes[0].border="0";nodestyle="none"}else{nodestyle=""}for(var d=1;d<a;d++){e[d].style.display=nodestyle}}this._correctPlus(b)};dhtmlXTreeObject.prototype._getOpenState=function(a){var b=a.htmlNode.childNodes[0].childNodes;if(b.length<=1){return 0}if(b[1].style.display!="none"){return 1}else{return -1}};dhtmlXTreeObject.prototype.onRowClick2=function(){if(!this.parentObject.treeNod.callEvent("onDblClick",[this.parentObject.id,this.parentObject.treeNod])){return 0}if((this.parentObject.closeble)&&(this.parentObject.closeble!="0")){this.parentObject.treeNod._HideShow(this.parentObject)}else{this.parentObject.treeNod._HideShow(this.parentObject,2)}};dhtmlXTreeObject.prototype.onRowClick=function(){var a=this.parentObject.treeNod;if(!a.callEvent("onOpenStart",[this.parentObject.id,a._getOpenState(this.parentObject)])){return 0}if((this.parentObject.closeble)&&(this.parentObject.closeble!="0")){a._HideShow(this.parentObject)}else{a._HideShow(this.parentObject,2)}if(a.checkEvent("onOpenEnd")){if(!a.xmlstate){a.callEvent("onOpenEnd",[this.parentObject.id,a._getOpenState(this.parentObject)])}else{a._oie_onXLE=a.onXLE;a.onXLE=a._epnFHe}}};dhtmlXTreeObject.prototype._epnFHe=function(b,d,a){this.callEvent("onOpenEnd",[d,b.getOpenState(d)]);b.onXLE=b._oie_onXLE;if(!a){if(b.onXLE){b.onXLE(b,d)}}};dhtmlXTreeObject.prototype.onRowClickDown=function(b){b=b||window.event;var a=this.parentObject.treeNod;a._selectItem(this.parentObject,b)};dhtmlXTreeObject.prototype.getSelectedItemId=function(){var b=new Array();for(var a=0;a<this._selected.length;a++){b[a]=this._selected[a].id}return(b.join(this.dlmtr))};dhtmlXTreeObject.prototype._selectItem=function(h,j){if(this._onSSCF){this._onSSCFold=this.getSelectedItemId()}if((!this._amsel)||(!j)||((!j.ctrlKey)&&(!j.shiftKey))){this._unselectItems()}if((h.i_sel)&&(this._amsel)&&(j)&&(j.ctrlKey)){this._unselectItem(h)}else{if((!h.i_sel)&&((!this._amselS)||(this._selected.length==0)||(this._selected[0].parentObject==h.parentObject))){if((this._amsel)&&(j)&&(j.shiftKey)&&(this._selected.length!=0)&&(this._selected[this._selected.length-1].parentObject==h.parentObject)){var f=this._getIndex(this._selected[this._selected.length-1]);var d=this._getIndex(h);if(d<f){var l=f;f=d;d=l}for(var g=f;g<=d;g++){if(!h.parentObject.childNodes[g].i_sel){this._markItem(h.parentObject.childNodes[g])}}}else{this._markItem(h)}}}if(this._onSSCF){var k=this.getSelectedItemId();if(k!=this._onSSCFold){this.callEvent("onSelect",[k])}}};dhtmlXTreeObject.prototype._markItem=function(a){if(a.scolor){a.span.style.color=a.scolor}a.span.className="selectedTreeRow";a.i_sel=true;this._selected[this._selected.length]=a};dhtmlXTreeObject.prototype.getIndexById=function(b){var a=this._globalIdStorageFind(b);if(!a){return null}return this._getIndex(a)};dhtmlXTreeObject.prototype._getIndex=function(a){var d=a.parentObject;for(var b=0;b<d.childsCount;b++){if(d.childNodes[b]==a){return b}}};dhtmlXTreeObject.prototype._unselectItem=function(b){if((b)&&(b.i_sel)){b.span.className="standartTreeRow";if(b.acolor){b.span.style.color=b.acolor}b.i_sel=false;for(var a=0;a<this._selected.length;a++){if(!this._selected[a].i_sel){this._selected.splice(a,1);break}}}};dhtmlXTreeObject.prototype._unselectItems=function(){for(var a=0;a<this._selected.length;a++){var b=this._selected[a];b.span.className="standartTreeRow";if(b.acolor){b.span.style.color=b.acolor}b.i_sel=false}this._selected=new Array()};dhtmlXTreeObject.prototype.onRowSelect=function(f,d,h){f=f||window.event;var b=this.parentObject;if(d){b=d.parentObject}var a=b.treeNod;var g=a.getSelectedItemId();if((!f)||(!f.skipUnSel)){a._selectItem(b,f)}if(!h){if((f)&&(f.button==2)){a.callEvent("onRightClick",[b.id,f])}if(b.actionHandler){b.actionHandler(b.id,g)}else{a.callEvent("onClick",[b.id,g])}}};dhtmlXTreeObject.prototype._correctCheckStates=function(f){if(!this.tscheck){return}if(f.id==this.rootId){return}var d=f.childNodes;var b=0;var a=0;if(f.childsCount==0){return}for(var e=0;e<f.childsCount;e++){if(d[e].dscheck){continue}if(d[e].checkstate==0){b=1}else{if(d[e].checkstate==1){a=1}else{b=1;a=1;break}}}if((b)&&(a)){this._setCheck(f,"unsure")}else{if(b){this._setCheck(f,false)}else{this._setCheck(f,true)}}this._correctCheckStates(f.parentObject)};dhtmlXTreeObject.prototype.onCheckBoxClick=function(a){if(this.parentObject.dscheck){return true}if(this.treeNod.tscheck){if(this.parentObject.checkstate==1){this.treeNod._setSubChecked(false,this.parentObject)}else{this.treeNod._setSubChecked(true,this.parentObject)}}else{if(this.parentObject.checkstate==1){this.treeNod._setCheck(this.parentObject,false)}else{this.treeNod._setCheck(this.parentObject,true)}}this.treeNod._correctCheckStates(this.parentObject.parentObject);return this.treeNod.callEvent("onCheck",[this.parentObject.id,this.parentObject.checkstate])};dhtmlXTreeObject.prototype._createItem=function(n,m,j){var o=document.createElement("table");o.cellSpacing=0;o.cellPadding=0;o.border=0;if(this.hfMode){o.style.tableLayout="fixed"}o.style.margin=0;o.style.padding=0;var h=document.createElement("tbody");var l=document.createElement("tr");var e=document.createElement("td");e.className="standartTreeImage";if(this._txtimg){var f=document.createElement("div");e.appendChild(f);f.className="dhx_tree_textSign"}else{var f=this._getImg(m.id);f.border="0";if(f.tagName=="IMG"){f.align="absmiddle"}e.appendChild(f);f.style.padding=0;f.style.margin=0;f.style.width=this.def_line_img_x;f.style.height=this.def_line_img_y}var d=document.createElement("td");var k=this._getImg(this.cBROf?this.rootId:m.id);k.checked=0;this._setSrc(k,this.imPath+this.checkArray[0]);k.style.width="16px";k.style.height="16px";if(!n){(((_isOpera)||(_isKHTML))?d:k).style.display="none"}d.appendChild(k);if((!this.cBROf)&&(k.tagName=="IMG")){k.align="absmiddle"}k.onclick=this.onCheckBoxClick;k.treeNod=this;k.parentObject=m;d.width="20px";var b=document.createElement("td");b.className="standartTreeImage";var g=this._getImg(m.id);g.onmousedown=this._preventNsDrag;g.ondragstart=this._preventNsDrag;g.border="0";if(this._aimgs){g.parentObject=m;if(g.tagName=="IMG"){g.align="absmiddle"}g.onclick=this.onRowSelect}if(!j){this._setSrc(g,this.imPath+this.imageArray[0])}b.appendChild(g);g.style.padding=0;g.style.margin=0;if(this.timgen){g.style.width=this.def_img_x;g.style.height=this.def_img_y}else{g.style.width="0px";g.style.height="0px";if(_isOpera){b.style.display="none"}}var a=document.createElement("td");a.className="standartTreeRow";m.span=document.createElement("span");m.span.className="standartTreeRow";if(this.mlitems){m.span.style.width=this.mlitems;m.span.style.display="block"}else{a.noWrap=true}if(!_isKHTML){a.style.width="100%"}m.span.innerHTML=m.label;a.appendChild(m.span);a.parentObject=m;e.parentObject=m;a.onclick=this.onRowSelect;e.onclick=this.onRowClick;a.ondblclick=this.onRowClick2;if(this.ettip){if(this._dhxTT){dhtmlxTooltip.setTooltip(l,m.label)}else{l.title=m.label}}if(this.dragAndDropOff){if(this._aimgs){this.dragger.addDraggableItem(b,this);b.parentObject=m}this.dragger.addDraggableItem(a,this)}m.span.style.paddingLeft="5px";m.span.style.paddingRight="5px";a.style.verticalAlign="";a.style.fontSize="10pt";a.style.cursor=this.style_pointer;l.appendChild(e);l.appendChild(d);l.appendChild(b);l.appendChild(a);h.appendChild(l);o.appendChild(h);if(this.ehlt){l.onmousemove=this._itemMouseIn;l[(_isIE)?"onmouseleave":"onmouseout"]=this._itemMouseOut}if(this.checkEvent&&this.checkEvent("onRightClick")){l.oncontextmenu=Function("e","this.childNodes[0].parentObject.treeNod.callEvent('onRightClick',[this.childNodes[0].parentObject.id,(e||window.event)]); return false;")}return o};dhtmlXTreeObject.prototype.setImagePath=function(a){this.imPath=a};dhtmlXTreeObject.prototype._getLeafCount=function(f){var e=0;for(var d=0;d<f.childsCount;d++){if(f.childNodes[d].childsCount==0){e++}}return e};dhtmlXTreeObject.prototype._getChildCounterValue=function(b){var a=this._globalIdStorageFind(b);if(!a){return 0}if((a.unParsed)||((!a.XMLload)&&(this.XMLsource))){return a._acc}switch(this.childCalc){case 1:return a.childsCount;break;case 2:return this._getLeafCount(a);break;case 3:return a._acc;break;case 4:return a._acc;break}};dhtmlXTreeObject.prototype._fixChildCountLabel=function(g,e){if(this.childCalc==null){return}if((g.unParsed)||((!g.XMLload)&&(this.XMLsource))){if(g._acc){g.span.innerHTML=g.label+this.htmlcA+g._acc+this.htmlcB}else{g.span.innerHTML=g.label}return}switch(this.childCalc){case 1:if(g.childsCount!=0){g.span.innerHTML=g.label+this.htmlcA+g.childsCount+this.htmlcB}else{g.span.innerHTML=g.label}break;case 2:var f=this._getLeafCount(g);if(f!=0){g.span.innerHTML=g.label+this.htmlcA+f+this.htmlcB}else{g.span.innerHTML=g.label}break;case 3:if(g.childsCount!=0){var d=0;for(var b=0;b<g.childsCount;b++){if(!g.childNodes[b]._acc){g.childNodes[b]._acc=0}d+=g.childNodes[b]._acc*1}d+=g.childsCount*1;g.span.innerHTML=g.label+this.htmlcA+d+this.htmlcB;g._acc=d}else{g.span.innerHTML=g.label;g._acc=1}if((g.parentObject)&&(g.parentObject!=this.htmlNode)){this._fixChildCountLabel(g.parentObject)}break;case 4:if(g.childsCount!=0){var d=0;for(var b=0;b<g.childsCount;b++){if(!g.childNodes[b]._acc){g.childNodes[b]._acc=1}d+=g.childNodes[b]._acc*1}g.span.innerHTML=g.label+this.htmlcA+d+this.htmlcB;g._acc=d}else{g.span.innerHTML=g.label;g._acc=1}if((g.parentObject)&&(g.parentObject!=this.htmlNode)){this._fixChildCountLabel(g.parentObject)}break}};dhtmlXTreeObject.prototype.setChildCalcMode=function(a){switch(a){case"child":this.childCalc=1;break;case"leafs":this.childCalc=2;break;case"childrec":this.childCalc=3;break;case"leafsrec":this.childCalc=4;break;case"disabled":this.childCalc=null;break;default:this.childCalc=4}};dhtmlXTreeObject.prototype.setChildCalcHTML=function(b,a){this.htmlcA=b;this.htmlcB=a};dhtmlXTreeObject.prototype.setOnRightClickHandler=function(a){this.attachEvent("onRightClick",a)};dhtmlXTreeObject.prototype.setOnClickHandler=function(a){this.attachEvent("onClick",a)};dhtmlXTreeObject.prototype.setOnSelectStateChange=function(a){this.attachEvent("onSelect",a);this._onSSCF=true};dhtmlXTreeObject.prototype.setXMLAutoLoading=function(a){this.XMLsource=a};dhtmlXTreeObject.prototype.setOnCheckHandler=function(a){this.attachEvent("onCheck",a)};dhtmlXTreeObject.prototype.setOnOpenHandler=function(a){this.attachEvent("onOpenStart",a)};dhtmlXTreeObject.prototype.setOnOpenStartHandler=function(a){this.attachEvent("onOpenStart",a)};dhtmlXTreeObject.prototype.setOnOpenEndHandler=function(a){this.attachEvent("onOpenEnd",a)};dhtmlXTreeObject.prototype.setOnDblClickHandler=function(a){this.attachEvent("onDblClick",a)};dhtmlXTreeObject.prototype.openAllItems=function(b){var a=this._globalIdStorageFind(b);if(!a){return 0}this._xopenAll(a)};dhtmlXTreeObject.prototype.getOpenState=function(b){var a=this._globalIdStorageFind(b);if(!a){return""}return this._getOpenState(a)};dhtmlXTreeObject.prototype.closeAllItems=function(b){if(b===window.undefined){b=this.rootId}var a=this._globalIdStorageFind(b);if(!a){return 0}this._xcloseAll(a);this.allTree.childNodes[0].border="1";this.allTree.childNodes[0].border="0"};dhtmlXTreeObject.prototype.setUserData=function(e,b,d){var a=this._globalIdStorageFind(e,0,true);if(!a){return}if(b=="hint"){if(this._dhxTT){dhtmlxTooltip.setTooltip(a.htmlNode.childNodes[0].childNodes[0],d)}else{a.htmlNode.childNodes[0].childNodes[0].title=d}}if(a.userData["t_"+b]===undefined){if(!a._userdatalist){a._userdatalist=b}else{a._userdatalist+=","+b}}a.userData["t_"+b]=d};dhtmlXTreeObject.prototype.getUserData=function(d,b){var a=this._globalIdStorageFind(d,0,true);if(!a){return}return a.userData["t_"+b]};dhtmlXTreeObject.prototype.getItemColor=function(d){var a=this._globalIdStorageFind(d);if(!a){return 0}var b=new Object();if(a.acolor){b.acolor=a.acolor}if(a.acolor){b.scolor=a.scolor}return b};dhtmlXTreeObject.prototype.setItemColor=function(d,b,e){if((d)&&(d.span)){var a=d}else{var a=this._globalIdStorageFind(d)}if(!a){return 0}else{if(a.i_sel){if(e){a.span.style.color=e}}else{if(b){a.span.style.color=b}}if(e){a.scolor=e}if(b){a.acolor=b}}};dhtmlXTreeObject.prototype.getItemText=function(b){var a=this._globalIdStorageFind(b);if(!a){return 0}return(a.htmlNode.childNodes[0].childNodes[0].childNodes[3].childNodes[0].innerHTML)};dhtmlXTreeObject.prototype.getParentId=function(b){var a=this._globalIdStorageFind(b);if((!a)||(!a.parentObject)){return""}return a.parentObject.id};dhtmlXTreeObject.prototype.changeItemId=function(d,e){var a=this._globalIdStorageFind(d);if(!a){return 0}a.id=e;a.span.contextMenuId=e;for(var b=0;b<this._globalIdStorageSize;b++){if(this._globalIdStorage[b]==d){this._globalIdStorage[b]=e}}};dhtmlXTreeObject.prototype.doCut=function(){if(this.nodeCut){this.clearCut()}this.nodeCut=(new Array()).concat(this._selected);for(var a=0;a<this.nodeCut.length;a++){var b=this.nodeCut[a];b._cimgs=new Array();b._cimgs[0]=b.images[0];b._cimgs[1]=b.images[1];b._cimgs[2]=b.images[2];b.images[0]=b.images[1]=b.images[2]=this.cutImage;this._correctPlus(b)}};dhtmlXTreeObject.prototype.doPaste=function(d){var a=this._globalIdStorageFind(d);if(!a){return 0}for(var b=0;b<this.nodeCut.length;b++){if(this._checkPNodes(a,this.nodeCut[b])){continue}this._moveNode(this.nodeCut[b],a)}this.clearCut()};dhtmlXTreeObject.prototype.clearCut=function(){for(var a=0;a<this.nodeCut.length;a++){var b=this.nodeCut[a];b.images[0]=b._cimgs[0];b.images[1]=b._cimgs[1];b.images[2]=b._cimgs[2];this._correctPlus(b)}this.nodeCut=new Array()};dhtmlXTreeObject.prototype._moveNode=function(a,b){var g=this.dadmodec;if(g==1){var f=b;if(this.dadmodefix<0){while(true){f=this._getPrevNode(f);if((f==-1)){f=this.htmlNode;break}if((f.tr==0)||(f.tr.style.display=="")||(!f.parentObject)){break}}var e=f;var d=b}else{while(true){f=this._getNextNode(f);if((f==-1)){f=this.htmlNode;break}if((f.tr.style.display=="")||(!f.parentObject)){break}}var d=f;var e=b}if(this._getNodeLevel(e,0)>this._getNodeLevel(d,0)){if(!this.dropLower){return this._moveNodeTo(a,e.parentObject)}else{if(d.id!=this.rootId){return this._moveNodeTo(a,d.parentObject,d)}else{return this._moveNodeTo(a,this.htmlNode,null)}}}else{return this._moveNodeTo(a,d.parentObject,d)}}else{return this._moveNodeTo(a,b)}};dhtmlXTreeObject.prototype._fixNodesCollection=function(j,g){var b=0;var e=0;var h=j.childNodes;var a=j.childsCount-1;if(g==h[a]){return}for(var f=0;f<a;f++){if(h[f]==h[a]){h[f]=h[f+1];h[f+1]=h[a]}}for(var f=0;f<a+1;f++){if(b){var d=h[f];h[f]=b;b=d}else{if(h[f]==g){b=h[f];h[f]=h[a]}}}};dhtmlXTreeObject.prototype._recreateBranch=function(a,e,d,h){var g;var b="";if(d){for(g=0;g<e.childsCount;g++){if(e.childNodes[g]==d){break}}if(g!=0){d=e.childNodes[g-1]}else{b="TOP";d=""}}var f=this._attachChildNode(e,a.id,a.label,0,a.images[0],a.images[1],a.images[2],b,0,d);f._userdatalist=a._userdatalist;f.userData=a.userData.clone();f.XMLload=a.XMLload;if(a.unParsed){f.unParsed=a.unParsed;this._correctPlus(f)}else{for(var g=0;g<a.childsCount;g++){this._recreateBranch(a.childNodes[g],f,0,1)}}if((!h)&&(this.childCalc)){this._redrawFrom(this,e)}return f};dhtmlXTreeObject.prototype._moveNodeTo=function(m,o,l){if(m.treeNod._nonTrivialNode){return m.treeNod._nonTrivialNode(this,o,l,m)}if(o.mytype){var g=(m.treeNod.lWin!=o.lWin)}else{var g=(m.treeNod.lWin!=o.treeNod.lWin)}if(!this.callEvent("onDrag",[m.id,o.id,(l?l.id:null),m.treeNod,o.treeNod])){return false}if((o.XMLload==0)&&(this.XMLsource)){o.XMLload=1;this._loadDynXML(o.id)}this.openItem(o.id);var b=m.treeNod;var j=m.parentObject.childsCount;var k=m.parentObject;if((g)||(b.dpcpy)){var d=m.id;m=this._recreateBranch(m,o,l);if(!b.dpcpy){b.deleteItem(d)}}else{var e=o.childsCount;var n=o.childNodes;n[e]=m;m.treeNod=o.treeNod;o.childsCount++;var h=this._drawNewTr(n[e].htmlNode);if(!l){o.htmlNode.childNodes[0].appendChild(h);if(this.dadmode==1){this._fixNodesCollection(o,l)}}else{o.htmlNode.childNodes[0].insertBefore(h,l.tr);this._fixNodesCollection(o,l);n=o.childNodes}}if((!b.dpcpy)&&(!g)){var a=m.tr;if((document.all)&&(navigator.appVersion.search(/MSIE\ 5\.0/gi)!=-1)){window.setTimeout(function(){a.parentNode.removeChild(a)},250)}else{m.parentObject.htmlNode.childNodes[0].removeChild(m.tr)}if((!l)||(o!=m.parentObject)){for(var f=0;f<k.childsCount;f++){if(k.childNodes[f].id==m.id){k.childNodes[f]=0;break}}}else{k.childNodes[k.childsCount-1]=0}b._compressChildList(k.childsCount,k.childNodes);k.childsCount--}if((!g)&&(!b.dpcpy)){m.tr=h;h.nodem=m;m.parentObject=o;if(b!=o.treeNod){if(m.treeNod._registerBranch(m,b)){return}this._clearStyles(m);this._redrawFrom(this,m.parentObject)}this._correctPlus(o);this._correctLine(o);this._correctLine(m);this._correctPlus(m);if(l){this._correctPlus(l)}else{if(o.childsCount>=2){this._correctPlus(n[o.childsCount-2]);this._correctLine(n[o.childsCount-2])}}this._correctPlus(n[o.childsCount-1]);if(this.tscheck){this._correctCheckStates(o)}if(b.tscheck){b._correctCheckStates(k)}}if(j>1){b._correctPlus(k.childNodes[j-2]);b._correctLine(k.childNodes[j-2])}b._correctPlus(k);b._correctLine(k);this._fixChildCountLabel(o);b._fixChildCountLabel(k);this.callEvent("onDrop",[m.id,o.id,(l?l.id:null),b,o.treeNod]);return m.id};dhtmlXTreeObject.prototype._clearStyles=function(a){var e=a.htmlNode.childNodes[0].childNodes[0].childNodes[1];var b=e.nextSibling.nextSibling;a.span.innerHTML=a.label;a.i_sel=false;if(a._aimgs){this.dragger.removeDraggableItem(e.nextSibling)}if(this.checkBoxOff){e.childNodes[0].style.display="";e.childNodes[0].onclick=this.onCheckBoxClick;this._setSrc(e.childNodes[0],this.imPath+this.checkArray[a.checkstate])}else{e.childNodes[0].style.display="none"}e.childNodes[0].treeNod=this;if(this.cMenu){a.onmousedown=a.contextOnclick||null;this.cMenu.setContextZone(a.span,a.id)}else{a.span.onmousedown=function(){}}this.dragger.removeDraggableItem(b);if(this.dragAndDropOff){this.dragger.addDraggableItem(b,this)}if(this._aimgs){this.dragger.addDraggableItem(e.nextSibling,this)}b.childNodes[0].className="standartTreeRow";b.onclick=this.onRowSelect;b.ondblclick=this.onRowClick2;e.previousSibling.onclick=this.onRowClick;this._correctLine(a);this._correctPlus(a);for(var d=0;d<a.childsCount;d++){this._clearStyles(a.childNodes[d])}};dhtmlXTreeObject.prototype._registerBranch=function(b,a){b.id=this._globalIdStorageAdd(b.id,b);b.treeNod=this;if(a){a._globalIdStorageSub(b.id)}for(var d=0;d<b.childsCount;d++){this._registerBranch(b.childNodes[d],a)}return 0};dhtmlXTreeObject.prototype.enableThreeStateCheckboxes=function(a){this.tscheck=convertStringToBoolean(a)};dhtmlXTreeObject.prototype.setOnMouseInHandler=function(a){this.ehlt=true;this.attachEvent("onMouseIn",a)};dhtmlXTreeObject.prototype.setOnMouseOutHandler=function(a){this.ehlt=true;this.attachEvent("onMouseOut",a)};dhtmlXTreeObject.prototype.enableMercyDrag=function(a){this.dpcpy=convertStringToBoolean(a)};dhtmlXTreeObject.prototype.enableTreeImages=function(a){this.timgen=convertStringToBoolean(a)};dhtmlXTreeObject.prototype.enableFixedMode=function(a){this.hfMode=convertStringToBoolean(a)};dhtmlXTreeObject.prototype.enableCheckBoxes=function(b,a){this.checkBoxOff=convertStringToBoolean(b);this.cBROf=(!(this.checkBoxOff||convertStringToBoolean(a)))};dhtmlXTreeObject.prototype.setStdImages=function(a,d,b){this.imageArray[0]=a;this.imageArray[1]=d;this.imageArray[2]=b};dhtmlXTreeObject.prototype.enableTreeLines=function(a){this.treeLinesOn=convertStringToBoolean(a)};dhtmlXTreeObject.prototype.setImageArrays=function(e,a,g,f,d,b){switch(e){case"plus":this.plusArray[0]=a;this.plusArray[1]=g;this.plusArray[2]=f;this.plusArray[3]=d;this.plusArray[4]=b;break;case"minus":this.minusArray[0]=a;this.minusArray[1]=g;this.minusArray[2]=f;this.minusArray[3]=d;this.minusArray[4]=b;break}};dhtmlXTreeObject.prototype.openItem=function(b){var a=this._globalIdStorageFind(b);if(!a){return 0}else{return this._openItem(a)}};dhtmlXTreeObject.prototype._openItem=function(a){var b=this._getOpenState(a);if((b<0)||(((this.XMLsource)&&(!a.XMLload)))){if(!this.callEvent("onOpenStart",[a.id,b])){return 0}this._HideShow(a,2);if(this._epnFH){if(this.onXLE==this._epnFHe){this._epnFHe(this,a.id,true)}if(!this.xmlstate){this._epnFH(a.id,this._getOpenState(a))}else{this._oie_onXLE=this.onXLE;this.onXLE=this._epnFHe}}}if(a.parentObject){this._openItem(a.parentObject)}};dhtmlXTreeObject.prototype.closeItem=function(b){if(this.rootId==b){return 0}var a=this._globalIdStorageFind(b);if(!a){return 0}if(a.closeble){this._HideShow(a,1)}};dhtmlXTreeObject.prototype.getLevel=function(b){var a=this._globalIdStorageFind(b);if(!a){return 0}return this._getNodeLevel(a,0)};dhtmlXTreeObject.prototype.setItemCloseable=function(d,a){a=convertStringToBoolean(a);if((d)&&(d.span)){var b=d}else{var b=this._globalIdStorageFind(d)}if(!b){return 0}b.closeble=a};dhtmlXTreeObject.prototype._getNodeLevel=function(a,b){if(a.parentObject){return this._getNodeLevel(a.parentObject,b+1)}return(b)};dhtmlXTreeObject.prototype.hasChildren=function(b){var a=this._globalIdStorageFind(b);if(!a){return 0}else{if((this.XMLsource)&&(!a.XMLload)){return true}else{return a.childsCount}}};dhtmlXTreeObject.prototype._getLeafCount=function(f){var e=0;for(var d=0;d<f.childsCount;d++){if(f.childNodes[d].childsCount==0){e++}}return e};dhtmlXTreeObject.prototype.setItemText=function(e,d,b){var a=this._globalIdStorageFind(e);if(!a){return 0}a.label=d;a.span.innerHTML=d;if(this.childCalc){this._fixChildCountLabel(a)}if(this._dhxTT){dhtmlxTooltip.setTooltip(a.span.parentNode.parentNode,(b||""))}else{a.span.parentNode.parentNode.title=b||""}};dhtmlXTreeObject.prototype.getItemTooltip=function(b){var a=this._globalIdStorageFind(b);if(!a){return""}return(a.span.parentNode.parentNode.title||"")};dhtmlXTreeObject.prototype.refreshItem=function(b){if(!b){b=this.rootId}var a=this._globalIdStorageFind(b);this.deleteChildItems(b);this._loadDynXML(b)};dhtmlXTreeObject.prototype.setItemImage2=function(e,a,f,d){var b=this._globalIdStorageFind(e);if(!b){return 0}b.images[1]=f;b.images[2]=d;b.images[0]=a;this._correctPlus(b)};dhtmlXTreeObject.prototype.setItemImage=function(d,a,e){var b=this._globalIdStorageFind(d);if(!b){return 0}if(e){b.images[1]=a;b.images[2]=e}else{b.images[0]=a}this._correctPlus(b)};dhtmlXTreeObject.prototype.getSubItems=function(d){var a=this._globalIdStorageFind(d,0,1);if(!a){return 0}if(a.unParsed){return(this._getSubItemsXML(a.unParsed))}var b="";for(i=0;i<a.childsCount;i++){if(!b){b=a.childNodes[i].id}else{b+=this.dlmtr+a.childNodes[i].id}}return b};dhtmlXTreeObject.prototype._getAllScraggyItems=function(d){var e="";for(var b=0;b<d.childsCount;b++){if((d.childNodes[b].unParsed)||(d.childNodes[b].childsCount>0)){if(d.childNodes[b].unParsed){var a=this._getAllScraggyItemsXML(d.childNodes[b].unParsed,1)}else{var a=this._getAllScraggyItems(d.childNodes[b])}if(a){if(e){e+=this.dlmtr+a}else{e=a}}}else{if(!e){e=d.childNodes[b].id}else{e+=this.dlmtr+d.childNodes[b].id}}}return e};dhtmlXTreeObject.prototype._getAllFatItems=function(d){var e="";for(var b=0;b<d.childsCount;b++){if((d.childNodes[b].unParsed)||(d.childNodes[b].childsCount>0)){if(!e){e=d.childNodes[b].id}else{e+=this.dlmtr+d.childNodes[b].id}if(d.childNodes[b].unParsed){var a=this._getAllFatItemsXML(d.childNodes[b].unParsed,1)}else{var a=this._getAllFatItems(d.childNodes[b])}if(a){e+=this.dlmtr+a}}}return e};dhtmlXTreeObject.prototype._getAllSubItems=function(g,f,e){if(e){b=e}else{var b=this._globalIdStorageFind(g)}if(!b){return 0}f="";for(var d=0;d<b.childsCount;d++){if(!f){f=b.childNodes[d].id}else{f+=this.dlmtr+b.childNodes[d].id}var a=this._getAllSubItems(0,f,b.childNodes[d]);if(a){f+=this.dlmtr+a}}if(b.unParsed){f=this._getAllSubItemsXML(g,f,b.unParsed)}return f};dhtmlXTreeObject.prototype.selectItem=function(e,d,b){d=convertStringToBoolean(d);var a=this._globalIdStorageFind(e);if((!a)||(!a.parentObject)){return 0}if(this.XMLloadingWarning){a.parentObject.openMe=1}else{this._openItem(a.parentObject)}var f=null;if(b){f=new Object;f.ctrlKey=true;if(a.i_sel){f.skipUnSel=true}}if(d){this.onRowSelect(f,a.htmlNode.childNodes[0].childNodes[0].childNodes[3],false)}else{this.onRowSelect(f,a.htmlNode.childNodes[0].childNodes[0].childNodes[3],true)}};dhtmlXTreeObject.prototype.getSelectedItemText=function(){var b=new Array();for(var a=0;a<this._selected.length;a++){b[a]=this._selected[a].span.innerHTML}return(b.join(this.dlmtr))};dhtmlXTreeObject.prototype._compressChildList=function(a,d){a--;for(var b=0;b<a;b++){if(d[b]==0){d[b]=d[b+1];d[b+1]=0}}};dhtmlXTreeObject.prototype._deleteNode=function(h,f,k){if((!f)||(!f.parentObject)){return 0}this._unselectItem(f);var a=0;var b=0;if(f.tr.nextSibling){a=f.tr.nextSibling.nodem}if(f.tr.previousSibling){b=f.tr.previousSibling.nodem}var g=f.parentObject;var d=g.childsCount;var j=g.childNodes;for(var e=0;e<d;e++){if(j[e].id==h){if(!k){g.htmlNode.childNodes[0].removeChild(j[e].tr)}j[e]=0;break}}this._compressChildList(d,j);if(!k){g.childsCount--}if(a){this._correctPlus(a);this._correctLine(a)}if(b){this._correctPlus(b);this._correctLine(b)}if(this.tscheck){this._correctCheckStates(g)}if(!k){this._globalIdStorageRecSub(f)}};dhtmlXTreeObject.prototype.setCheck=function(d,b){var a=this._globalIdStorageFind(d,0,1);if(!a){return}if(b==="unsure"){this._setCheck(a,b)}else{b=convertStringToBoolean(b);if((this.tscheck)&&(this.smcheck)){this._setSubChecked(b,a)}else{this._setCheck(a,b)}}if(this.smcheck){this._correctCheckStates(a.parentObject)}};dhtmlXTreeObject.prototype._setCheck=function(a,d){if(((a.parentObject._r_logic)||(this._frbtr))&&(d)){if(this._frbtrs){if(this._frbtrL){this._setCheck(this._frbtrL,0)}this._frbtrL=a}else{for(var b=0;b<a.parentObject.childsCount;b++){this._setCheck(a.parentObject.childNodes[b],0)}}}var e=a.htmlNode.childNodes[0].childNodes[0].childNodes[1].childNodes[0];if(d=="unsure"){a.checkstate=2}else{if(d){a.checkstate=1}else{a.checkstate=0}}if(a.dscheck){a.checkstate=a.dscheck}this._setSrc(e,this.imPath+((a.parentObject._r_logic||this._frbtr)?this.radioArray:this.checkArray)[a.checkstate])};dhtmlXTreeObject.prototype.setSubChecked=function(d,b){var a=this._globalIdStorageFind(d);this._setSubChecked(b,a);this._correctCheckStates(a.parentObject)};dhtmlXTreeObject.prototype._setSubChecked=function(d,a){d=convertStringToBoolean(d);if(!a){return}if(((a.parentObject._r_logic)||(this._frbtr))&&(d)){for(var b=0;b<a.parentObject.childsCount;b++){this._setSubChecked(0,a.parentObject.childNodes[b])}}if(a.unParsed){this._setSubCheckedXML(d,a.unParsed)}if(a._r_logic||this._frbtr){this._setSubChecked(d,a.childNodes[0])}else{for(var b=0;b<a.childsCount;b++){this._setSubChecked(d,a.childNodes[b])}}var e=a.htmlNode.childNodes[0].childNodes[0].childNodes[1].childNodes[0];if(d){a.checkstate=1}else{a.checkstate=0}if(a.dscheck){a.checkstate=a.dscheck}this._setSrc(e,this.imPath+((a.parentObject._r_logic||this._frbtr)?this.radioArray:this.checkArray)[a.checkstate])};dhtmlXTreeObject.prototype.isItemChecked=function(b){var a=this._globalIdStorageFind(b);if(!a){return}return a.checkstate};dhtmlXTreeObject.prototype.deleteChildItems=function(e){var a=this._globalIdStorageFind(e);if(!a){return}var b=a.childsCount;for(var d=0;d<b;d++){this._deleteNode(a.childNodes[0].id,a.childNodes[0])}};dhtmlXTreeObject.prototype.deleteItem=function(d,a){if((!this._onrdlh)||(this._onrdlh(d))){var b=this._deleteItem(d,a);this._fixChildCountLabel(b)}this.allTree.childNodes[0].border="1";this.allTree.childNodes[0].border="0"};dhtmlXTreeObject.prototype._deleteItem=function(g,b,f){b=convertStringToBoolean(b);var a=this._globalIdStorageFind(g);if(!a){return}var d=this.getParentId(g);var e=a.parentObject;this._deleteNode(g,a,f);this._correctPlus(e);this._correctLine(e);if((b)&&(d!=this.rootId)){this.selectItem(d,1)}return e};dhtmlXTreeObject.prototype._globalIdStorageRecSub=function(a){for(var b=0;b<a.childsCount;b++){this._globalIdStorageRecSub(a.childNodes[b]);this._globalIdStorageSub(a.childNodes[b].id)}this._globalIdStorageSub(a.id);var d=a;d.span=null;d.tr.nodem=null;d.tr=null;d.htmlNode=null};dhtmlXTreeObject.prototype.insertNewNext=function(j,m,l,b,f,e,d,a,h){var g=this._globalIdStorageFind(j);if((!g)||(!g.parentObject)){return(0)}var k=this._attachChildNode(0,m,l,b,f,e,d,a,h,g);if((!this.XMLloadingWarning)&&(this.childCalc)){this._fixChildCountLabel(g.parentObject)}return k};dhtmlXTreeObject.prototype.getItemIdByIndex=function(d,a){var b=this._globalIdStorageFind(d);if((!b)||(a>b.childsCount)){return null}return b.childNodes[a].id};dhtmlXTreeObject.prototype.getChildItemIdByIndex=function(d,a){var b=this._globalIdStorageFind(d);if((!b)||(a>=b.childsCount)){return null}return b.childNodes[a].id};dhtmlXTreeObject.prototype.setDragHandler=function(a){this.attachEvent("onDrag",a)};dhtmlXTreeObject.prototype._clearMove=function(){if(this._lastMark){this._lastMark.className=this._lastMark.className.replace(/dragAndDropRow/g,"");this._lastMark=null}this.selectionBar.style.display="none";this.allTree.className=this.allTree.className.replace(" selectionBox","")};dhtmlXTreeObject.prototype.enableDragAndDrop=function(b,a){if(b=="temporary_disabled"){this.dADTempOff=false;b=true}else{this.dADTempOff=true}this.dragAndDropOff=convertStringToBoolean(b);if(this.dragAndDropOff){this.dragger.addDragLanding(this.allTree,this)}if(arguments.length>1){this._ddronr=(!convertStringToBoolean(a))}};dhtmlXTreeObject.prototype._setMove=function(f,d,h){if(f.parentObject.span){var e=getAbsoluteTop(f);var b=getAbsoluteTop(this.allTree);this.dadmodec=this.dadmode;this.dadmodefix=0;if(this.dadmode==2){var g=h-e+this.allTree.scrollTop+(document.body.scrollTop||document.documentElement.scrollTop)-2-f.offsetHeight/2;if((Math.abs(g)-f.offsetHeight/6)>0){this.dadmodec=1;if(g<0){this.dadmodefix=0-f.offsetHeight}}else{this.dadmodec=0}}if(this.dadmodec==0){var a=f.parentObject.span;a.className+=" dragAndDropRow";this._lastMark=a}else{this._clearMove();this.selectionBar.style.top=(e-b+((parseInt(f.parentObject.span.parentNode.previousSibling.childNodes[0].style.height)||18)-1)+this.dadmodefix)+"px";this.selectionBar.style.left="5px";if(this.allTree.offsetWidth>20){this.selectionBar.style.width=(this.allTree.offsetWidth-(_isFF?30:25))+"px"}this.selectionBar.style.display=""}this._autoScroll(null,e,b)}};dhtmlXTreeObject.prototype._autoScroll=function(d,b,a){if(this.autoScroll){if(d){b=getAbsoluteTop(d);a=getAbsoluteTop(this.allTree)}if((b-a-parseInt(this.allTree.scrollTop))>(parseInt(this.allTree.offsetHeight)-50)){this.allTree.scrollTop=parseInt(this.allTree.scrollTop)+20}if((b-a)<(parseInt(this.allTree.scrollTop)+30)){this.allTree.scrollTop=parseInt(this.allTree.scrollTop)-20}}};dhtmlXTreeObject.prototype._createDragNode=function(g,f){if(!this.dADTempOff){return null}var d=g.parentObject;if(!d.i_sel){this._selectItem(d,f)}this._checkMSelectionLogic();var b=document.createElement("div");var h=new Array();if(this._itim_dg){for(var a=0;a<this._selected.length;a++){h[a]="<table cellspacing='0' cellpadding='0'><tr><td><img width='18px' height='18px' src='"+this._getSrc(this._selected[a].span.parentNode.previousSibling.childNodes[0])+"'></td><td>"+this._selected[a].span.innerHTML+"</td></tr><table>"}}else{h=this.getSelectedItemText().split(this.dlmtr)}b.innerHTML=h.join("");b.style.position="absolute";b.className="dragSpanDiv";this._dragged=(new Array()).concat(this._selected);return b};dhtmlXTreeObject.prototype._focusNode=function(a){var b=getAbsoluteTop(a.htmlNode)-getAbsoluteTop(this.allTree);if((b>(this.allTree.scrollTop+this.allTree.offsetHeight-30))||(b<this.allTree.scrollTop)){this.allTree.scrollTop=b}};dhtmlXTreeObject.prototype._preventNsDrag=function(a){if((a)&&(a.preventDefault)){a.preventDefault();return false}return false};dhtmlXTreeObject.prototype._drag=function(h,j,a){if(this._autoOpenTimer){clearTimeout(this._autoOpenTimer)}if(!a.parentObject){a=this.htmlNode.htmlNode.childNodes[0].childNodes[0].childNodes[1].childNodes[0];this.dadmodec=0}this._clearMove();var g=h.parentObject.treeNod;if((g)&&(g._clearMove)){g._clearMove("")}if((!this.dragMove)||(this.dragMove())){if((!g)||(!g._clearMove)||(!g._dragged)){var e=new Array(h.parentObject)}else{var e=g._dragged}var b=a.parentObject;for(var f=0;f<e.length;f++){var d=this._moveNode(e[f],b);if((this.dadmodec)&&(d!==false)){b=this._globalIdStorageFind(d,true,true)}if((d)&&(!this._sADnD)){this.selectItem(d,0,1)}}}if(g){g._dragged=new Array()}};dhtmlXTreeObject.prototype._dragIn=function(g,e,a,j){if(!this.dADTempOff){return 0}var h=e.parentObject;var b=g.parentObject;if((!b)&&(this._ddronr)){return}if(!this.callEvent("onDragIn",[h.id,b?b.id:null,h.treeNod,this])){return 0}if(!b){this.allTree.className+=" selectionBox"}else{if(h.childNodes==null){this._setMove(g,a,j);return g}var f=h.treeNod;for(var d=0;d<f._dragged.length;d++){if(this._checkPNodes(b,f._dragged[d])){this._autoScroll(g);return 0}}this.selectionBar.parentNode.removeChild(this.selectionBar);b.span.parentNode.appendChild(this.selectionBar);this._setMove(g,a,j);if(this._getOpenState(b)<=0){this._autoOpenId=b.id;this._autoOpenTimer=window.setTimeout(new callerFunction(this._autoOpenItem,this),1000)}}return g};dhtmlXTreeObject.prototype._autoOpenItem=function(b,a){a.openItem(a._autoOpenId)};dhtmlXTreeObject.prototype._dragOut=function(a){this._clearMove();if(this._autoOpenTimer){clearTimeout(this._autoOpenTimer)}};dhtmlXTreeObject.prototype._getNextNode=function(a,b){if((!b)&&(a.childsCount)){return a.childNodes[0]}if(a==this.htmlNode){return -1}if((a.tr)&&(a.tr.nextSibling)&&(a.tr.nextSibling.nodem)){return a.tr.nextSibling.nodem}return this._getNextNode(a.parentObject,true)};dhtmlXTreeObject.prototype._lastChild=function(a){if(a.childsCount){return this._lastChild(a.childNodes[a.childsCount-1])}else{return a}};dhtmlXTreeObject.prototype._getPrevNode=function(a,b){if((a.tr)&&(a.tr.previousSibling)&&(a.tr.previousSibling.nodem)){return this._lastChild(a.tr.previousSibling.nodem)}if(a.parentObject){return a.parentObject}else{return -1}};dhtmlXTreeObject.prototype.findItem=function(a,d,b){var e=this._findNodeByLabel(a,d,(b?this.htmlNode:null));if(e){this.selectItem(e.id,true);this._focusNode(e);return e.id}else{return null}};dhtmlXTreeObject.prototype.findItemIdByLabel=function(a,d,b){var e=this._findNodeByLabel(a,d,(b?this.htmlNode:null));if(e){return e.id}else{return null}};dhtmlXTreeObject.prototype.findStrInXML=function(b,d,f){for(var a=0;a<b.childNodes.length;a++){if(b.childNodes[a].nodeType==1){var e=b.childNodes[a].getAttribute(d);if((e)&&(e.toLowerCase().search(f)!=-1)){return true}if(this.findStrInXML(b.childNodes[a],d,f)){return true}}}return false};dhtmlXTreeObject.prototype._findNodeByLabel=function(a,f,e){var a=a.replace(new RegExp("^( )+"),"").replace(new RegExp("( )+$"),"");a=new RegExp(a.replace(/([\*\+\\\[\]\(\)]{1})/gi,"\\$1").replace(/ /gi,".*"),"gi");if(!e){e=this._selected[0];if(!e){e=this.htmlNode}}var b=e;if(!f){if((e.unParsed)&&(this.findStrInXML(e.unParsed,"text",a))){this.reParse(e)}e=this._getNextNode(b);if(e==-1){e=this.htmlNode.childNodes[0]}}else{var d=this._getPrevNode(b);if(d==-1){d=this._lastChild(this.htmlNode)}if((d.unParsed)&&(this.findStrInXML(d.unParsed,"text",a))){this.reParse(d);e=this._getPrevNode(b)}else{e=d}if(e==-1){e=this._lastChild(this.htmlNode)}}while((e)&&(e!=b)){if((e.label)&&(e.label.search(a)!=-1)){return(e)}if(!f){if(e==-1){if(b==this.htmlNode){break}e=this.htmlNode.childNodes[0]}if((e.unParsed)&&(this.findStrInXML(e.unParsed,"text",a))){this.reParse(e)}e=this._getNextNode(e)}else{var d=this._getPrevNode(e);if(d==-1){d=this._lastChild(this.htmlNode)}if((d.unParsed)&&(this.findStrInXML(d.unParsed,"text",a))){this.reParse(d);e=this._getPrevNode(e)}else{e=d}if(e==-1){e=this._lastChild(this.htmlNode)}}}return null};dhtmlXTreeObject.prototype.setDragBehavior=function(b,a){this._sADnD=(!convertStringToBoolean(a));switch(b){case"child":this.dadmode=0;break;case"sibling":this.dadmode=1;break;case"complex":this.dadmode=2;break}};dhtmlXTreeObject.prototype.moveItem=function(j,h,d,b){var a=this._globalIdStorageFind(j);if(!a){return(0)}switch(h){case"right":alert("Not supported yet");break;case"item_child":var f=(b||this)._globalIdStorageFind(d);if(!f){return(0)}(b||this)._moveNodeTo(a,f,0);break;case"item_sibling":var f=(b||this)._globalIdStorageFind(d);if(!f){return(0)}(b||this)._moveNodeTo(a,f.parentObject,f);break;case"item_sibling_next":var f=(b||this)._globalIdStorageFind(d);if(!f){return(0)}if((f.tr)&&(f.tr.nextSibling)&&(f.tr.nextSibling.nodem)){(b||this)._moveNodeTo(a,f.parentObject,f.tr.nextSibling.nodem)}else{(b||this)._moveNodeTo(a,f.parentObject)}break;case"left":if(a.parentObject.parentObject){this._moveNodeTo(a,a.parentObject.parentObject,a.parentObject)}break;case"up":var g=this._getPrevNode(a);if((g==-1)||(!g.parentObject)){return}this._moveNodeTo(a,g.parentObject,g);break;case"up_strict":var g=this._getIndex(a);if(g!=0){this._moveNodeTo(a,a.parentObject,a.parentObject.childNodes[g-1])}break;case"down_strict":var g=this._getIndex(a);var e=a.parentObject.childsCount-2;if(g==e){this._moveNodeTo(a,a.parentObject)}else{if(g<e){this._moveNodeTo(a,a.parentObject,a.parentObject.childNodes[g+2])}}break;case"down":var g=this._getNextNode(this._lastChild(a));if((g==-1)||(!g.parentObject)){return}if(g.parentObject==a.parentObject){var g=this._getNextNode(g)}if(g==-1){this._moveNodeTo(a,a.parentObject)}else{if((g==-1)||(!g.parentObject)){return}this._moveNodeTo(a,g.parentObject,g)}break}};dhtmlXTreeObject.prototype._loadDynXML=function(d,b){b=b||this.XMLsource;var a=(new Date()).valueOf();this._ld_id=d;if(this.xmlalb=="function"){if(b){b(this._escape(d))}}else{if(this.xmlalb=="name"){this.loadXML(b+this._escape(d))}else{if(this.xmlalb=="xmlname"){this.loadXML(b+this._escape(d)+".xml?uid="+a)}else{this.loadXML(b+getUrlSymbol(b)+"uid="+a+"&id="+this._escape(d))}}}};dhtmlXTreeObject.prototype.enableMultiselection=function(b,a){this._amsel=convertStringToBoolean(b);this._amselS=convertStringToBoolean(a)};dhtmlXTreeObject.prototype._checkMSelectionLogic=function(){var d=new Array();for(var b=0;b<this._selected.length;b++){for(var a=0;a<this._selected.length;a++){if((b!=a)&&(this._checkPNodes(this._selected[a],this._selected[b]))){d[d.length]=this._selected[a]}}}for(var b=0;b<d.length;b++){this._unselectItem(d[b])}};dhtmlXTreeObject.prototype._checkPNodes=function(b,a){if(a==b){return 1}if(b.parentObject){return this._checkPNodes(b.parentObject,a)}else{return 0}};dhtmlXTreeObject.prototype.enableDistributedParsing=function(d,b,a){this._edsbps=convertStringToBoolean(d);this._edsbpsA=new Array();this._edsbpsC=b||10;this._edsbpsD=a||250};dhtmlXTreeObject.prototype.getDistributedParsingState=function(){return(!((!this._edsbpsA)||(!this._edsbpsA.length)))};dhtmlXTreeObject.prototype.getItemParsingState=function(d){var b=this._globalIdStorageFind(d,true,true);if(!b){return 0}if(this._edsbpsA){for(var a=0;a<this._edsbpsA.length;a++){if(this._edsbpsA[a][2]==d){return -1}}}return 1};dhtmlXTreeObject.prototype._distributedStart=function(b,f,e,d,a){if(!this._edsbpsA){this._edsbpsA=new Array()}this._edsbpsA[this._edsbpsA.length]=[b,f,e,d,a]};dhtmlXTreeObject.prototype._distributedStep=function(e){var b=this;if((!this._edsbpsA)||(!this._edsbpsA.length)){b.XMLloadingWarning=0;return}var f=this._edsbpsA[0];this.parsedArray=new Array();this._parseXMLTree(this,f[0],f[2],f[3],null,f[1]);var a=this._globalIdStorageFind(f[2]);this._redrawFrom(this,a,f[4],this._getOpenState(a));var d=this.setCheckList.split(this.dlmtr);for(var g=0;g<d.length;g++){if(d[g]){this.setCheck(d[g],1)}}this._edsbpsA=(new Array()).concat(this._edsbpsA.slice(1));if((!this._edsbpsA.length)){window.setTimeout(function(){if(b.onXLE){b.onXLE(b,e)}b.callEvent("onXLE",[b,e])},1);b.xmlstate=0}};dhtmlXTreeObject.prototype.enablePaging=function(b,a){this._epgps=convertStringToBoolean(b);this._epgpsC=a||50};dhtmlXTreeObject.prototype._setPrevPageSign=function(e,j,h,f){var g=document.createElement("DIV");g.innerHTML="Previous "+this._epgpsC+" items";g.className="dhx_next_button";var d=this;g.onclick=function(){d._prevPageCall(this)};g._pageData=[e,j,h,f];var b=e.childNodes[0];var a=b.span.parentNode.parentNode.parentNode.parentNode.parentNode;a.insertBefore(g,a.firstChild)};dhtmlXTreeObject.prototype._setNextPageSign=function(d,h,g,e){var f=document.createElement("DIV");f.innerHTML="Next "+this._epgpsC+" items";f.className="dhx_next_button";var b=this;f.onclick=function(){b._nextPageCall(this)};f._pageData=[d,h,g,e];var a=d.childNodes[d.childsCount-1];a.span.parentNode.parentNode.parentNode.parentNode.parentNode.appendChild(f)};dhtmlXTreeObject.prototype._nextPageCall=function(a){tree.deleteChildItems(a._pageData[0].id);a.parentNode.removeChild(a);var b=this._getOpenState(a._pageData[0]);this._parseXMLTree(this,a._pageData[3],a._pageData[0].id,a._pageData[2],null,a._pageData[1]);this._redrawFrom(this,a._pageData[0],0);if(b>-1){this._openItem(a._pageData[0])}a._pageData=null};dhtmlXTreeObject.prototype._prevPageCall=function(a){tree.deleteChildItems(a._pageData[0].id);a.parentNode.removeChild(a);var d=this._getOpenState(a._pageData[0]);var b=a._pageData[1]-this._epgpsC;if(b<0){b=0}this._parseXMLTree(this,a._pageData[3],a._pageData[0].id,a._pageData[2],null,b);this._redrawFrom(this,a._pageData[0],0);if(d>-1){this._openItem(a._pageData[0])}a._pageData=null};dhtmlXTreeObject.prototype.enableTextSigns=function(a){this._txtimg=convertStringToBoolean(a)};dhtmlXTreeObject.prototype.preventIECashing=function(a){this.no_cashe=convertStringToBoolean(a);this.XMLLoader.rSeed=this.no_cashe};dhtmlXTreeObject.prototype.smartRefreshBranch=function(b,a){this._branchUpdate=1;this.smartRefreshItem(b,a)};dhtmlXTreeObject.prototype.smartRefreshItem=function(e,d){var a=this._globalIdStorageFind(e);for(var b=0;b<a.childsCount;b++){a.childNodes[b]._dmark=true}this.waitUpdateXML=true;if((d)&&(d.tagName)){this._parseXMLTree(this,d,e)}else{this._loadDynXML(e,d)}};dhtmlXTreeObject.prototype.refreshItems=function(b,d){var e=b.toString().split(this.dlmtr);this.waitUpdateXML=new Array();for(var a=0;a<e.length;a++){this.waitUpdateXML[e[a]]=true}this.loadXML((d||this.XMLsource)+getUrlSymbol(d||this.XMLsource)+"ids="+this._escape(b))};dhtmlXTreeObject.prototype.updateItem=function(h,g,e,d,b,f){var a=this._globalIdStorageFind(h);a.userData=new cObject();if(g){a.label=g}a.images=new Array(e||this.imageArray[0],d||this.imageArray[1],b||this.imageArray[2]);this.setItemText(h,g);if(f){this._setCheck(a,true)}this._correctPlus(a);a._dmark=false;return a};dhtmlXTreeObject.prototype.setDropHandler=function(a){this.attachEvent("onDrop",a)};dhtmlXTreeObject.prototype.setOnLoadingStart=function(a){this.attachEvent("onXLS",a)};dhtmlXTreeObject.prototype.setOnLoadingEnd=function(a){this.attachEvent("onXLE",a)};dhtmlXTreeObject.prototype.disableCheckbox=function(d,b){if(typeof(d)!="object"){var a=this._globalIdStorageFind(d,0,1)}else{var a=d}if(!a){return}a.dscheck=convertStringToBoolean(b)?(((a.checkstate||0)%3)+3):((a.checkstate>2)?(a.checkstate-3):a.checkstate);this._setCheck(a);if(a.dscheck<3){a.dscheck=false}};dhtmlXTreeObject.prototype.setXMLAutoLoadingBehaviour=function(a){this.xmlalb=a};dhtmlXTreeObject.prototype.enableSmartCheckboxes=function(a){this.smcheck=convertStringToBoolean(a)};dhtmlXTreeObject.prototype.getXMLState=function(){return(this.xmlstate==1)};dhtmlXTreeObject.prototype.setItemTopOffset=function(g,e){if(typeof(g)=="string"){var d=this._globalIdStorageFind(g)}else{var d=g}var f=d.span.parentNode.parentNode;for(var b=0;b<f.childNodes.length;b++){if(b!=0){f.childNodes[b].style.height=18+parseInt(e)+"px"}else{var a=f.childNodes[b].firstChild;if(f.childNodes[b].firstChild.tagName!="DIV"){a=document.createElement("DIV");f.childNodes[b].insertBefore(a,f.childNodes[b].firstChild)}a.style.height=parseInt(e)+"px";a.style.backgroundImage="url("+this.imPath+this.lineArray[5]+")";a.innerHTML="&nbsp;";a.style.overflow="hidden";if(parseInt(e)==0){f.childNodes[b].removeChild(a)}}f.childNodes[b].vAlign="bottom"}};dhtmlXTreeObject.prototype.setIconSize=function(e,b,f){if(f){if((f)&&(f.span)){var a=f}else{var a=this._globalIdStorageFind(f)}if(!a){return(0)}var d=a.span.parentNode.previousSibling.childNodes[0];d.style.width=e;d.style.height=b}else{this.def_img_x=e;this.def_img_y=b}};dhtmlXTreeObject.prototype.getItemImage=function(f,e,b){var d=this._globalIdStorageFind(f);if(!d){return""}var a=d.images[e||0];if(b){a=this.imPath+a}return a};dhtmlXTreeObject.prototype.enableRadioButtons=function(e,d){if(arguments.length==1){this._frbtr=convertStringToBoolean(e);this.checkBoxOff=this.checkBoxOff||this._frbtr;return}var b=this._globalIdStorageFind(e);if(!b){return""}d=convertStringToBoolean(d);if((d)&&(!b._r_logic)){b._r_logic=true;for(var a=0;a<b.childsCount;a++){this._setCheck(b.childNodes[a],b.childNodes[a].checkstate)}}if((!d)&&(b._r_logic)){b._r_logic=false;for(var a=0;a<b.childsCount;a++){this._setCheck(b.childNodes[a],b.childNodes[a].checkstate)}}};dhtmlXTreeObject.prototype.enableSingleRadioMode=function(a){this._frbtrs=convertStringToBoolean(a)};dhtmlXTreeObject.prototype.openOnItemAdding=function(a){this._hAdI=!convertStringToBoolean(a)};dhtmlXTreeObject.prototype.enableMultiLineItems=function(a){if(a===true){this.mlitems="100%"}else{this.mlitems=a}};dhtmlXTreeObject.prototype.enableAutoTooltips=function(a){this.ettip=convertStringToBoolean(a)};dhtmlXTreeObject.prototype.enableDHTMLXTooltips=function(a){this._dhxTT=convertStringToBoolean(a)};dhtmlXTreeObject.prototype.clearSelection=function(a){if(a){this._unselectItem(this._globalIdStorageFind(a))}else{this._unselectItems()}};dhtmlXTreeObject.prototype.showItemSign=function(e,b){var a=this._globalIdStorageFind(e);if(!a){return 0}var d=a.span.parentNode.previousSibling.previousSibling.previousSibling;if(!convertStringToBoolean(b)){this._openItem(a);a.closeble=false;a.wsign=true}else{a.closeble=true;a.wsign=false}this._correctPlus(a)};dhtmlXTreeObject.prototype.showItemCheckbox=function(e,d){if(!e){for(var b in this._idpull){this.showItemCheckbox(this._idpull[b],d)}}if(typeof(e)!="object"){e=this._globalIdStorageFind(e,0,1)}if(!e){return 0}e.nocheckbox=!convertStringToBoolean(d);e.span.parentNode.previousSibling.previousSibling.childNodes[0].style.display=(!e.nocheckbox)?"":"none"};dhtmlXTreeObject.prototype.setListDelimeter=function(a){this.dlmtr=a};dhtmlXTreeObject.prototype.setEscapingMode=function(a){this.utfesc=a};dhtmlXTreeObject.prototype.enableHighlighting=function(a){this.ehlt=true;this.ehlta=convertStringToBoolean(a)};dhtmlXTreeObject.prototype._itemMouseOut=function(){var b=this.childNodes[3].parentObject;var a=b.treeNod;a.callEvent("onMouseOut",[b.id]);if(b.id==a._l_onMSI){a._l_onMSI=null}if(!a.ehlt){return}b.span.className=b.span.className.replace("_lor","")};dhtmlXTreeObject.prototype._itemMouseIn=function(){var b=this.childNodes[3].parentObject;var a=b.treeNod;if(a._l_onMSI!=b.id){a.callEvent("onMouseIn",[b.id])}a._l_onMSI=b.id;if(!a.ehlt){return}b.span.className=b.span.className.replace("_lor","");b.span.className=b.span.className.replace(/((standart|selected)TreeRow)/,"$1_lor")};dhtmlXTreeObject.prototype.enableActiveImages=function(a){this._aimgs=convertStringToBoolean(a)};dhtmlXTreeObject.prototype.focusItem=function(b){var a=this._globalIdStorageFind(b);if(!a){return(0)}this._focusNode(a)};dhtmlXTreeObject.prototype.getAllSubItems=function(a){return this._getAllSubItems(a)};dhtmlXTreeObject.prototype.getAllChildless=function(){return this._getAllScraggyItems(this.htmlNode)};dhtmlXTreeObject.prototype.getAllLeafs=dhtmlXTreeObject.prototype.getAllChildless;dhtmlXTreeObject.prototype._getAllScraggyItems=function(d){var e="";for(var b=0;b<d.childsCount;b++){if((d.childNodes[b].unParsed)||(d.childNodes[b].childsCount>0)){if(d.childNodes[b].unParsed){var a=this._getAllScraggyItemsXML(d.childNodes[b].unParsed,1)}else{var a=this._getAllScraggyItems(d.childNodes[b])}if(a){if(e){e+=this.dlmtr+a}else{e=a}}}else{if(!e){e=d.childNodes[b].id}else{e+=this.dlmtr+d.childNodes[b].id}}}return e};dhtmlXTreeObject.prototype._getAllFatItems=function(d){var e="";for(var b=0;b<d.childsCount;b++){if((d.childNodes[b].unParsed)||(d.childNodes[b].childsCount>0)){if(!e){e=d.childNodes[b].id}else{e+=this.dlmtr+d.childNodes[b].id}if(d.childNodes[b].unParsed){var a=this._getAllFatItemsXML(d.childNodes[b].unParsed,1)}else{var a=this._getAllFatItems(d.childNodes[b])}if(a){e+=this.dlmtr+a}}}return e};dhtmlXTreeObject.prototype.getAllItemsWithKids=function(){return this._getAllFatItems(this.htmlNode)};dhtmlXTreeObject.prototype.getAllFatItems=dhtmlXTreeObject.prototype.getAllItemsWithKids;dhtmlXTreeObject.prototype.getAllChecked=function(){return this._getAllChecked("","",1)};dhtmlXTreeObject.prototype.getAllUnchecked=function(a){if(a){a=this._globalIdStorageFind(a)}return this._getAllChecked(a,"",0)};dhtmlXTreeObject.prototype.getAllPartiallyChecked=function(){return this._getAllChecked("","",2)};dhtmlXTreeObject.prototype.getAllCheckedBranches=function(){var a=this._getAllChecked("","",1);if(a!=""){a+=this.dlmtr}return a+this._getAllChecked("","",2)};dhtmlXTreeObject.prototype._getAllChecked=function(e,d,f){if(!e){e=this.htmlNode}if(e.checkstate==f){if(!e.nocheckbox){if(d){d+=this.dlmtr+e.id}else{d=e.id}}}var a=e.childsCount;for(var b=0;b<a;b++){d=this._getAllChecked(e.childNodes[b],d,f)}if(e.unParsed){d=this._getAllCheckedXML(e.unParsed,d,f)}if(d){return d}else{return""}};dhtmlXTreeObject.prototype.setItemStyle=function(d,b){var a=this._globalIdStorageFind(d);if(!a){return 0}if(!a.span.style.cssText){a.span.setAttribute("style",a.span.getAttribute("style")+"; "+b)}else{a.span.style.cssText+=(";"+b)}};dhtmlXTreeObject.prototype.enableImageDrag=function(a){this._itim_dg=convertStringToBoolean(a)};dhtmlXTreeObject.prototype.setOnDragIn=function(a){this.attachEvent("onDragIn",a)};dhtmlXTreeObject.prototype.enableDragAndDropScrolling=function(a){this.autoScroll=convertStringToBoolean(a)};dhtmlXTreeObject.prototype.dhx_Event=function(){this.dhx_SeverCatcherPath="";this.attachEvent=function(original,catcher,CallObj){CallObj=CallObj||this;original="ev_"+original;if((!this[original])||(!this[original].addEvent)){var z=new this.eventCatcher(CallObj);z.addEvent(this[original]);this[original]=z}return(original+":"+this[original].addEvent(catcher))};this.callEvent=function(name,arguments){if(this["ev_"+name]){return this["ev_"+name].apply(this,arguments)}return true};this.checkEvent=function(name){if(this["ev_"+name]){return true}return false};this.eventCatcher=function(obj){var dhx_catch=new Array();var m_obj=obj;var func_server=function(catcher,rpc){catcher=catcher.split(":");var postVar="";var postVar2="";var target=catcher[1];if(catcher[1]=="rpc"){postVar='<?xml version="1.0"?><methodCall><methodName>'+catcher[2]+"</methodName><params>";postVar2="</params></methodCall>";target=rpc}var z=function(){return true};return z};var z=function(){if(dhx_catch){var res=true}for(var i=0;i<dhx_catch.length;i++){if(dhx_catch[i]!=null){var zr=dhx_catch[i].apply(m_obj,arguments);res=res&&zr}}return res};z.addEvent=function(ev){if(typeof(ev)!="function"){if(ev&&ev.indexOf&&ev.indexOf("server:")===0){ev=new func_server(ev,m_obj.rpcServer)}else{ev=eval(ev)}}if(ev){return dhx_catch.push(ev)-1}return false};z.removeEvent=function(id){dhx_catch[id]=null};return z};this.detachEvent=function(id){if(id!=false){var list=id.split(":");this[list[0]].removeEvent(list[1])}}};dhtmlXTreeObject.prototype._serEnts=[["&","&amp;"],["<","&lt;"],[">","&gt;"]];dhtmlXTreeObject.prototype.registerXMLEntity=function(a,b){this._serEnts[this._serEnts.length]=[a,b,new RegExp(a,"g")]};dhtmlXTreeObject.prototype.setSerializationLevel=function(a,b,f,g,d){this._xuserData=convertStringToBoolean(a);this._xfullXML=convertStringToBoolean(b);this._dtd=d;this._xescapeEntities=convertStringToBoolean(f);if(convertStringToBoolean(g)){this._apreUC="<![CDATA[";this._apstUC="]]>"}else{}for(var e=0;e<this._serEnts.length;e++){this._serEnts[e][2]=new RegExp(this._serEnts[e][0],"g")}};dhtmlXTreeObject.prototype.serializeTree=function(){if(this.stopEdit){this.stopEdit()}this._apreUC=this._apreUC||"";this._apstUC=this._apstUC||"";var a='<?xml version="1.0"?>';if(this._dtd){a+='<!DOCTYPE tree SYSTEM "'+this._dtd+'">'}a+='<tree id="'+this.rootId+'">';for(var b=0;b<this.htmlNode.childsCount;b++){a+=this._serializeItem(this.htmlNode.childNodes[b])}a+="</tree>";return a};dhtmlXTreeObject.prototype._serializeItem=function(h){if(h.unParsed){if(document.all){return h.unParsed.xml}else{var a=new XMLSerializer();return a.serializeToString(h.unParsed)}}var b="";if(this._selected.length){var e=this._selected[0].id}else{e='"'}var g=h.span.innerHTML;if(this._xescapeEntities){for(var d=0;d<this._serEnts.length;d++){g=g.replace(this._serEnts[d][2],this._serEnts[d][1])}}if(!this._xfullXML){b='<item id="'+h.id+'" '+(this._getOpenState(h)==1?' open="1" ':"")+(e==h.id?' select="1"':"")+' text="'+g+'"'+(((this.XMLsource)&&(h.XMLload==0))?' child="1" ':"")+">"}else{b='<item id="'+h.id+'" '+(this._getOpenState(h)==1?' open="1" ':"")+(e==h.id?' select="1"':"")+' text="'+g+'" im0="'+h.images[0]+'" im1="'+h.images[1]+'" im2="'+h.images[2]+'" '+(h.acolor?('aCol="'+h.acolor+'" '):"")+(h.scolor?('sCol="'+h.scolor+'" '):"")+(h.checkstate==1?'checked="1" ':(h.checkstate==2?'checked="-1"':""))+(h.closeable?'closeable="1" ':"")+">"}if((this._xuserData)&&(h._userdatalist)){var f=h._userdatalist.split(",");for(var d=0;d<f.length;d++){b+='<userdata name="'+f[d]+'">'+this._apreUC+h.userData["t_"+f[d]]+this._apstUC+"</userdata>"}}for(var d=0;d<h.childsCount;d++){b+=this._serializeItem(h.childNodes[d])}b+="</item>";return b};dhtmlXTreeObject.prototype.saveSelectedItem=function(b,a){b=b||"";this.setCookie("treeStateSelected"+b,this.getSelectedItemId(),a)};dhtmlXTreeObject.prototype.restoreSelectedItem=function(a){a=a||"";var b=this.getCookie("treeStateSelected"+a);this.selectItem(b,false)};dhtmlXTreeObject.prototype.enableAutoSavingSelected=function(a,b){this.assMode=convertStringToBoolean(a);if((this.assMode)&&(!this.oldOnSelect)){this.oldOnSelect=this.onRowSelect;this.onRowSelect=function(f,d,g){if(!d){d=this}d.parentObject.treeNod.oldOnSelect(f,d,g);if(d.parentObject.treeNod.assMode){d.parentObject.treeNod.saveSelectedItem(d.parentObject.treeNod.assCookieName)}}}this.assCookieName=b};dhtmlXTreeObject.prototype.saveState=function(d,b){var f=this._escape(this.serializeTree());var a=4000;if(f.length>a){if(navigator.appName.indexOf("Microsoft")!=-1){return false}this.setCookie("treeStatex"+d,Math.ceil(f.length/a));for(var e=0;e<Math.ceil(f.length/a);e++){this.setCookie("treeStatex"+d+"x"+e,f.substr(e*a,a),b)}}else{this.setCookie("treeStatex"+d,f,b)}var f=this.getCookie("treeStatex"+d);if(!f){this.setCookie("treeStatex"+d,"",b);return false}return true};dhtmlXTreeObject.prototype.loadState=function(a){var e=this.getCookie("treeStatex"+a);if(!e){return false}if(e.length){if(e.toString().length<4){var d="";for(var b=0;b<e;b++){d+=this.getCookie("treeStatex"+a+"x"+b)}e=d}this.loadXMLString((this.utfesc=="utf8")?decodeURI(e):unescape(e))}return true};dhtmlXTreeObject.prototype.setCookie=function(b,d,a){var e=b+"="+d+(a?("; "+a):"");document.cookie=e};dhtmlXTreeObject.prototype.getCookie=function(b){var d=b+"=";if(document.cookie.length>0){var e=document.cookie.indexOf(d);if(e!=-1){e+=d.length;var a=document.cookie.indexOf(";",e);if(a==-1){a=document.cookie.length}return document.cookie.substring(e,a)}}};dhtmlXTreeObject.prototype.saveOpenStates=function(b,a){var e="";for(var d=0;d<this.htmlNode.childsCount;d++){e=this._collectOpenStates(this.htmlNode.childNodes[d],e)}e=e.replace(/\,\,/g,"");this.setCookie("treeOpenStatex"+b,e,a)};dhtmlXTreeObject.prototype.loadOpenStates=function(b){for(var d=0;d<this.htmlNode.childsCount;d++){this._xcloseAll(this.htmlNode.childNodes[d])}this.allTree.childNodes[0].border="1";this.allTree.childNodes[0].border="0";var f=getCookie("treeOpenStatex"+b);if(f){var a=f.split(this.dlmtr);for(var d=0;d<a.length;d++){var e=this._globalIdStorageFind(a[d]);if(e){if((!e.XMLload)&&(e.id!=this.rootId)){this._delayedLoad(e,"loadOpenStates('"+b+"')");return}else{this.openItem(a[d])}}}}};dhtmlXTreeObject.prototype._delayedLoad=function(b,a){this.afterLoadMethod=a;this.onLoadReserve=this.onXLE;tree.onXLE=this._delayedLoadStep2;this.loadXML(this.XMLsource+getUrlSymbol(this.XMLsource)+"id="+this._escape(b.id))};dhtmlXTreeObject.prototype._delayedLoadStep2=function(tree){tree.onXLE=tree.onLoadReserve;window.setTimeout(function(){eval("tree."+tree.afterLoadMethod)},100);if(tree.onXLE){tree.onXLE(tree)}tree.callEvent("onXLE",[tree])};dhtmlXTreeObject.prototype._collectOpenStates=function(b,d){if(this._getOpenState(b)==1){d+=this.dlmtr+b.id;for(var a=0;a<b.childsCount;a++){d=this._collectOpenStates(b.childNodes[a],d)}}return d};function setCookie(a,b){document.cookie=a+"="+b}function getCookie(b){var d=b+"=";if(document.cookie.length>0){var e=document.cookie.indexOf(d);if(e!=-1){e+=d.length;var a=document.cookie.indexOf(";",e);if(a==-1){a=document.cookie.length}return(document.cookie.substring(e,a))}}}dhtmlXTreeObject.prototype.openAllItemsDynamic=function(a){this.ClosedElem=new Array();this.G_node=null;var b=this._globalIdStorageFind(a||this.rootId);this._openAllNodeChilds(b,0);if(this.ClosedElem.length>0){this.onLoadReserve=this.onXLE;this.setOnLoadingEnd(this._loadAndOpen);this._loadAndOpen(this)}};dhtmlXTreeObject.prototype._openAllNodeChilds=function(b){if((b.XMLload==0)||(b.unParsed)){this.ClosedElem.push(b)}for(var a=0;a<b.childsCount;a++){if(this._getOpenState(b.childNodes[a])<0){this._HideShow(b.childNodes[a],2)}if(b.childNodes[a].childsCount>0){this._openAllNodeChilds(b.childNodes[a])}if((b.childNodes[a].XMLload==0)||(b.childNodes[a].unParsed)){this.ClosedElem.push(b.childNodes[a])}}};dhtmlXTreeObject.prototype._loadAndOpen=function(a){if(a.G_node){a._openItem(a.G_node);a._openAllNodeChilds(a.G_node);a.G_node=null}if(a.ClosedElem.length>0){a.G_node=a.ClosedElem.shift()}if(a.G_node){if(a.G_node.unParsed){a.reParse(a.G_node)}else{window.setTimeout(function(){a._loadDynXML(a.G_node.id)},100)}}else{a.onXLE=a.onLoadReserve;if(a.onXLE){a.onXLE(a)}a.callEvent("onXLE",[a])}};dhtmlXTreeObject.prototype.openItemsDynamic=function(b,a){this._opnItmsDnmcFlg=convertStringToBoolean(a);this.onLoadReserve=this.onXLE;this.setOnLoadingEnd(this._stepOpen);this.ClosedElem=b.split(",").reverse();this._stepOpen(this)};dhtmlXTreeObject.prototype._stepOpen=function(b){if(!b.ClosedElem.length){b.onXLE=b.onLoadReserve;if(b._opnItmsDnmcFlg){b.selectItem(b.G_node,true)}if((b.onXLE)&&(arguments[1])){b.onXLE.apply(b,arguments)}return}b.G_node=b.ClosedElem.pop();var a=b._globalIdStorageFind(b.G_node);if(a.XMLload===0){b.openItem(b.G_node)}else{b.openItem(b.G_node);b._stepOpen(b)}};function MM_window(d,a,b){window.open(d,a,b)}function randomId(){return Math.ceil(Math.random()*10000)}function MM_Company(a){MM_window(a,"FirmenPopup"+randomId(),"resizable=yes,scrollbars=yes,menubar=yes,location=yes,toolbar=yes,status=yes")}function open_popup_window(a,d,b){if(d>0){popupWin=window.open(a,"popup","dependent = 0, width = "+d+", height = "+b+", screenX = 20, screenY = 20, left = 20, top = 20, channelmode = 0, directories = 0, fullscreen = 0, location = 0, menubar = 0, resizable = 0, scrollbars = 1, status = 0, toolbar = 0, locationbar=0","launcher")}else{popupWin=window.open(a,"popup","dependent = 0, screenX = 20, screenY = 20, left = 20, top = 20, channelmode = 0, directories = 0, fullscreen = 0, location = 0, menubar = 0, resizable = 1, scrollbars = 1, status = 0, toolbar = 0, locationbar=0","launcher")}if(window.focus){popupWin.focus()}}if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(n,b,o,e,k,l,g,f,d,m){if(!document.getElementById){return}this.DETECT_KEY=m?m:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(n){this.setAttribute("swf",n)}if(b){this.setAttribute("id",b)}if(o){this.setAttribute("width",o)}if(e){this.setAttribute("height",e)}if(k){this.setAttribute("version",new deconcept.PlayerVersion(k.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(l){this.addParam("bgcolor",l)}var a=g?g:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var j=(f)?f:window.location;this.setAttribute("xiRedirectUrl",j);this.setAttribute("redirectUrl","");if(d){this.setAttribute("redirectUrl",d)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var d=new Array();var b;var a=this.getVariables();for(b in a){d[d.length]=b+"="+a[b]}return d},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var g=this.getParams();for(var f in g){b+=[f]+'="'+g[f]+'" '}var e=this.getVariablePairs().join("&");if(e.length>0){b+='flashvars="'+e+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var d=this.getParams();for(var f in d){b+='<param name="'+f+'" value="'+d[f]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var d=(typeof b=="string")?document.getElementById(b):b;d.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var g=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){g=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var b=1;var d=3;while(b){try{d++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+d);g=new deconcept.PlayerVersion([d,0,0])}catch(f){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(f){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");g=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(f){if(g.major==6){return g}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(f){}}if(b!=null){g=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return g};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(d){var e=document.location.search||document.location.hash;if(d==null){return e}if(e){var b=e.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==d){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var b=document.getElementsByTagName("OBJECT");for(var d=b.length-1;d>=0;d--){b[d].style.display="none";for(var a in b[d]){if(typeof b[d][a]=="function"){b[d][a]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion(){var a;var b;var d;try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=b.GetVariable("$version")}catch(d){}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a="WIN 6,0,21,0";b.AllowScriptAccess="always";a=b.GetVariable("$version")}catch(d){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a=b.GetVariable("$version")}catch(d){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a="WIN 3,0,18,0"}catch(d){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");a="WIN 2,0,0,11"}catch(d){a=-1}}return a}function GetSwfVer(){var h=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var g=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var a=navigator.plugins["Shockwave Flash"+g].description;var f=a.split(" ");var d=f[2].split(".");var j=d[0];var b=d[1];var e=f[3];if(e==""){e=f[4]}if(e[0]=="d"){e=e.substring(1)}else{if(e[0]=="r"){e=e.substring(1);if(e.indexOf("d")>0){e=e.substring(0,e.indexOf("d"))}}}var h=j+"."+b+"."+e}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){h=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){h=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){h=2}else{if(isIE&&isWin&&!isOpera){h=ControlVersion()}}}}}return h}function DetectFlashVer(g,e,d){versionStr=GetSwfVer();if(versionStr==-1){return false}else{if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var f=versionArray[0];var a=versionArray[1];var b=versionArray[2];if(f>parseFloat(g)){return true}else{if(f==parseFloat(g)){if(a>parseFloat(e)){return true}else{if(a==parseFloat(e)){if(b>=parseFloat(d)){return true}}}}}return false}}}function AC_AddExtension(b,a){if(b.indexOf("?")!=-1){return b.replace(/\?/,a+"?")}else{return b+a}}function AC_Generateobj(f,e,a){var d="";if(isIE&&isWin&&!isOpera){d+="<object ";for(var b in f){d+=b+'="'+f[b]+'" '}d+=">";for(var b in e){d+='<param name="'+b+'" value="'+e[b]+'" /> '}d+="</object>"}else{d+="<embed ";for(var b in a){d+=b+'="'+a[b]+'" '}d+="> </embed>"}document.write(d)}function AC_FL_RunContent(){var a=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)}function AC_SW_RunContent(){var a=AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)}function AC_GetArgs(b,f,h,e,j){var a=new Object();a.embedAttrs=new Object();a.params=new Object();a.objAttrs=new Object();for(var d=0;d<b.length;d=d+2){var g=b[d].toLowerCase();switch(g){case"classid":break;case"pluginspage":a.embedAttrs[b[d]]=b[d+1];break;case"src":case"movie":b[d+1]=AC_AddExtension(b[d+1],f);a.embedAttrs.src=b[d+1];a.params[h]=b[d+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblclick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":a.objAttrs[b[d]]=b[d+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":a.embedAttrs[b[d]]=a.objAttrs[b[d]]=b[d+1];break;default:a.embedAttrs[b[d]]=a.params[b[d]]=b[d+1]}}a.objAttrs.classid=e;if(j){a.embedAttrs.type=j}return a}(function(){var W=this,ab,F=W.jQuery,S=W.$,T=W.jQuery=W.$=function(b,a){return new T.fn.init(b,a)},M=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,ac=/^.[^:#\[\.,]*$/;T.fn=T.prototype={init:function(f,b){f=f||document;if(f.nodeType){this[0]=f;this.length=1;this.context=f;return this}if(typeof f==="string"){var d=M.exec(f);if(d&&(d[1]||!b)){if(d[1]){f=T.clean([d[1]],b)}else{var a=document.getElementById(d[3]);if(a&&a.id!=d[3]){return T().find(f)}var e=T(a||[]);e.context=document;e.selector=f;return e}}else{return T(b).find(f)}}else{if(T.isFunction(f)){return T(document).ready(f)}}if(f.selector&&f.context){this.selector=f.selector;this.context=f.context}return this.setArray(T.isArray(f)?f:T.makeArray(f))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(a){return a===ab?Array.prototype.slice.call(this):this[a]},pushStack:function(d,a,e){var b=T(d);b.prevObject=this;b.context=this.context;if(a==="find"){b.selector=this.selector+(this.selector?" ":"")+e}else{if(a){b.selector=this.selector+"."+a+"("+e+")"}}return b},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(a,b){return T.each(this,a,b)},index:function(a){return T.inArray(a&&a.jquery?a[0]:a,this)},attr:function(d,a,b){var e=d;if(typeof d==="string"){if(a===ab){return this[0]&&T[b||"attr"](this[0],d)}else{e={};e[d]=a}}return this.each(function(f){for(d in e){T.attr(b?this.style:this,d,T.prop(this,e[d],b,f,d))}})},css:function(b,a){if((b=="width"||b=="height")&&parseFloat(a)<0){a=ab}return this.attr(b,a,"curCSS")},text:function(a){if(typeof a!=="object"&&a!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(a))}var b="";T.each(a||this,function(){T.each(this.childNodes,function(){if(this.nodeType!=8){b+=this.nodeType!=1?this.nodeValue:T.fn.text([this])}})});return b},wrapAll:function(b){if(this[0]){var a=T(b,this[0].ownerDocument).clone();if(this[0].parentNode){a.insertBefore(this[0])}a.map(function(){var d=this;while(d.firstChild){d=d.firstChild}return d}).append(this)}return this},wrapInner:function(a){return this.each(function(){T(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){T(this).wrapAll(a)})},append:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.appendChild(a)}})},prepend:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.insertBefore(a,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)})},end:function(){return this.prevObject||T([])},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var a=this.pushStack([],"find",b);a.length=0;T.find(b,this[0],a);return a}else{return this.pushStack(T.unique(T.map(this,function(d){return T.find(b,d)})),"find",b)}},clone:function(b){var e=this.map(function(){if(!T.support.noCloneEvent&&!T.isXMLDoc(this)){var g=this.outerHTML;if(!g){var f=this.ownerDocument.createElement("div");f.appendChild(this.cloneNode(true));g=f.innerHTML}return T.clean([g.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(b===true){var a=this.find("*").andSelf(),d=0;e.find("*").andSelf().each(function(){if(this.nodeName!==a[d].nodeName){return}var h=T.data(a[d],"events");for(var f in h){for(var g in h[f]){T.event.add(this,f,h[f][g],h[f][g].data)}}d++})}return e},filter:function(a){return this.pushStack(T.isFunction(a)&&T.grep(this,function(b,d){return a.call(b,d)})||T.multiFilter(a,T.grep(this,function(b){return b.nodeType===1})),"filter",a)},closest:function(d){var a=T.expr.match.POS.test(d)?T(d):null,b=0;return this.map(function(){var e=this;while(e&&e.ownerDocument){if(a?a.index(e)>-1:T(e).is(d)){T.data(e,"closest",b);return e}e=e.parentNode;b++}})},not:function(b){if(typeof b==="string"){if(ac.test(b)){return this.pushStack(T.multiFilter(b,this,true),"not",b)}else{b=T.multiFilter(b,this)}}var a=b.length&&b[b.length-1]!==ab&&!b.nodeType;return this.filter(function(){return a?T.inArray(this,b)<0:this!=b})},add:function(a){return this.pushStack(T.unique(T.merge(this.get(),typeof a==="string"?T(a):T.makeArray(a))))},is:function(a){return !!a&&T.multiFilter(a,this).length>0},hasClass:function(a){return !!a&&this.is("."+a)},val:function(d){if(d===ab){var k=this[0];if(k){if(T.nodeName(k,"option")){return(k.attributes.value||{}).specified?k.value:k.text}if(T.nodeName(k,"select")){var f=k.selectedIndex,b=[],a=k.options,g=k.type=="select-one";if(f<0){return null}for(var j=g?f:0,e=g?f+1:a.length;j<e;j++){var h=a[j];if(h.selected){d=T(h).val();if(g){return d}b.push(d)}}return b}return(k.value||"").replace(/\r/g,"")}return ab}if(typeof d==="number"){d+=""}return this.each(function(){if(this.nodeType!=1){return}if(T.isArray(d)&&/radio|checkbox/.test(this.type)){this.checked=(T.inArray(this.value,d)>=0||T.inArray(this.name,d)>=0)}else{if(T.nodeName(this,"select")){var l=T.makeArray(d);T("option",this).each(function(){this.selected=(T.inArray(this.value,l)>=0||T.inArray(this.text,l)>=0)});if(!l.length){this.selectedIndex=-1}}else{this.value=d}}})},html:function(a){return a===ab?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(a)},replaceWith:function(a){return this.after(a).remove()},eq:function(a){return this.slice(a,+a+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(a){return this.pushStack(T.map(this,function(b,d){return a.call(b,d,b)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(e,a,b){if(this[0]){var f=(this[0].ownerDocument||this[0]).createDocumentFragment(),j=T.clean(e,(this[0].ownerDocument||this[0]),f),g=f.firstChild;if(g){for(var h=0,k=this.length;h<k;h++){b.call(d(this[h],g),this.length>1||h>0?f.cloneNode(true):f)}}if(j){T.each(j,E)}}return this;function d(m,l){return a&&T.nodeName(m,"table")&&T.nodeName(l,"tr")?(m.getElementsByTagName("tbody")[0]||m.appendChild(m.ownerDocument.createElement("tbody"))):m}}};T.fn.init.prototype=T.fn;function E(b,a){if(a.src){T.ajax({url:a.src,async:false,dataType:"script"})}else{T.globalEval(a.text||a.textContent||a.innerHTML||"")}if(a.parentNode){a.parentNode.removeChild(a)}}function ad(){return +new Date}T.extend=T.fn.extend=function(){var d=arguments[0]||{},f=1,e=arguments.length,j=false,g;if(typeof d==="boolean"){j=d;d=arguments[1]||{};f=2}if(typeof d!=="object"&&!T.isFunction(d)){d={}}if(e==f){d=this;--f}for(;f<e;f++){if((g=arguments[f])!=null){for(var h in g){var b=d[h],a=g[h];if(d===a){continue}if(j&&a&&typeof a==="object"&&!a.nodeType){d[h]=T.extend(j,b||(a.length!=null?[]:{}),a)}else{if(a!==ab){d[h]=a}}}}}return d};var ag=/z-?index|font-?weight|opacity|zoom|line-?height/i,Q=document.defaultView||{},L=Object.prototype.toString;T.extend({noConflict:function(a){W.$=S;if(a){W.jQuery=F}return T},isFunction:function(a){return L.call(a)==="[object Function]"},isArray:function(a){return L.call(a)==="[object Array]"},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&T.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a&&/\S/.test(a)){var b=document.getElementsByTagName("head")[0]||document.documentElement,d=document.createElement("script");d.type="text/javascript";if(T.support.scriptEval){d.appendChild(document.createTextNode(a))}else{d.text=a}b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()},each:function(f,a,g){var h,e=0,d=f.length;if(g){if(d===ab){for(h in f){if(a.apply(f[h],g)===false){break}}}else{for(;e<d;){if(a.apply(f[e++],g)===false){break}}}}else{if(d===ab){for(h in f){if(a.call(f[h],h,f[h])===false){break}}}else{for(var b=f[0];e<d&&a.call(b,e,b)!==false;b=f[++e]){}}}return f},prop:function(b,a,d,e,f){if(T.isFunction(a)){a=a.call(b,e)}return typeof a==="number"&&d=="curCSS"&&!ag.test(f)?a+"px":a},className:{add:function(b,a){T.each((a||"").split(/\s+/),function(e,d){if(b.nodeType==1&&!T.className.has(b.className,d)){b.className+=(b.className?" ":"")+d}})},remove:function(b,a){if(b.nodeType==1){b.className=a!==ab?T.grep(b.className.split(/\s+/),function(d){return !T.className.has(a,d)}).join(" "):""}},has:function(a,b){return a&&T.inArray(b,(a.className||a).toString().split(/\s+/))>-1}},swap:function(b,d,a){var f={};for(var e in d){f[e]=b.style[e];b.style[e]=d[e]}a.call(b);for(var e in d){b.style[e]=f[e]}},css:function(f,h,d,j){if(h=="width"||h=="height"){var a,g={position:"absolute",visibility:"hidden",display:"block"},b=h=="width"?["Left","Right"]:["Top","Bottom"];function e(){a=h=="width"?f.offsetWidth:f.offsetHeight;if(j==="border"){return}T.each(b,function(){if(!j){a-=parseFloat(T.curCSS(f,"padding"+this,true))||0}if(j==="margin"){a+=parseFloat(T.curCSS(f,"margin"+this,true))||0}else{a-=parseFloat(T.curCSS(f,"border"+this+"Width",true))||0}})}if(f.offsetWidth!==0){e()}else{T.swap(f,g,e)}return Math.max(0,Math.round(a))}return T.curCSS(f,h,d)},curCSS:function(f,j,h){var b,k=f.style;if(j=="opacity"&&!T.support.opacity){b=T.attr(k,"opacity");return b==""?"1":b}if(j.match(/float/i)){j=H}if(!h&&k&&k[j]){b=k[j]}else{if(Q.getComputedStyle){if(j.match(/float/i)){j="float"}j=j.replace(/([A-Z])/g,"-$1").toLowerCase();var a=Q.getComputedStyle(f,null);if(a){b=a.getPropertyValue(j)}if(j=="opacity"&&b==""){b="1"}}else{if(f.currentStyle){var e=j.replace(/\-(\w)/g,function(m,l){return l.toUpperCase()});b=f.currentStyle[j]||f.currentStyle[e];if(!/^\d+(px)?$/i.test(b)&&/^\d/.test(b)){var g=k.left,d=f.runtimeStyle.left;f.runtimeStyle.left=f.currentStyle.left;k.left=b||0;b=k.pixelLeft+"px";k.left=g;f.runtimeStyle.left=d}}}}return b},clean:function(h,b,e){b=b||document;if(typeof b.createElement==="undefined"){b=b.ownerDocument||b[0]&&b[0].ownerDocument||document}if(!e&&h.length===1&&typeof h[0]==="string"){var f=/^<(\w+)\s*\/?>$/.exec(h[0]);if(f){return[b.createElement(f[1])]}}var g=[],j=[],a=b.createElement("div");T.each(h,function(n,k){if(typeof k==="number"){k+=""}if(!k){return}if(typeof k==="string"){k=k.replace(/(<(\w+)[^>]*?)\/>/g,function(s,r,t){return t.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?s:r+"></"+t+">"});var o=k.replace(/^\s+/,"").substring(0,10).toLowerCase();var m=!o.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!o.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||o.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!o.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!o.indexOf("<td")||!o.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!o.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!T.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];a.innerHTML=m[1]+k+m[2];while(m[0]--){a=a.lastChild}if(!T.support.tbody){var l=/<tbody/i.test(k),p=!o.indexOf("<table")&&!l?a.firstChild&&a.firstChild.childNodes:m[1]=="<table>"&&!l?a.childNodes:[];for(var q=p.length-1;q>=0;--q){if(T.nodeName(p[q],"tbody")&&!p[q].childNodes.length){p[q].parentNode.removeChild(p[q])}}}if(!T.support.leadingWhitespace&&/^\s/.test(k)){a.insertBefore(b.createTextNode(k.match(/^\s*/)[0]),a.firstChild)}k=T.makeArray(a.childNodes)}if(k.nodeType){g.push(k)}else{g=T.merge(g,k)}});if(e){for(var d=0;g[d];d++){if(T.nodeName(g[d],"script")&&(!g[d].type||g[d].type.toLowerCase()==="text/javascript")){j.push(g[d].parentNode?g[d].parentNode.removeChild(g[d]):g[d])}else{if(g[d].nodeType===1){g.splice.apply(g,[d+1,0].concat(T.makeArray(g[d].getElementsByTagName("script"))))}e.appendChild(g[d])}}return j}return g},attr:function(d,g,b){if(!d||d.nodeType==3||d.nodeType==8){return ab}var f=!T.isXMLDoc(d),a=b!==ab;g=f&&T.props[g]||g;if(d.tagName){var h=/href|src|style/.test(g);if(g=="selected"&&d.parentNode){d.parentNode.selectedIndex}if(g in d&&f&&!h){if(a){if(g=="type"&&T.nodeName(d,"input")&&d.parentNode){throw"type property can't be changed"}d[g]=b}if(T.nodeName(d,"form")&&d.getAttributeNode(g)){return d.getAttributeNode(g).nodeValue}if(g=="tabIndex"){var e=d.getAttributeNode("tabIndex");return e&&e.specified?e.value:d.nodeName.match(/(button|input|object|select|textarea)/i)?0:d.nodeName.match(/^(a|area)$/i)&&d.href?0:ab}return d[g]}if(!T.support.style&&f&&g=="style"){return T.attr(d.style,"cssText",b)}if(a){d.setAttribute(g,""+b)}var j=!T.support.hrefNormalized&&f&&h?d.getAttribute(g,2):d.getAttribute(g);return j===null?ab:j}if(!T.support.opacity&&g=="opacity"){if(a){d.zoom=1;d.filter=(d.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(b)+""=="NaN"?"":"alpha(opacity="+b*100+")")}return d.filter&&d.filter.indexOf("opacity=")>=0?(parseFloat(d.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}g=g.replace(/-([a-z])/ig,function(l,k){return k.toUpperCase()});if(a){d[g]=b}return d[g]},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var d=[];if(a!=null){var b=a.length;if(b==null||typeof a==="string"||T.isFunction(a)||a.setInterval){d[0]=a}else{while(b){d[--b]=a[b]}}}return d},inArray:function(b,a){for(var e=0,d=a.length;e<d;e++){if(a[e]===b){return e}}return -1},merge:function(b,f){var e=0,d,a=b.length;if(!T.support.getAll){while((d=f[e++])!=null){if(d.nodeType!=8){b[a++]=d}}}else{while((d=f[e++])!=null){b[a++]=d}}return b},unique:function(a){var g=[],h={};try{for(var f=0,e=a.length;f<e;f++){var b=T.data(a[f]);if(!h[b]){h[b]=true;g.push(a[f])}}}catch(d){g=a}return g},grep:function(f,a,g){var e=[];for(var d=0,b=f.length;d<b;d++){if(!g!=!a(f[d],d)){e.push(f[d])}}return e},map:function(g,a){var f=[];for(var e=0,d=g.length;e<d;e++){var b=a(g[e],e);if(b!=null){f[f.length]=b}}return f.concat.apply([],f)}});var O=navigator.userAgent.toLowerCase();T.browser={version:(O.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(O),opera:/opera/.test(O),msie:/msie/.test(O)&&!/opera/.test(O),mozilla:/mozilla/.test(O)&&!/(compatible|webkit)/.test(O)};T.each({parent:function(a){return a.parentNode},parents:function(a){return T.dir(a,"parentNode")},next:function(a){return T.nth(a,2,"nextSibling")},prev:function(a){return T.nth(a,2,"previousSibling")},nextAll:function(a){return T.dir(a,"nextSibling")},prevAll:function(a){return T.dir(a,"previousSibling")},siblings:function(a){return T.sibling(a.parentNode.firstChild,a)},children:function(a){return T.sibling(a.firstChild)},contents:function(a){return T.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:T.makeArray(a.childNodes)}},function(b,a){T.fn[b]=function(e){var d=T.map(this,a);if(e&&typeof e=="string"){d=T.multiFilter(e,d)}return this.pushStack(T.unique(d),b,e)}});T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,a){T.fn[b]=function(j){var f=[],d=T(j);for(var e=0,h=d.length;e<h;e++){var g=(e>0?this.clone(true):this).get();T.fn[a].apply(T(d[e]),g);f=f.concat(g)}return this.pushStack(f,b,j)}});T.each({removeAttr:function(a){T.attr(this,a,"");if(this.nodeType==1){this.removeAttribute(a)}},addClass:function(a){T.className.add(this,a)},removeClass:function(a){T.className.remove(this,a)},toggleClass:function(a,b){if(typeof b!=="boolean"){b=!T.className.has(this,a)}T.className[b?"add":"remove"](this,a)},remove:function(a){if(!a||T.filter(a,[this]).length){T("*",this).add([this]).each(function(){T.event.remove(this);T.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){T(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(b,a){T.fn[b]=function(){return this.each(a,arguments)}});function Y(b,a){return b[0]&&parseInt(T.curCSS(b[0],a,true),10)||0}var aa="jQuery"+ad(),I=0,R={};T.extend({cache:{},data:function(d,e,b){d=d==W?R:d;var a=d[aa];if(!a){a=d[aa]=++I}if(e&&!T.cache[a]){T.cache[a]={}}if(b!==ab){T.cache[a][e]=b}return e?T.cache[a][e]:a},removeData:function(d,e){d=d==W?R:d;var a=d[aa];if(e){if(T.cache[a]){delete T.cache[a][e];e="";for(e in T.cache[a]){break}if(!e){T.removeData(d)}}}else{try{delete d[aa]}catch(b){if(d.removeAttribute){d.removeAttribute(aa)}}delete T.cache[a]}},queue:function(d,e,a){if(d){e=(e||"fx")+"queue";var b=T.data(d,e);if(!b||T.isArray(a)){b=T.data(d,e,T.makeArray(a))}else{if(a){b.push(a)}}}return b},dequeue:function(a,b){var e=T.queue(a,b),d=e.shift();if(!b||b==="fx"){d=e[0]}if(d!==ab){d.call(a)}}});T.fn.extend({data:function(e,b){var a=e.split(".");a[1]=a[1]?"."+a[1]:"";if(b===ab){var d=this.triggerHandler("getData"+a[1]+"!",[a[0]]);if(d===ab&&this.length){d=T.data(this[0],e)}return d===ab&&a[1]?this.data(a[0]):d}else{return this.trigger("setData"+a[1]+"!",[a[0],b]).each(function(){T.data(this,e,b)})}},removeData:function(a){return this.each(function(){T.removeData(this,a)})},queue:function(b,a){if(typeof b!=="string"){a=b;b="fx"}if(a===ab){return T.queue(this[0],b)}return this.each(function(){var d=T.queue(this,b,a);if(b=="fx"&&d.length==1){d[0].call(this)}})},dequeue:function(a){return this.each(function(){T.dequeue(this,a)})}});(function(){var b=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,j=0,n=Object.prototype.toString;var p=function(t,x,ak,aj){ak=ak||[];x=x||document;if(x.nodeType!==1&&x.nodeType!==9){return[]}if(!t||typeof t!=="string"){return ak}var s=[],v,C,z,y,ai,w,u=true;b.lastIndex=0;while((v=b.exec(t))!==null){s.push(v[1]);if(v[2]){w=RegExp.rightContext;break}}if(s.length>1&&h.exec(t)){if(s.length===2&&m.relative[s[0]]){C=l(s[0]+s[1],x)}else{C=m.relative[s[0]]?[x]:p(s.shift(),x);while(s.length){t=s.shift();if(m.relative[t]){t+=s.shift()}C=l(t,C)}}}else{var D=aj?{expr:s.pop(),set:q(aj)}:p.find(s.pop(),s.length===1&&x.parentNode?x.parentNode:x,d(x));C=p.filter(D.expr,D.set);if(s.length>0){z=q(C)}else{u=false}while(s.length){var A=s.pop(),B=A;if(!m.relative[A]){A=""}else{B=s.pop()}if(B==null){B=x}m.relative[A](z,B,d(x))}}if(!z){z=C}if(!z){throw"Syntax error, unrecognized expression: "+(A||t)}if(n.call(z)==="[object Array]"){if(!u){ak.push.apply(ak,z)}else{if(x.nodeType===1){for(var r=0;z[r]!=null;r++){if(z[r]&&(z[r]===true||z[r].nodeType===1&&k(x,z[r]))){ak.push(C[r])}}}else{for(var r=0;z[r]!=null;r++){if(z[r]&&z[r].nodeType===1){ak.push(C[r])}}}}}else{q(z,ak)}if(w){p(w,x,ak,aj);if(o){hasDuplicate=false;ak.sort(o);if(hasDuplicate){for(var r=1;r<ak.length;r++){if(ak[r]===ak[r-1]){ak.splice(r--,1)}}}}}return ak};p.matches=function(s,r){return p(s,null,null,r)};p.find=function(r,y,z){var s,u;if(!r){return[]}for(var v=0,w=m.order.length;v<w;v++){var t=m.order[v],u;if((u=m.match[t].exec(r))){var x=RegExp.leftContext;if(x.substr(x.length-1)!=="\\"){u[1]=(u[1]||"").replace(/\\/g,"");s=m.find[t](u,y,z);if(s!=null){r=r.replace(m.match[t],"");break}}}}if(!s){s=y.getElementsByTagName("*")}return{set:s,expr:r}};p.filter=function(ai,aj,B,v){var w=ai,z=[],r=aj,t,y,s=aj&&aj[0]&&d(aj[0]);while(ai&&aj.length){for(var ak in m.filter){if((t=m.match[ak].exec(ai))!=null){var x=m.filter[ak],A,C;y=false;if(r==z){z=[]}if(m.preFilter[ak]){t=m.preFilter[ak](t,r,B,z,v,s);if(!t){y=A=true}else{if(t===true){continue}}}if(t){for(var u=0;(C=r[u])!=null;u++){if(C){A=x(C,t,u,r);var D=v^!!A;if(B&&A!=null){if(D){y=true}else{r[u]=false}}else{if(D){z.push(C);y=true}}}}}if(A!==ab){if(!B){r=z}ai=ai.replace(m.match[ak],"");if(!y){return[]}break}}}if(ai==w){if(y==null){throw"Syntax error, unrecognized expression: "+ai}else{break}}w=ai}return r};var m=p.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(r){return r.getAttribute("href")}},relative:{"+":function(r,y,s){var u=typeof y==="string",z=u&&!/\W/.test(y),t=u&&!z;if(z&&!s){y=y.toUpperCase()}for(var v=0,w=r.length,x;v<w;v++){if((x=r[v])){while((x=x.previousSibling)&&x.nodeType!==1){}r[v]=t||x&&x.nodeName===y?x||false:x===y}}if(t){p.filter(y,r,true)}},">":function(w,t,v){var y=typeof t==="string";if(y&&!/\W/.test(t)){t=v?t:t.toUpperCase();for(var s=0,u=w.length;s<u;s++){var x=w[s];if(x){var r=x.parentNode;w[s]=r.nodeName===t?r:false}}}else{for(var s=0,u=w.length;s<u;s++){var x=w[s];if(x){w[s]=y?x.parentNode:x.parentNode===t}}if(y){p.filter(t,w,true)}}},"":function(r,t,v){var s=j++,u=a;if(!t.match(/\W/)){var w=t=v?t:t.toUpperCase();u=e}u("parentNode",t,s,r,w,v)},"~":function(r,t,v){var s=j++,u=a;if(typeof t==="string"&&!t.match(/\W/)){var w=t=v?t:t.toUpperCase();u=e}u("previousSibling",t,s,r,w,v)}},find:{ID:function(t,s,r){if(typeof s.getElementById!=="undefined"&&!r){var u=s.getElementById(t[1]);return u?[u]:[]}},NAME:function(s,w,v){if(typeof w.getElementsByName!=="undefined"){var t=[],x=w.getElementsByName(s[1]);for(var r=0,u=x.length;r<u;r++){if(x[r].getAttribute("name")===s[1]){t.push(x[r])}}return t.length===0?null:t}},TAG:function(s,r){return r.getElementsByTagName(s[1])}},preFilter:{CLASS:function(r,t,s,u,w,v){r=" "+r[1].replace(/\\/g,"")+" ";if(v){return r}for(var y=0,x;(x=t[y])!=null;y++){if(x){if(w^(x.className&&(" "+x.className+" ").indexOf(r)>=0)){if(!s){u.push(x)}}else{if(s){t[y]=false}}}}return false},ID:function(r){return r[1].replace(/\\/g,"")},TAG:function(s,t){for(var r=0;t[r]===false;r++){}return t[r]&&d(t[r])?s[1]:s[1].toUpperCase()},CHILD:function(s){if(s[1]=="nth"){var r=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(s[2]=="even"&&"2n"||s[2]=="odd"&&"2n+1"||!/\D/.test(s[2])&&"0n+"+s[2]||s[2]);s[2]=(r[1]+(r[2]||1))-0;s[3]=r[3]-0}s[0]=j++;return s},ATTR:function(x,t,s,u,w,v){var r=x[1].replace(/\\/g,"");if(!v&&m.attrMap[r]){x[1]=m.attrMap[r]}if(x[2]==="~="){x[4]=" "+x[4]+" "}return x},PSEUDO:function(w,t,s,u,v){if(w[1]==="not"){if(w[3].match(b).length>1||/^\w/.test(w[3])){w[3]=p(w[3],null,null,t)}else{var r=p.filter(w[3],t,s,true^v);if(!s){u.push.apply(u,r)}return false}}else{if(m.match.POS.test(w[0])||m.match.CHILD.test(w[0])){return true}}return w},POS:function(r){r.unshift(true);return r}},filters:{enabled:function(r){return r.disabled===false&&r.type!=="hidden"},disabled:function(r){return r.disabled===true},checked:function(r){return r.checked===true},selected:function(r){r.parentNode.selectedIndex;return r.selected===true},parent:function(r){return !!r.firstChild},empty:function(r){return !r.firstChild},has:function(r,s,t){return !!p(t[3],r).length},header:function(r){return/h\d/i.test(r.nodeName)},text:function(r){return"text"===r.type},radio:function(r){return"radio"===r.type},checkbox:function(r){return"checkbox"===r.type},file:function(r){return"file"===r.type},password:function(r){return"password"===r.type},submit:function(r){return"submit"===r.type},image:function(r){return"image"===r.type},reset:function(r){return"reset"===r.type},button:function(r){return"button"===r.type||r.nodeName.toUpperCase()==="BUTTON"},input:function(r){return/input|select|textarea|button/i.test(r.nodeName)}},setFilters:{first:function(r,s){return s===0},last:function(s,t,u,r){return t===r.length-1},even:function(r,s){return s%2===0},odd:function(r,s){return s%2===1},lt:function(r,s,t){return s<t[3]-0},gt:function(r,s,t){return s>t[3]-0},nth:function(r,s,t){return t[3]-0==s},eq:function(r,s,t){return t[3]-0==s}},filter:{PSEUDO:function(w,s,r,v){var t=s[1],y=m.filters[t];if(y){return y(w,r,s,v)}else{if(t==="contains"){return(w.textContent||w.innerText||"").indexOf(s[3])>=0}else{if(t==="not"){var x=s[3];for(var r=0,u=x.length;r<u;r++){if(x[r]===w){return false}}return true}}}},CHILD:function(y,v){var s=v[1],x=y;switch(s){case"only":case"first":while(x=x.previousSibling){if(x.nodeType===1){return false}}if(s=="first"){return true}x=y;case"last":while(x=x.nextSibling){if(x.nodeType===1){return false}}return true;case"nth":var w=v[2],z=v[3];if(w==1&&z==0){return true}var t=v[0],A=y.parentNode;if(A&&(A.sizcache!==t||!y.nodeIndex)){var u=0;for(x=A.firstChild;x;x=x.nextSibling){if(x.nodeType===1){x.nodeIndex=++u}}A.sizcache=t}var r=y.nodeIndex-z;if(w==0){return r==0}else{return(r%w==0&&r/w>=0)}}},ID:function(r,s){return r.nodeType===1&&r.getAttribute("id")===s},TAG:function(r,s){return(s==="*"&&r.nodeType===1)||r.nodeName===s},CLASS:function(r,s){return(" "+(r.className||r.getAttribute("class"))+" ").indexOf(s)>-1},ATTR:function(w,r){var s=r[1],u=m.attrHandle[s]?m.attrHandle[s](w):w[s]!=null?w[s]:w.getAttribute(s),v=u+"",x=r[2],t=r[4];return u==null?x==="!=":x==="="?v===t:x==="*="?v.indexOf(t)>=0:x==="~="?(" "+v+" ").indexOf(t)>=0:!t?v&&u!==false:x==="!="?v!=t:x==="^="?v.indexOf(t)===0:x==="$="?v.substr(v.length-t.length)===t:x==="|="?v===t||v.substr(0,t.length+1)===t+"-":false},POS:function(w,t,s,v){var u=t[2],r=m.setFilters[u];if(r){return r(w,s,t,v)}}}};var h=m.match.POS;for(var f in m.match){m.match[f]=RegExp(m.match[f].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var q=function(r,s){r=Array.prototype.slice.call(r);if(s){s.push.apply(s,r);return s}return r};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(g){q=function(v,r){var t=r||[];if(n.call(v)==="[object Array]"){Array.prototype.push.apply(t,v)}else{if(typeof v.length==="number"){for(var s=0,u=v.length;s<u;s++){t.push(v[s])}}else{for(var s=0;v[s];s++){t.push(v[s])}}}return t}}var o;if(document.documentElement.compareDocumentPosition){o=function(s,t){var r=s.compareDocumentPosition(t)&4?-1:s===t?0:1;if(r===0){hasDuplicate=true}return r}}else{if("sourceIndex" in document.documentElement){o=function(s,t){var r=s.sourceIndex-t.sourceIndex;if(r===0){hasDuplicate=true}return r}}else{if(document.createRange){o=function(r,t){var s=r.ownerDocument.createRange(),u=t.ownerDocument.createRange();s.selectNode(r);s.collapse(true);u.selectNode(t);u.collapse(true);var v=s.compareBoundaryPoints(Range.START_TO_END,u);if(v===0){hasDuplicate=true}return v}}}}(function(){var s=document.createElement("form"),r="script"+(new Date).getTime();s.innerHTML="<input name='"+r+"'/>";var t=document.documentElement;t.insertBefore(s,t.firstChild);if(!!document.getElementById(r)){m.find.ID=function(x,w,v){if(typeof w.getElementById!=="undefined"&&!v){var u=w.getElementById(x[1]);return u?u.id===x[1]||typeof u.getAttributeNode!=="undefined"&&u.getAttributeNode("id").nodeValue===x[1]?[u]:ab:[]}};m.filter.ID=function(v,u){var w=typeof v.getAttributeNode!=="undefined"&&v.getAttributeNode("id");return v.nodeType===1&&w&&w.nodeValue===u}}t.removeChild(s)})();(function(){var r=document.createElement("div");r.appendChild(document.createComment(""));if(r.getElementsByTagName("*").length>0){m.find.TAG=function(u,v){var w=v.getElementsByTagName(u[1]);if(u[1]==="*"){var s=[];for(var t=0;w[t];t++){if(w[t].nodeType===1){s.push(w[t])}}w=s}return w}}r.innerHTML="<a href='#'></a>";if(r.firstChild&&typeof r.firstChild.getAttribute!=="undefined"&&r.firstChild.getAttribute("href")!=="#"){m.attrHandle.href=function(s){return s.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var s=p,r=document.createElement("div");r.innerHTML="<p class='TEST'></p>";if(r.querySelectorAll&&r.querySelectorAll(".TEST").length===0){return}p=function(w,x,u,t){x=x||document;if(!t&&x.nodeType===9&&!d(x)){try{return q(x.querySelectorAll(w),u)}catch(v){}}return s(w,x,u,t)};p.find=s.find;p.filter=s.filter;p.selectors=s.selectors;p.matches=s.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var r=document.createElement("div");r.innerHTML="<div class='test e'></div><div class='test'></div>";if(r.getElementsByClassName("e").length===0){return}r.lastChild.className="e";if(r.getElementsByClassName("e").length===1){return}m.order.splice(1,0,"CLASS");m.find.CLASS=function(u,t,s){if(typeof t.getElementsByClassName!=="undefined"&&!s){return t.getElementsByClassName(u[1])}}})()}function e(x,s,t,z,r,A){var B=x=="previousSibling"&&!A;for(var v=0,w=z.length;v<w;v++){var y=z[v];if(y){if(B&&y.nodeType===1){y.sizcache=t;y.sizset=v}y=y[x];var u=false;while(y){if(y.sizcache===t){u=z[y.sizset];break}if(y.nodeType===1&&!A){y.sizcache=t;y.sizset=v}if(y.nodeName===s){u=y;break}y=y[x]}z[v]=u}}}function a(x,s,t,z,r,A){var B=x=="previousSibling"&&!A;for(var v=0,w=z.length;v<w;v++){var y=z[v];if(y){if(B&&y.nodeType===1){y.sizcache=t;y.sizset=v}y=y[x];var u=false;while(y){if(y.sizcache===t){u=z[y.sizset];break}if(y.nodeType===1){if(!A){y.sizcache=t;y.sizset=v}if(typeof s!=="string"){if(y===s){u=true;break}}else{if(p.filter(s,[y]).length>0){u=y;break}}}y=y[x]}z[v]=u}}}var k=document.compareDocumentPosition?function(r,s){return r.compareDocumentPosition(s)&16}:function(r,s){return r!==s&&(r.contains?r.contains(s):true)};var d=function(r){return r.nodeType===9&&r.documentElement.nodeName!=="HTML"||!!r.ownerDocument&&d(r.ownerDocument)};var l=function(u,w){var r=[],y="",x,s=w.nodeType?[w]:w;while((x=m.match.PSEUDO.exec(u))){y+=x[0];u=u.replace(m.match.PSEUDO,"")}u=m.relative[u]?u+"*":u;for(var v=0,t=s.length;v<t;v++){p(u,s[v],r)}return p.filter(y,r)};T.find=p;T.filter=p.filter;T.expr=p.selectors;T.expr[":"]=T.expr.filters;p.selectors.filters.hidden=function(r){return r.offsetWidth===0||r.offsetHeight===0};p.selectors.filters.visible=function(r){return r.offsetWidth>0||r.offsetHeight>0};p.selectors.filters.animated=function(r){return T.grep(T.timers,function(s){return r===s.elem}).length};T.multiFilter=function(r,t,s){if(s){r=":not("+r+")"}return p.matches(r,t)};T.dir=function(s,t){var u=[],r=s[t];while(r&&r!=document){if(r.nodeType==1){u.push(r)}r=r[t]}return u};T.nth=function(v,u,s,r){u=u||1;var t=0;for(;v;v=v[s]){if(v.nodeType==1&&++t==u){break}}return v};T.sibling=function(r,s){var t=[];for(;r;r=r.nextSibling){if(r.nodeType==1&&r!=s){t.push(r)}}return t};return;W.Sizzle=p})();T.event={add:function(d,g,e,a){if(d.nodeType==3||d.nodeType==8){return}if(d.setInterval&&d!=W){d=W}if(!e.guid){e.guid=this.guid++}if(a!==ab){var f=e;e=this.proxy(f);e.data=a}var h=T.data(d,"events")||T.data(d,"events",{}),b=T.data(d,"handle")||T.data(d,"handle",function(){return typeof T!=="undefined"&&!T.event.triggered?T.event.handle.apply(arguments.callee.elem,arguments):ab});b.elem=d;T.each(g.split(/\s+/),function(m,l){var k=l.split(".");l=k.shift();e.type=k.slice().sort().join(".");var j=h[l];if(T.event.specialAll[l]){T.event.specialAll[l].setup.call(d,a,k)}if(!j){j=h[l]={};if(!T.event.special[l]||T.event.special[l].setup.call(d,a,k)===false){if(d.addEventListener){d.addEventListener(l,b,false)}else{if(d.attachEvent){d.attachEvent("on"+l,b)}}}}j[e.guid]=e;T.event.global[l]=true});d=null},guid:1,global:{},remove:function(b,f,d){if(b.nodeType==3||b.nodeType==8){return}var g=T.data(b,"events"),h,j;if(g){if(f===ab||(typeof f==="string"&&f.charAt(0)==".")){for(var e in g){this.remove(b,e+(f||""))}}else{if(f.type){d=f.handler;f=f.type}T.each(f.split(/\s+/),function(o,m){var k=m.split(".");m=k.shift();var n=RegExp("(^|\\.)"+k.slice().sort().join(".*\\.")+"(\\.|$)");if(g[m]){if(d){delete g[m][d.guid]}else{for(var l in g[m]){if(n.test(g[m][l].type)){delete g[m][l]}}}if(T.event.specialAll[m]){T.event.specialAll[m].teardown.call(b,k)}for(h in g[m]){break}if(!h){if(!T.event.special[m]||T.event.special[m].teardown.call(b,k)===false){if(b.removeEventListener){b.removeEventListener(m,T.data(b,"handle"),false)}else{if(b.detachEvent){b.detachEvent("on"+m,T.data(b,"handle"))}}}h=null;delete g[m]}}})}for(h in g){break}if(!h){var a=T.data(b,"handle");if(a){a.elem=null}T.removeData(b,"events");T.removeData(b,"handle")}}},trigger:function(e,b,f,j){var g=e.type||e;if(!j){e=typeof e==="object"?e[aa]?e:T.extend(T.Event(g),e):T.Event(g);if(g.indexOf("!")>=0){e.type=g=g.slice(0,-1);e.exclusive=true}if(!f){e.stopPropagation();if(this.global[g]){T.each(T.cache,function(){if(this.events&&this.events[g]){T.event.trigger(e,b,this.handle.elem)}})}}if(!f||f.nodeType==3||f.nodeType==8){return ab}e.result=ab;e.target=f;b=T.makeArray(b);b.unshift(e)}e.currentTarget=f;var d=T.data(f,"handle");if(d){d.apply(f,b)}if((!f[g]||(T.nodeName(f,"a")&&g=="click"))&&f["on"+g]&&f["on"+g].apply(f,b)===false){e.result=false}if(!j&&f[g]&&!e.isDefaultPrevented()&&!(T.nodeName(f,"a")&&g=="click")){this.triggered=true;try{f[g]()}catch(a){}}this.triggered=false;if(!e.isPropagationStopped()){var h=f.parentNode||f.ownerDocument;if(h){T.event.trigger(e,b,h,true)}}},handle:function(b){var d,j;b=arguments[0]=T.event.fix(b||W.event);b.currentTarget=this;var a=b.type.split(".");b.type=a.shift();d=!a.length&&!b.exclusive;var e=RegExp("(^|\\.)"+a.slice().sort().join(".*\\.")+"(\\.|$)");j=(T.data(this,"events")||{})[b.type];for(var g in j){var f=j[g];if(d||e.test(f.type)){b.handler=f;b.data=f.data;var h=f.apply(this,arguments);if(h!==ab){b.result=h;if(h===false){b.preventDefault();b.stopPropagation()}}if(b.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(d){if(d[aa]){return d}var f=d;d=T.Event(f);for(var e=this.props.length,a;e;){a=this.props[--e];d[a]=f[a]}if(!d.target){d.target=d.srcElement||document}if(d.target.nodeType==3){d.target=d.target.parentNode}if(!d.relatedTarget&&d.fromElement){d.relatedTarget=d.fromElement==d.target?d.toElement:d.fromElement}if(d.pageX==null&&d.clientX!=null){var b=document.documentElement,g=document.body;d.pageX=d.clientX+(b&&b.scrollLeft||g&&g.scrollLeft||0)-(b.clientLeft||0);d.pageY=d.clientY+(b&&b.scrollTop||g&&g.scrollTop||0)-(b.clientTop||0)}if(!d.which&&((d.charCode||d.charCode===0)?d.charCode:d.keyCode)){d.which=d.charCode||d.keyCode}if(!d.metaKey&&d.ctrlKey){d.metaKey=d.ctrlKey}if(!d.which&&d.button){d.which=(d.button&1?1:(d.button&2?3:(d.button&4?2:0)))}return d},proxy:function(a,b){b=b||function(){return a.apply(this,arguments)};b.guid=a.guid=a.guid||b.guid||this.guid++;return b},special:{ready:{setup:P,teardown:function(){}}},specialAll:{live:{setup:function(b,a){T.event.add(this,a[0],af)},teardown:function(a){if(a.length){var d=0,b=RegExp("(^|\\.)"+a[0]+"(\\.|$)");T.each((T.data(this,"events").live||{}),function(){if(b.test(this.type)){d++}});if(d<1){T.event.remove(this,a[0],af)}}}}}};T.Event=function(a){if(!this.preventDefault){return new T.Event(a)}if(a&&a.type){this.originalEvent=a;this.type=a.type}else{this.type=a}this.timeStamp=ad();this[aa]=true};function X(){return false}function J(){return true}T.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var a=this.originalEvent;if(!a){return}if(a.preventDefault){a.preventDefault()}a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=J;var a=this.originalEvent;if(!a){return}if(a.stopPropagation){a.stopPropagation()}a.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:X,isPropagationStopped:X,isImmediatePropagationStopped:X};var ah=function(b){var d=b.relatedTarget;while(d&&d!=this){try{d=d.parentNode}catch(a){d=this}}if(d!=this){b.type=b.data;T.event.handle.apply(this,arguments)}};T.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,b){T.event.special[b]={setup:function(){T.event.add(this,a,ah,b)},teardown:function(){T.event.remove(this,a,ah)}}});T.fn.extend({bind:function(b,a,d){return b=="unload"?this.one(b,a,d):this.each(function(){T.event.add(this,b,d||a,d&&a)})},one:function(b,a,d){var e=T.event.proxy(d||a,function(f){T(this).unbind(f,e);return(d||a).apply(this,arguments)});return this.each(function(){T.event.add(this,b,e,d&&a)})},unbind:function(a,b){return this.each(function(){T.event.remove(this,a,b)})},trigger:function(b,a){return this.each(function(){T.event.trigger(b,a,this)})},triggerHandler:function(d,a){if(this[0]){var b=T.Event(d);b.preventDefault();b.stopPropagation();T.event.trigger(b,a,this[0]);return b.result}},toggle:function(a){var d=arguments,b=1;while(b<d.length){T.event.proxy(a,d[b++])}return this.click(T.event.proxy(a,function(e){this.lastToggle=(this.lastToggle||0)%b;e.preventDefault();return d[this.lastToggle++].apply(this,arguments)||false}))},hover:function(b,a){return this.mouseenter(b).mouseleave(a)},ready:function(a){P();if(T.isReady){a.call(document,T)}else{T.readyList.push(a)}return this},live:function(a,b){var d=T.event.proxy(b);d.guid+=this.selector+a;T(document).bind(Z(a,this.selector),this.selector,d);return this},die:function(a,b){T(document).unbind(Z(a,this.selector),b?{guid:b.guid+this.selector+a}:null);return this}});function af(a){var e=RegExp("(^|\\.)"+a.type+"(\\.|$)"),b=true,d=[];T.each(T.data(this,"events").live||[],function(h,g){if(e.test(g.type)){var f=T(a.target).closest(g.data)[0];if(f){d.push({elem:f,fn:g})}}});d.sort(function(f,g){return T.data(f.elem,"closest")-T.data(g.elem,"closest")});T.each(d,function(){if(this.fn.call(this.elem,a,this.fn.data)===false){return(b=false)}});return b}function Z(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".")}T.extend({isReady:false,readyList:[],ready:function(){if(!T.isReady){T.isReady=true;if(T.readyList){T.each(T.readyList,function(){this.call(document,T)});T.readyList=null}T(document).triggerHandler("ready")}}});var G=false;function P(){if(G){return}G=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);T.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);T.ready()}});if(document.documentElement.doScroll&&W==W.top){(function(){if(T.isReady){return}try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}T.ready()})()}}}T.event.add(W,"load",T.ready)}T.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(a,b){T.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)}});T(W).bind("unload",function(){for(var a in T.cache){if(a!=1&&T.cache[a].handle){T.event.remove(T.cache[a].handle.elem)}}});(function(){T.support={};var g=document.documentElement,f=document.createElement("script"),a=document.createElement("div"),b="script"+(new Date).getTime();a.style.display="none";a.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var e=a.getElementsByTagName("*"),h=a.getElementsByTagName("a")[0];if(!e||!e.length||!h){return}T.support={leadingWhitespace:a.firstChild.nodeType==3,tbody:!a.getElementsByTagName("tbody").length,objectAll:!!a.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:h.style.opacity==="0.5",cssFloat:!!h.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};f.type="text/javascript";try{f.appendChild(document.createTextNode("window."+b+"=1;"))}catch(d){}g.insertBefore(f,g.firstChild);if(W[b]){T.support.scriptEval=true;delete W[b]}g.removeChild(f);if(a.attachEvent&&a.fireEvent){a.attachEvent("onclick",function(){T.support.noCloneEvent=false;a.detachEvent("onclick",arguments.callee)});a.cloneNode(true).fireEvent("onclick")}T(function(){var j=document.createElement("div");j.style.width=j.style.paddingLeft="1px";document.body.appendChild(j);T.boxModel=T.support.boxModel=j.offsetWidth===2;document.body.removeChild(j).style.display="none"})})();var H=T.support.cssFloat?"cssFloat":"styleFloat";T.props={"for":"htmlFor","class":"className","float":H,cssFloat:H,styleFloat:H,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};T.fn.extend({_load:T.fn.load,load:function(f,b,a){if(typeof f!=="string"){return this._load(f)}var d=f.indexOf(" ");if(d>=0){var h=f.slice(d,f.length);f=f.slice(0,d)}var e="GET";if(b){if(T.isFunction(b)){a=b;b=null}else{if(typeof b==="object"){b=T.param(b);e="POST"}}}var g=this;T.ajax({url:f,type:e,dataType:"html",data:b,complete:function(k,j){if(j=="success"||j=="notmodified"){g.html(h?T("<div/>").append(k.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(h):k.responseText)}if(a){g.each(a,[k.responseText,j,k])}}});return this},serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?T.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(d,b){var a=T(this).val();return a==null?null:T.isArray(a)?T.map(a,function(e,f){return{name:b.name,value:e}}):{name:b.name,value:a}}).get()}});T.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,a){T.fn[a]=function(d){return this.bind(a,d)}});var N=ad();T.extend({get:function(e,b,a,d){if(T.isFunction(b)){a=b;b=null}return T.ajax({type:"GET",url:e,data:b,success:a,dataType:d})},getScript:function(b,a){return T.get(b,null,a,"script")},getJSON:function(d,b,a){return T.get(d,b,a,"json")},post:function(e,b,a,d){if(T.isFunction(b)){a=b;b={}}return T.ajax({type:"POST",url:e,data:b,success:a,dataType:d})},ajaxSetup:function(a){T.extend(T.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return W.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(m){m=T.extend(true,m,T.extend(true,{},T.ajaxSettings,m));var a,t=/=\?(&|$)/g,g,b,s=m.type.toUpperCase();if(m.data&&m.processData&&typeof m.data!=="string"){m.data=T.param(m.data)}if(m.dataType=="jsonp"){if(s=="GET"){if(!m.url.match(t)){m.url+=(m.url.match(/\?/)?"&":"?")+(m.jsonp||"callback")+"=?"}}else{if(!m.data||!m.data.match(t)){m.data=(m.data?m.data+"&":"")+(m.jsonp||"callback")+"=?"}}m.dataType="json"}if(m.dataType=="json"&&(m.data&&m.data.match(t)||m.url.match(t))){a="jsonp"+N++;if(m.data){m.data=(m.data+"").replace(t,"="+a+"$1")}m.url=m.url.replace(t,"="+a+"$1");m.dataType="script";W[a]=function(w){b=w;q();n();W[a]=ab;try{delete W[a]}catch(v){}if(r){r.removeChild(e)}}}if(m.dataType=="script"&&m.cache==null){m.cache=false}if(m.cache===false&&s=="GET"){var u=ad();var d=m.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+u+"$2");m.url=d+((d==m.url)?(m.url.match(/\?/)?"&":"?")+"_="+u:"")}if(m.data&&s=="GET"){m.url+=(m.url.match(/\?/)?"&":"?")+m.data;m.data=null}if(m.global&&!T.active++){T.event.trigger("ajaxStart")}var h=/^(\w+:)?\/\/([^\/?#]+)/.exec(m.url);if(m.dataType=="script"&&s=="GET"&&h&&(h[1]&&h[1]!=location.protocol||h[2]!=location.host)){var r=document.getElementsByTagName("head")[0];var e=document.createElement("script");e.src=m.url;if(m.scriptCharset){e.charset=m.scriptCharset}if(!a){var k=false;e.onload=e.onreadystatechange=function(){if(!k&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){k=true;q();n();e.onload=e.onreadystatechange=null;r.removeChild(e)}}}r.appendChild(e);return ab}var o=false;var p=m.xhr();if(m.username){p.open(s,m.url,m.async,m.username,m.password)}else{p.open(s,m.url,m.async)}try{if(m.data){p.setRequestHeader("Content-Type",m.contentType)}if(m.ifModified){p.setRequestHeader("If-Modified-Since",T.lastModified[m.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}p.setRequestHeader("X-Requested-With","XMLHttpRequest");p.setRequestHeader("Accept",m.dataType&&m.accepts[m.dataType]?m.accepts[m.dataType]+", */*":m.accepts._default)}catch(f){}if(m.beforeSend&&m.beforeSend(p,m)===false){if(m.global&&!--T.active){T.event.trigger("ajaxStop")}p.abort();return false}if(m.global){T.event.trigger("ajaxSend",[p,m])}var l=function(x){if(p.readyState==0){if(j){clearInterval(j);j=null;if(m.global&&!--T.active){T.event.trigger("ajaxStop")}}}else{if(!o&&p&&(p.readyState==4||x=="timeout")){o=true;if(j){clearInterval(j);j=null}g=x=="timeout"?"timeout":!T.httpSuccess(p)?"error":m.ifModified&&T.httpNotModified(p,m.url)?"notmodified":"success";if(g=="success"){try{b=T.httpData(p,m.dataType,m)}catch(v){g="parsererror"}}if(g=="success"){var w;try{w=p.getResponseHeader("Last-Modified")}catch(v){}if(m.ifModified&&w){T.lastModified[m.url]=w}if(!a){q()}}else{T.handleError(m,p,g)}n();if(x){p.abort()}if(m.async){p=null}}}};if(m.async){var j=setInterval(l,13);if(m.timeout>0){setTimeout(function(){if(p&&!o){l("timeout")}},m.timeout)}}try{p.send(m.data)}catch(f){T.handleError(m,p,null,f)}if(!m.async){l()}function q(){if(m.success){m.success(b,g)}if(m.global){T.event.trigger("ajaxSuccess",[p,m])}}function n(){if(m.complete){m.complete(p,g)}if(m.global){T.event.trigger("ajaxComplete",[p,m])}if(m.global&&!--T.active){T.event.trigger("ajaxStop")}}return p},handleError:function(d,a,e,b){if(d.error){d.error(a,e,b)}if(d.global){T.event.trigger("ajaxError",[a,d,b])}},active:0,httpSuccess:function(a){try{return !a.status&&location.protocol=="file:"||(a.status>=200&&a.status<300)||a.status==304||a.status==1223}catch(b){}return false},httpNotModified:function(b,e){try{var a=b.getResponseHeader("Last-Modified");return b.status==304||a==T.lastModified[e]}catch(d){}return false},httpData:function(a,d,e){var f=a.getResponseHeader("content-type"),g=d=="xml"||!d&&f&&f.indexOf("xml")>=0,b=g?a.responseXML:a.responseText;if(g&&b.documentElement.tagName=="parsererror"){throw"parsererror"}if(e&&e.dataFilter){b=e.dataFilter(b,d)}if(typeof b==="string"){if(d=="script"){T.globalEval(b)}if(d=="json"){b=W["eval"]("("+b+")")}}return b},param:function(e){var b=[];function a(g,f){b[b.length]=encodeURIComponent(g)+"="+encodeURIComponent(f)}if(T.isArray(e)||e.jquery){T.each(e,function(){a(this.name,this.value)})}else{for(var d in e){if(T.isArray(e[d])){T.each(e[d],function(){a(d,this)})}else{a(d,T.isFunction(e[d])?e[d]():e[d])}}}return b.join("&").replace(/%20/g,"+")}});var V={},U,ae=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function K(b,d){var a={};T.each(ae.concat.apply([],ae.slice(0,d)),function(){a[this]=b});return a}T.fn.extend({show:function(d,a){if(d){return this.animate(K("show",3),d,a)}else{for(var f=0,h=this.length;f<h;f++){var j=T.data(this[f],"olddisplay");this[f].style.display=j||"";if(T.css(this[f],"display")==="none"){var g=this[f].tagName,b;if(V[g]){b=V[g]}else{var e=T("<"+g+" />").appendTo("body");b=e.css("display");if(b==="none"){b="block"}e.remove();V[g]=b}T.data(this[f],"olddisplay",b)}}for(var f=0,h=this.length;f<h;f++){this[f].style.display=T.data(this[f],"olddisplay")||""}return this}},hide:function(b,a){if(b){return this.animate(K("hide",3),b,a)}else{for(var d=0,e=this.length;d<e;d++){var f=T.data(this[d],"olddisplay");if(!f&&f!=="none"){T.data(this[d],"olddisplay",T.css(this[d],"display"))}}for(var d=0,e=this.length;d<e;d++){this[d].style.display="none"}return this}},_toggle:T.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";return T.isFunction(a)&&T.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var e=d?a:T(this).is(":hidden");T(this)[e?"show":"hide"]()}):this.animate(K("toggle",3),a,b)},fadeTo:function(d,a,b){return this.animate({opacity:a},d,b)},animate:function(a,e,b,d){var f=T.speed(e,b,d);return this[f.queue===false?"each":"queue"](function(){var h=T.extend({},f),k,g=this.nodeType==1&&T(this).is(":hidden"),j=this;for(k in a){if(a[k]=="hide"&&g||a[k]=="show"&&!g){return h.complete.call(this)}if((k=="height"||k=="width")&&this.style){h.display=T.css(this,"display");h.overflow=this.style.overflow}}if(h.overflow!=null){this.style.overflow="hidden"}h.curAnim=T.extend({},a);T.each(a,function(q,m){var n=new T.fx(j,h,q);if(/toggle|show|hide/.test(m)){n[m=="toggle"?g?"show":"hide":m](a)}else{var o=m.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),l=n.cur(true)||0;if(o){var r=parseFloat(o[2]),p=o[3]||"px";if(p!="px"){j.style[q]=(r||1)+p;l=((r||1)/n.cur(true))*l;j.style[q]=l+p}if(o[1]){r=((o[1]=="-="?-1:1)*r)+l}n.custom(l,r,p)}else{n.custom(l,m,"")}}});return true})},stop:function(b,d){var a=T.timers;if(b){this.queue([])}this.each(function(){for(var e=a.length-1;e>=0;e--){if(a[e].elem==this){if(d){a[e](true)}a.splice(e,1)}}});if(!d){this.dequeue()}return this}});T.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,a){T.fn[b]=function(e,d){return this.animate(a,e,d)}});T.extend({speed:function(b,a,d){var e=typeof b==="object"?b:{complete:d||!d&&a||T.isFunction(b)&&b,duration:b,easing:d&&a||a&&!T.isFunction(a)&&a};e.duration=T.fx.off?0:typeof e.duration==="number"?e.duration:T.fx.speeds[e.duration]||T.fx.speeds._default;e.old=e.complete;e.complete=function(){if(e.queue!==false){T(this).dequeue()}if(T.isFunction(e.old)){e.old.call(this)}};return e},easing:{linear:function(b,a,e,d){return e+d*b},swing:function(b,a,e,d){return((-Math.cos(b*Math.PI)/2)+0.5)*d+e}},timers:[],fx:function(b,d,a){this.options=d;this.elem=b;this.prop=a;if(!d.orig){d.orig={}}}});T.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(T.fx.step[this.prop]||T.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var b=parseFloat(T.css(this.elem,this.prop,a));return b&&b>-10000?b:parseFloat(T.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){this.startTime=ad();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var f=this;function e(g){return f.step(g)}e.elem=this.elem;if(e()&&T.timers.push(e)&&!U){U=setInterval(function(){var g=T.timers;for(var h=0;h<g.length;h++){if(!g[h]()){g.splice(h--,1)}}if(!g.length){clearInterval(U);U=ab}},13)}},show:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());T(this.elem).show()},hide:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(d){var e=ad();if(d||e>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var g=true;for(var f in this.options.curAnim){if(this.options.curAnim[f]!==true){g=false}}if(g){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(T.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){T(this.elem).hide()}if(this.options.hide||this.options.show){for(var b in this.options.curAnim){T.attr(this.elem.style,b,this.options.orig[b])}}this.options.complete.call(this.elem)}return false}else{var a=e-this.startTime;this.state=a/this.options.duration;this.pos=T.easing[this.options.easing||(T.easing.swing?"swing":"linear")](this.state,a,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};T.extend(T.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){T.attr(a.elem.style,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null){a.elem.style[a.prop]=a.now+a.unit}else{a.elem[a.prop]=a.now}}}});if(document.documentElement.getBoundingClientRect){T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}var g=this[0].getBoundingClientRect(),d=this[0].ownerDocument,h=d.body,j=d.documentElement,a=j.clientTop||h.clientTop||0,b=j.clientLeft||h.clientLeft||0,e=g.top+(self.pageYOffset||T.boxModel&&j.scrollTop||h.scrollTop)-a,f=g.left+(self.pageXOffset||T.boxModel&&j.scrollLeft||h.scrollLeft)-b;return{top:e,left:f}}}else{T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}T.offset.initialized||T.offset.initialize();var g=this[0],k=g.offsetParent,l=g,a=g.ownerDocument,d,j=a.documentElement,f=a.body,e=a.defaultView,m=e.getComputedStyle(g,null),b=g.offsetTop,h=g.offsetLeft;while((g=g.parentNode)&&g!==f&&g!==j){d=e.getComputedStyle(g,null);b-=g.scrollTop,h-=g.scrollLeft;if(g===k){b+=g.offsetTop,h+=g.offsetLeft;if(T.offset.doesNotAddBorder&&!(T.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(g.tagName))){b+=parseInt(d.borderTopWidth,10)||0,h+=parseInt(d.borderLeftWidth,10)||0}l=k,k=g.offsetParent}if(T.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"){b+=parseInt(d.borderTopWidth,10)||0,h+=parseInt(d.borderLeftWidth,10)||0}m=d}if(m.position==="relative"||m.position==="static"){b+=f.offsetTop,h+=f.offsetLeft}if(m.position==="fixed"){b+=Math.max(j.scrollTop,f.scrollTop),h+=Math.max(j.scrollLeft,f.scrollLeft)}return{top:b,left:h}}}T.offset={initialize:function(){if(this.initialized){return}var d=document.body,k=document.createElement("div"),h,j,a,g,b,l,f=d.style.marginTop,e='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';b={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(l in b){k.style[l]=b[l]}k.innerHTML=e;d.insertBefore(k,d.firstChild);h=k.firstChild,j=h.firstChild,g=h.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(j.offsetTop!==5);this.doesAddBorderForTableAndCells=(g.offsetTop===5);h.style.overflow="hidden",h.style.position="relative";this.subtractsBorderForOverflowNotVisible=(j.offsetTop===-5);d.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(d.offsetTop===0);d.style.marginTop=f;d.removeChild(k);this.initialized=true},bodyOffset:function(d){T.offset.initialized||T.offset.initialize();var a=d.offsetTop,b=d.offsetLeft;if(T.offset.doesNotIncludeMarginInBodyOffset){a+=parseInt(T.curCSS(d,"marginTop",true),10)||0,b+=parseInt(T.curCSS(d,"marginLeft",true),10)||0}return{top:a,left:b}}};T.fn.extend({position:function(){var b=0,d=0,f;if(this[0]){var e=this.offsetParent(),a=this.offset(),g=/^body|html$/i.test(e[0].tagName)?{top:0,left:0}:e.offset();a.top-=Y(this,"marginTop");a.left-=Y(this,"marginLeft");g.top+=Y(e,"borderTopWidth");g.left+=Y(e,"borderLeftWidth");f={top:a.top-g.top,left:a.left-g.left}}return f},offsetParent:function(){var a=this[0].offsetParent||document.body;while(a&&(!/^body|html$/i.test(a.tagName)&&T.css(a,"position")=="static")){a=a.offsetParent}return T(a)}});T.each(["Left","Top"],function(b,d){var a="scroll"+d;T.fn[a]=function(e){if(!this[0]){return null}return e!==ab?this.each(function(){this==W||this==document?W.scrollTo(!b?e:T(W).scrollLeft(),b?e:T(W).scrollTop()):this[a]=e}):this[0]==W||this[0]==document?self[b?"pageYOffset":"pageXOffset"]||T.boxModel&&document.documentElement[a]||document.body[a]:this[0][a]}});T.each(["Height","Width"],function(b,e){var g=b?"Left":"Top",d=b?"Right":"Bottom",f=e.toLowerCase();T.fn["inner"+e]=function(){return this[0]?T.css(this[0],f,false,"padding"):null};T.fn["outer"+e]=function(h){return this[0]?T.css(this[0],f,false,h?"margin":"border"):null};var a=e.toLowerCase();T.fn[a]=function(h){return this[0]==W?document.compatMode=="CSS1Compat"&&document.documentElement["client"+e]||document.body["client"+e]:this[0]==document?Math.max(document.documentElement["client"+e],document.body["scroll"+e],document.documentElement["scroll"+e],document.body["offset"+e],document.documentElement["offset"+e]):h===ab?(this.length?T.css(this[0],a):null):this.css(a,typeof h==="string"?h:h+"px")}})})();jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l)==1){return e+m}if(!k){k=l*0.3}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e},easeOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l)==1){return e+m}if(!k){k=l*0.3}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}return g*Math.pow(2,-10*h)*Math.sin((h*l-j)*(2*Math.PI)/k)+m+e},easeInOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l/2)==2){return e+m}if(!k){k=l*(0.3*1.5)}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k)*0.5+m+e},easeInBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return j/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return j/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});$(function(){$("body").removeClass("coda-slider-no-js");$(".coda-slider").children(".panel").hide().end().prepend('<p class="loading">Loading...<br /><img src="images/ajax-loader.gif" alt="loading..." /></p>')});var sliderCount=1;$.fn.codaSlider=function(a){a=$.extend({autoHeight:true,autoHeightEaseDuration:1000,autoHeightEaseFunction:"easeInOutExpo",autoSlide:false,autoSlideInterval:7000,autoSlideStopWhenClicked:true,crossLinking:true,dynamicArrows:true,dynamicArrowLeftText:"&#171; left",dynamicArrowRightText:"right &#187;",dynamicTabs:true,dynamicTabsAlign:"center",dynamicTabsPosition:"top",externalTriggerSelector:"a.xtrig",firstPanelToLoad:1,panelTitleSelector:"h2.title",slideEaseDuration:1000,slideEaseFunction:"easeInOutExpo"},a);return this.each(function(){var f=$(this);if(a.dynamicArrows){f.parent().addClass("arrows");f.before('<div class="coda-nav-left" id="coda-nav-left-'+sliderCount+'"><a href="#">'+a.dynamicArrowLeftText+"</a></div>");f.after('<div class="coda-nav-right" id="coda-nav-right-'+sliderCount+'"><a href="#">'+a.dynamicArrowRightText+"</a></div>")}var b=f.find(".panel").width();var l=f.find(".panel").size();var m=b*l;var g=0;$(".panel",f).wrapAll('<div class="panel-container"></div>');$(".panel-container",f).css({width:m});if(a.crossLinking&&location.hash&&parseInt(location.hash.slice(1))<=l){var d=parseInt(location.hash.slice(1));var h=-(b*(d-1));$(".panel-container",f).css({marginLeft:h})}else{if(a.firstPanelToLoad!=1&&a.firstPanelToLoad<=l){var d=a.firstPanelToLoad;var h=-(b*(d-1));$(".panel-container",f).css({marginLeft:h})}else{var d=1}}$("#coda-nav-left-"+sliderCount+" a").click(function(){g++;if(d==1){h=-(b*(l-1));j(l-1);d=l;f.siblings(".coda-nav").find("a.current").removeClass("current").parents("ul").find("li:last a").addClass("current")}else{d-=1;j(d-1);h=-(b*(d-1));f.siblings(".coda-nav").find("a.current").removeClass("current").parent().prev().find("a").addClass("current")}$(".panel-container",f).animate({marginLeft:h},a.slideEaseDuration,a.slideEaseFunction);if(a.crossLinking){location.hash=d}return false});$("#coda-nav-right-"+sliderCount+" a").click(function(){g++;if(d==l){h=0;d=1;j(0);f.siblings(".coda-nav").find("a.current").removeClass("current").parents("ul").find("a:eq(0)").addClass("current")}else{h=-(b*d);j(d);d+=1;f.siblings(".coda-nav").find("a.current").removeClass("current").parent().next().find("a").addClass("current")}$(".panel-container",f).animate({marginLeft:h},a.slideEaseDuration,a.slideEaseFunction);if(a.crossLinking){location.hash=d}return false});if(a.dynamicTabs){var k='<div class="coda-nav" id="coda-nav-'+sliderCount+'"><ul></ul></div>';switch(a.dynamicTabsPosition){case"bottom":f.parent().append(k);break;default:f.parent().prepend(k);break}ul=$("#coda-nav-"+sliderCount+" ul");$(".panel",f).each(function(o){ul.append('<li class="tab'+(o+1)+'"><a href="#'+(o+1)+'">'+$(this).find(a.panelTitleSelector).text()+"</a></li>")});navContainerWidth=f.width()+f.siblings(".coda-nav-left").width()+f.siblings(".coda-nav-right").width();ul.parent().css({width:navContainerWidth});switch(a.dynamicTabsAlign){case"center":ul.css({width:($("li",ul).width()+2)*l});break;case"right":ul.css({"float":"right"});break}}$("#coda-nav-"+sliderCount+" a").each(function(n){$(this).bind("click",function(){g++;$(this).addClass("current").parents("ul").find("a").not($(this)).removeClass("current");h=-(b*n);j(n);d=n+1;$(".panel-container",f).animate({marginLeft:h},a.slideEaseDuration,a.slideEaseFunction);if(!a.crossLinking){return false}})});$(a.externalTriggerSelector).each(function(){if(sliderCount==parseInt($(this).attr("rel").slice(12))){$(this).bind("click",function(){g++;targetPanel=parseInt($(this).attr("href").slice(1));h=-(b*(targetPanel-1));j(targetPanel-1);d=targetPanel;f.siblings(".coda-nav").find("a").removeClass("current").parents("ul").find("li:eq("+(targetPanel-1)+") a").addClass("current");$(".panel-container",f).animate({marginLeft:h},a.slideEaseDuration,a.slideEaseFunction);if(!a.crossLinking){return false}})}});if(a.crossLinking&&location.hash&&parseInt(location.hash.slice(1))<=l){$("#coda-nav-"+sliderCount+" a:eq("+(location.hash.slice(1)-1)+")").addClass("current")}else{if(a.firstPanelToLoad!=1&&a.firstPanelToLoad<=l){$("#coda-nav-"+sliderCount+" a:eq("+(a.firstPanelToLoad-1)+")").addClass("current")}else{$("#coda-nav-"+sliderCount+" a:eq(0)").addClass("current")}}if(a.autoHeight){panelHeight=$(".panel:eq("+(d-1)+")",f).height();f.css({height:panelHeight})}if(a.autoSlide){f.ready(function(){setTimeout(e,a.autoSlideInterval)})}function j(n){if(a.autoHeight){panelHeight=$(".panel:eq("+n+")",f).height();f.animate({height:panelHeight},a.autoHeightEaseDuration,a.autoHeightEaseFunction)}}function e(){if(g==0||!a.autoSlideStopWhenClicked){if(d==l){var n=0;d=1}else{var n=-(b*d);d+=1}j(d-1);f.siblings(".coda-nav").find("a").removeClass("current").parents("ul").find("li:eq("+(d-1)+") a").addClass("current");$(".panel-container",f).animate({marginLeft:n},a.slideEaseDuration,a.slideEaseFunction);setTimeout(e,a.autoSlideInterval)}}$(".panel",f).show().end().find("p.loading").remove();f.removeClass("preload");sliderCount++})};var tb_pathToImage="../img/loadingAnimation.gif";
/*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox");imgLoader=new Image();imgLoader.src=tb_pathToImage});function tb_init(a){$(a).click(function(){var d=this.title||this.name||null;var b=this.href||this.alt;var e=this.rel||false;tb_show(d,b,e);this.blur();return false})}function tb_show(l,b,j){try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}else{if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}if(tb_detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack")}else{$("#TB_overlay").addClass("TB_overlayBG")}if(l===null){l=""}$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$("#TB_load").show();var d;if(b.indexOf("?")!==-1){d=b.substr(0,b.indexOf("?"))}else{d=b}var g=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var m=d.toLowerCase().match(g);if(m==".jpg"||m==".jpeg"||m==".png"||m==".gif"||m==".bmp"){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(j){TB_TempArray=$("a[@rel="+j+"]").get();for(TB_Counter=0;((TB_Counter<TB_TempArray.length)&&(TB_NextHTML===""));TB_Counter++){var h=TB_TempArray[TB_Counter].href.toLowerCase().match(g);if(!(TB_TempArray[TB_Counter].href==b)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>"}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>"}}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+(TB_TempArray.length)}}}imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var p=tb_getPageSize();var n=p[0]-150;var s=p[1]-150;var o=imgPreloader.width;var e=imgPreloader.height;if(o>n){e=e*(n/o);o=n;if(e>s){o=o*(s/e);e=s}}else{if(e>s){o=o*(s/e);e=s;if(o>n){e=e*(n/o);o=n}}}TB_WIDTH=o+30;TB_HEIGHT=e+60;$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+b+"' width='"+o+"' height='"+e+"' alt='"+l+"'/></a><div id='TB_caption'>"+l+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Fenster schlie&szlig;en'>Fenster schlie&szlig;en</a></div>");$("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function r(){if($(document).unbind("click",r)){$(document).unbind("click",r)}$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,j);return false}$("#TB_prev").click(r)}if(!(TB_NextHTML==="")){function q(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,j);return false}$("#TB_next").click(q)}document.onkeydown=function(t){if(t==null){keycode=event.keyCode}else{keycode=t.which}if(keycode==27){tb_remove()}else{if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";q()}}else{if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";r()}}}}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=b}else{var a=b.replace(/^[^\?]+\??/,"");var f=tb_parseQuery(a);TB_WIDTH=(f.width*1)+30||630;TB_HEIGHT=(f.height*1)+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(b.indexOf("TB_iframe")!=-1){urlNoQuery=b.split("TB_");$("#TB_iframeContent").remove();if(f.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+l+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Fenster schlie&szlig;en'>Fenster schlie&szlig;en</a></div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>")}}else{if($("#TB_window").css("display")!="block"){if(f.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+l+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>Fenster schlie&szlig;en</a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>")}}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;$("#TB_ajaxWindowTitle").html(l)}}$("#TB_closeWindowButton").click(tb_remove);if(b.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").append($("#"+f.inlineId).children());$("#TB_window").unload(function(){$("#"+f.inlineId).append($("#TB_ajaxContent").children())});tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"})}else{if(b.indexOf("TB_iframe")!=-1){tb_position();if($.browser.safari){$("#TB_load").remove();$("#TB_window").css({display:"block"})}}else{$("#TB_ajaxContent").load(b+="&random="+(new Date().getTime()),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})})}}}if(!f.modal){document.onkeyup=function(n){if(n==null){keycode=event.keyCode}else{keycode=n.which}if(keycode==27){tb_remove()}}}}catch(k){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}document.onkeydown="";document.onkeyup="";return false}function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt((TB_WIDTH/2),10)+"px",width:TB_WIDTH+"px"});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#TB_window").css({marginTop:"-"+parseInt((TB_HEIGHT/2),10)+"px"})}}function tb_parseQuery(e){var f={};if(!e){return f}var a=e.split(/[;&]/);for(var d=0;d<a.length;d++){var h=a[d].split("=");if(!h||h.length!=2){continue}var b=unescape(h[0]);var g=unescape(h[1]);g=g.replace(/\+/g," ");f[b]=g}return f}function tb_getPageSize(){var d=document.documentElement;var a=window.innerWidth||self.innerWidth||(d&&d.clientWidth)||document.body.clientWidth;var b=window.innerHeight||self.innerHeight||(d&&d.clientHeight)||document.body.clientHeight;arrayPageSize=[a,b];return arrayPageSize}function tb_detectMacXFF(){var a=navigator.userAgent.toLowerCase();if(a.indexOf("mac")!=-1&&a.indexOf("firefox")!=-1){return true}}var TimeoutObj=null;var subTimeoutObj=null;var subsubTimeoutObj=null;function setNaviTimeout(b){var a=100;if(TimeoutObj==null){TimeoutObj=setTimeout("NaviLayerOff("+b+")",a)}}function subsetNaviTimeout(b){var a=100;if(subTimeoutObj==null){subTimeoutObj=setTimeout("subNaviLayerOff("+b+")",a)}}function subsubsetNaviTimeout(b){var a=100;if(subsubTimeoutObj==null){subsubTimeoutObj=setTimeout("subsubNaviLayerOff("+b+")",a)}}function cancelNaviTimeout(){clearTimeout(TimeoutObj);TimeoutObj=null}function subcancelNaviTimeout(){clearTimeout(subTimeoutObj);subTimeoutObj=null}function subsubcancelNaviTimeout(){clearTimeout(subsubTimeoutObj);subsubTimeoutObj=null}function NaviLayerOn(a){cancelNaviTimeout();for(i=0;i<15;i++){navi=document.getElementById("NaviLayer"+i);if(navi){navi.style.visibility="hidden"}}navi=document.getElementById("NaviLayer"+a);navi.style.visibility="visible"}function subNaviLayerOn(a){subcancelNaviTimeout();for(i=0;i<15;i++){nav=document.getElementById("subNaviLayer"+i);if(nav){nav.style.visibility="hidden"}}nav=document.getElementById("subNaviLayer"+a);nav.style.visibility="visible"}function subsubNaviLayerOn(a){subsubcancelNaviTimeout();for(i=0;i<30;i++){nav=document.getElementById("subsubNaviLayer"+i);if(nav){nav.style.visibility="hidden"}}nav=document.getElementById("subsubNaviLayer"+a);nav.style.visibility="visible"}function NaviLayerOff(a){navi=document.getElementById("NaviLayer"+a);navi.style.visibility="hidden"}function subNaviLayerOff(a){nav=document.getElementById("subNaviLayer"+a);nav.style.visibility="hidden"}function subsubNaviLayerOff(a){nav=document.getElementById("subsubNaviLayer"+a);nav.style.visibility="hidden"}function getElements(ElementName){if(navigator.userAgent.indexOf("MSIE")!=-1&&navigator.userAgent.indexOf("Mac")!=-1){var HtmlElementsArray=eval("document.all."+ElementName)}else{var HtmlElementsArray=document.getElementsByName(ElementName)}return(HtmlElementsArray)}function subgetElements(ElementName){if(navigator.userAgent.indexOf("MSIE")!=-1&&navigator.userAgent.indexOf("Mac")!=-1){var HtmlElementsArray=eval("document.all."+ElementName)}else{var HtmlElementsArray=document.getElementsByName(ElementName)}return(HtmlElementsArray)}function ChangeTFA(a){if(!a){document.getElementById("teaser_fast_access_off").style.display="block";document.getElementById("teaser_fast_access_on").style.display="none"}else{document.getElementById("teaser_fast_access_off").style.display="none";document.getElementById("teaser_fast_access_on").style.display="block"}}function subChangeTFA(a){if(!a){document.getElementById("teaser_fast_access_off").style.display="block";document.getElementById("teaser_fast_access_on").style.display="none"}else{document.getElementById("teaser_fast_access_off").style.display="none";document.getElementById("teaser_fast_access_on").style.display="block"}}function ChangeSH(a){if(!a){document.getElementById("subheadings_off").style.display="block";document.getElementById("subheadings_on").style.display="none"}else{document.getElementById("subheadings_off").style.display="none";document.getElementById("subheadings_on").style.display="block"}}(function(e){e.fn.jMyCarousel=function(f){f=e.extend({btnPrev:null,btnNext:null,mouseWheel:true,auto:false,speed:500,easing:"linear",vertical:false,circular:false,visible:"4",start:0,scroll:1,step:50,eltByElt:false,evtStart:"mouseover",evtStop:"mouseout",beforeStart:null,afterEnd:null},f||{});return this.each(function(){var y=false,w=f.vertical?"top":"left",j=f.vertical?"height":"width";var R=e(this),E=e("ul",R),D=e("li",E),g=D.size(),J=f.visible;var s=0;var K=(f.btnNext===null&&f.btnPrev===null)?true:false;var P=(J.toString().indexOf("%")!=-1?"%":(J.toString().indexOf("px")!=-1)?"px":"el");var p=null;if(f.circular){var L=D.clone();E.prepend(L).append(L.clone())}var C=e("li",E);R.css("visibility","visible");C.css("overflow","hidden").css("float",f.vertical?"none":"left").children().css("overflow","hidden");if(!f.vertical){C.css("display","inline")}if(C.children().get(0).tagName.toLowerCase()=="a"&&!f.vertical){C.children().css("float","left")}if(f.vertical&&jQuery.browser.msie){C.css("line-height","4px").children().css("margin-bottom","-4px")}E.css("margin","0").css("padding","0").css("position","relative").css("list-style-type","none").css("z-index","1");R.css("overflow","hidden").css("position","relative").css("z-index","2").css("left","0px");var h=f.vertical?a(C):d(C);var N=f.vertical?G(C):a(C);var F=f.start;var A=C.size();var M=h*A;var I=g;var z=I*h;var Q=A*h;var B=f.step=="default"?h:f.step;f.btnPrev=K?e('<input type="button" class="'+(f.vertical?"up":"prev")+'" />'):e(f.btnPrev);f.btnNext=K?e('<input type="button" class="'+(f.vertical?"down":"next")+'" />'):e(f.btnNext);var x=f.btnPrev;var l=f.btnNext;if(K&&f.auto!==true){x.css({opacity:"0.6"});l.css({opacity:"0.6"});R.prepend(x);R.prepend(l);f.btnPrev=x;f.btnNext=l}if(f.eltByElt){B=h;if(f.start%h!==0){var O=parseInt(f.start/h);F=f.start=(O*h)}}if(f.circular){f.start+=(h*g);F+=(h*g)}var o,n,S;if(P=="%"){o=0;n=parseInt(J);S="%"}else{if(P=="px"){o=parseInt(J);n=parseInt(J);S="px"}else{o=h*parseInt(J);n=h*parseInt(J);S="px"}}E.css(j,M+"px").css(w,-(f.start));R.css(j,n+S);if(f.vertical&&S=="%"){var m=((h*I)*(parseInt(J)/100));R.css(j,m+"px")}if(o===0){o=R.width()}if(f.vertical){R.css("width",N+"px");E.css("width",N+"px");C.css("margin-bottom",(parseInt(C.css("margin-bottom"))*2)+"px");C.eq(C.size()-1).css("margin-bottom",C.css("margin-top"))}else{R.css("height",N+"px");E.css("height",N+"px")}if(P=="%"){J=o/C.width();if(J%1!==0){J+=1}J=parseInt(J)}var u=R.height();if(K){l.css({"z-index":200,position:"absolute"});x.css({"z-index":200,position:"absolute"});if(f.vertical){x.css({width:x.width(),height:x.height(),top:"0px",left:parseInt(N/2)-parseInt(x.width()/2)+"px"});l.css({width:x.width(),height:x.height(),top:(u-x.height())+"px",left:parseInt(N/2)-parseInt(x.width()/2)+"px"})}else{x.css({left:"0px",top:parseInt(N/2)-parseInt(x.height()/2)+"px"});l.css({right:"0px",top:parseInt(N/2)-parseInt(x.height()/2)+"px"})}}if(f.btnPrev){e(f.btnPrev).bind(f.evtStart,function(){if(K){f.btnPrev.css("opacity",0.9)}y=true;p="backward";return k()});e(f.btnPrev).bind(f.evtStop,function(){if(K){f.btnPrev.css("opacity",0.6)}y=false;p=null;return r()})}if(f.btnNext){e(f.btnNext).bind(f.evtStart,function(){if(K){f.btnNext.css("opacity",0.9)}y=true;p="forward";return H()});e(f.btnNext).bind(f.evtStop,function(){if(K){f.btnNext.css("opacity",0.6)}y=false;p=null;return r()})}if(f.auto===true){y=true;H()}if(f.mouseWheel&&R.mousewheel){R.mousewheel(function(v,T){if(!f.circular&&(T>0?(F+o<M):(F>0))||f.circular){s+=1;if(y===false){if(T>0){H(B,true)}else{k(B,true)}y=true}}})}function H(v,U){var T=(v?v:B);if(y===true&&p==="backward"){return}if(!f.circular){if(F+T+(f.vertical?u:o)>z){T=z-(F+(f.vertical?u:o))}}E.animate(w=="left"?{left:-(F+T)}:{top:-(F+T)},f.speed,f.easing,function(){F+=T;if(f.circular){if(F+(f.vertical?u:o)+h>=Q){E.css(f.vertical?"top":"left",-F+z);F-=z}}if(!U&&y){H()}else{if(U){if(--s>0){this.forward(B,true)}else{y=false;p=null}}}})}function k(v,U){var T=(v?v:B);if(y===true&&p==="forward"){return}if(!f.circular){if(F-T<0){T=F-0}}E.animate(w=="left"?{left:-(F-T)}:{top:-(F-T)},f.speed,f.easing,function(){F-=T;if(f.circular){if(F<=h){E.css(f.vertical?"top":"left",-(F+z));F+=z}}if(!U&&y){k()}else{if(U){if(--s>0){k(B,true)}else{y=false;p=null}}}})}function r(){if(!f.eltByElt){E.stop();F=0-parseInt(E.css(w))}y=false;p=null}function q(v,T){if(T=="width"){return v.find("img").width()}else{return v.find("img").height()}}function G(T){var v=T.find("img");if(f.vertical){return parseInt(T.css("margin-left"))+parseInt(T.css("margin-right"))+parseInt(v.width())+parseInt(T.css("border-left-width"))+parseInt(T.css("border-right-width"))+parseInt(T.css("padding-right"))+parseInt(T.css("padding-left"))}else{return parseInt(T.css("margin-top"))+parseInt(T.css("margin-bottom"))+parseInt(v.width())+parseInt(T.css("border-top-height"))+parseInt(T.css("border-bottom-height"))+parseInt(T.css("padding-top"))+parseInt(T.css("padding-bottom"))}}function t(v){e("#debug").html(e("#debug").html()+v+"<br/>")}})};function b(f,g){return parseInt(e.css(f[0],g))||0}function d(f){return f[0].offsetWidth+b(f,"marginLeft")+b(f,"marginRight")}function a(f){return f[0].offsetHeight+b(f,"marginTop")+b(f,"marginBottom")}})(jQuery);
