function performSearch(){elm=document.getElementById("theSearchBox");document.location="/?show=search&q="+elm.value}function secoyaBrowser(){this._name="";this._version="";this._os="";this.getName=function(){return this._name};this.getVersion=function(){return this._version};this.getOS=function(){return this._os};var A=navigator.userAgent.toLowerCase();if(B("konqueror")){this._name="Konqueror";this._os="Linux"}else{if(B("safari")){this._name="Safari"}else{if(B("omniweb")){this._name="OmniWeb"}else{if(B("opera")){this._name="Opera"}else{if(B("webtv")){this._name="WebTV"}else{if(B("icab")){this._name="iCab"}else{if(B("msie")){this._name="IE"}else{if(!B("compatible")){this._name="Netscape";this._version=A.charAt(8)}else{this._name="none"}}}}}}}}if(this._version==""){this._version=A.charAt(place+A.length)}if(this._os==""){if(B("linux")){this._os="Linux"}else{if(B("x11")){this._os="Unix"}else{if(B("mac")){this._os="Mac"}else{if(B("win")){this._os="Windows"}else{this._os="none"}}}}}function B(C){place=A.indexOf(C);return place!=-1}}function secoyaCoreLight(){this.className="secoyaCoreLight v1.0";this.browser=new secoyaBrowser();this.zIndex=5000;this.dimLayer=null;this.popup=null;this.checks=new Array();this.initialized=false;this.getValue=function(C){var B=document.getElementById(C);if(B.value){return B.value}else{return""}};this.registerCheck=function(B){this.checks[this.checks.length]=B};this.collectItemValues=function(C){if(C){var B=C.getElementsByTagName("input");var K=new Array();for(var G=0;G<B.length;G++){var I=B[G];if(I.type.toLowerCase()=="hidden"&&I.value.indexOf("collect_")==0){K[K.length]=I}}for(var G=0;G<K.length;G++){var J=K[G];var D=document.getElementsByName("coll"+J.name);var L=false;for(var F=0;F<D.length;F++){var E=D[F];if((E.type.toLowerCase()=="radio"||E.type.toLowerCase()=="checkbox")&&E.checked){var H=document.createElement("input");H.type="hidden";H.value=E.id;H.name=J.name+"[]";J.parentNode.insertBefore(H,J);var H=document.createElement("input");H.type="hidden";H.value=E.value;H.name=J.name+"[]";J.parentNode.insertBefore(H,J);L=true}}if(L){J.parentNode.removeChild(J)}}}};this.initialize=function(){this.initialized=true;var B=0;for(B=0;B<A.length;B++){if(A[B].initialize){A[B].initialize()}}for(var B=0;B<this.checks.length;B++){var F=document.getElementById(this.checks[B]);F.checked=true}var E=0.6;var D=document.createElement("div");D.style.display="none";D.id="secoyaLoginDim";document.body.appendChild(D);this.dimLayer=D;var C=document.createElement("div");C.style.display="none";C.id="secoyaLogin";document.body.appendChild(C);this.popup=C;this.addEvent(document,"keydown",lightCore.checkKey)};this.decodeEmails=function(){var F=document.getElementsByTagName("a");var E=/^[a-zA-Z0-9\/+]*={0,2}$/;for(var D=0;D<F.length;D++){var B=F[D];var C=B.getAttribute("href");if(C&&C.substring(0,7).toLowerCase()=="mailto:"){C=C.substring(7);if(E.test(C)){B.setAttribute("href","mailto:"+Base64.decode(C))}if(E.test(this.getText(B))){B.innerHTML=Base64.decode(this.getText(B))}}}};this.getText=function(B){if(lightCore.browser.getName()=="IE"){return B.innerText}else{return B.textContent}};this.loginVisible=false;this.toggleLogin=function(){try{if(window!=window.top&&window.parent.lightCore){var B=window;while(B!=window.top&&B.parent.lightCore){B=B.parent}B.lightCore.toggleLogin();return }}catch(C){}if(lightCore.loginVisible){lightCore.loginVisible=false;lightCore.dimLayer.onclick=null;lightCore.toggleDim(true);lightCore.hidePopup()}else{lightCore.loginVisible=true;lightCore.dimLayer.onclick=this.toggleLogin;as.invokeMethod("logMeIn")}};this.toggleElementID=function(B,C){elm=document.getElementById(B);if(elm){if(C){elm.style.display="block"}else{elm.style.display="none"}}};this.hidePopup=function(){var B=new turnOff(this.popup);fin=new fader(this.popup);fin.setDuration(200);fin.activateAfter(B);fin.fadeOut();fin.start()};this.showPopup=function(C,D,B,F,E){this.popup.style.display="block";this.popup.innerHTML=E;fin=new fader(this.popup);fin.setDuration(200);fin.fadeIn();fin.start()};this.toggleDim=function(B){if(this.dimLayer.style.display=="none"&&!B){this.dimLayer.style.display="block";this.dimLayer.style.widht=Math.max(document.body.offsetWidth,this.getClientWidth());this.dimLayer.style.height=Math.max(document.body.offsetHeight,this.getClientHeight())}else{this.dimLayer.style.display="none"}};this.getHost=function(){var C=document.location.protocol+"//"+document.location.hostname;var B=document.location.port;if(B!=""&&(B!="80"||B!=80)){C+=":"+B}return C+"/"};this.clearIf=function(C,B){if(C.value==B){C.value=""}};this.setOpacityById=function(D,C){var B=document.getElementById(D);this.setOpacity(B,C)};this.setOpacity=function(C,B){if(lightCore.browser.getName()=="IE"){C.style.filter="alpha(opacity="+B+")"}else{C.style.opacity=B/100}};this.clearOpacityById=function(C){var B=document.getElementById(C);this.clearOpacity(B)};this.clearOpacity=function(B){if(lightCore.browser.getName()=="IE"){B.style.filter=null}else{B.style.opacity=null}};this.getZIndex=function(){this.zIndex++;return this.zIndex};this.clearSelection=function(){if(this.browser.getName()=="IE"){document.selection.empty()}else{window.getSelection().removeAllRanges()}};this.getClientWidth=function(){if(this.browser.getName()=="IE"){return document.documentElement.clientWidth}else{return window.innerWidth}};this.getClientHeight=function(){if(this.browser.getName()=="IE"){return document.documentElement.clientHeight}else{return window.innerHeight}};this.addEvent=function(C,D,B){if(C.addEventListener){C.addEventListener(D,B,true)}else{if(C.attachEvent){C["e"+D+B]=B;C[D+B]=C["e"+D+B];C.attachEvent("on"+D,C[D+B])}}};this.removeEvent=function(C,D,B){if(C.removeEventListener){C.removeEventListener(D,B,false)}else{if(C.detachEvent){if(C[D+B]!=undefined){C.detachEvent("on"+D,C[D+B]);C[D+B]=null;C["e"+D+B]=null}}}};this.checkKey=function(B){if(lightCore.ctrlHold(B)){if(lightCore.getKeyCode(B)==16){lightCore.toggleLogin()}}};this.shiftHold=function(B){return this.checkKeyHold(B,"shift")};this.ctrlHold=function(B){return this.checkKeyHold(B,"ctrl")};this.checkKeyHold=function(C,B){if(!C){return false}if(B=="ctrl"){return C.ctrlKey||C.ctrlKey}if(B=="alt"){return C.altKey||C.altKey}if(B=="shift"){return C.shiftKey||C.shiftKey}return false};this.getKeyCode=function(C){var B=null;if(!C){var C=window.event}if(C.keyCode){B=C.keyCode}else{if(C.which){B=C.which}}return B};var A=new Array();this.registerInit=function(B){A[A.length]=B};this.setFocus=function(C){var B=document.getElementById(C);B.focus()};this.getBrowser=function(){return this.browser};this.getEvent=function(B){if(B){return B}else{return window.Event}};this.getElmFromEvent=function(C){var B;if(!C){var C=window.Event}if(C.target){B=C.target}else{if(C.srcElement){B=C.srcElement}}return B};this.recordedScrolls=new Array();this.recordScrolls=function(B){this.recordedScrolls=new Array();while(B&&B!=document){if(B.scrollTop||B.scrollLeft){this.recordedScrolls.push({elm:B,top:B.scrollTop,left:B.scrollLeft})}B=B.parentNode}};this.rollbackScrolls=function(){for(var B=0;B<this.recordedScrolls.length;B++){var C=this.recordedScrolls[B];C.elm.scrollTop=C.top;C.elm.scrollLeft=C.left}};this.isInFixed=function(B){while(B!=document.documentElement){if(B.style.position=="fixed"){return true}B=B.parentNode}return false};this.getStyle=function(D,B){if(D.tagName=="HTML"){return""}if(document.defaultView&&document.defaultView.getComputedStyle){var C=document.defaultView.getComputedStyle(D,null).getPropertyValue(B);if(C){return document.defaultView.getComputedStyle(D,null).getPropertyValue(B)}}else{if(!D.currentStyle){return""}return D.currentStyle[B]}return""};this.scrollTop=function(C){var B=0;if(C!=undefined){while(C.tagName!="HTML"){if(C.scrollTop&&C.scrollTop!=0){B+=C.scrollTop}if(C.parentNode){C=C.parentNode}else{break}}}if(window.innerHeight){B+=window.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){B+=document.documentElement.scrollTop}else{if(document.body){B+=document.body.scrollTop}}}return B};this.scrollLeft=function(C){var B=0;if(C!=undefined){while(C.tagName!="HTML"){if(C.scrollTop&&C.scrollLeft!=0){B+=C.scrollLeft}if(C.parentNode){C=C.parentNode}else{break}}}if(window.innerHeight){B+=window.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollLeft){B+=document.documentElement.scrollLeft}else{if(document.body){B+=document.body.scrollLeft}}}return B};this.isElementContainedIn=function(C,B){do{C=C.parentNode;if(C==B){return true}}while(C);return false}}var lightCore=new secoyaCoreLight();function setCookie(C,E,A,H,D,G){var B=new Date();B.setTime(B.getTime());if(A){A=A*1000*60*60*24}var F=new Date(B.getTime()+(A));document.cookie=C+"="+escape(E)+((A)?";expires="+F.toGMTString():"")+((H)?";path="+H:"")+((D)?";domain="+D:"")+((G)?";secure":"")}function doRegister(A){if(A.passfield1.value.length>0){A.pass1.value=hex_hmac_sha1(A.salt.value,A.passfield1.value)}if(A.passfield2.value.length>0){A.pass2.value=hex_hmac_sha1(A.salt.value,A.passfield2.value)}if(A.passfieldcurr&&A.passfieldcurr.value.length>0){A.passcurr.value=hex_hmac_sha1(A.key.value,hex_hmac_sha1(A.salt.value,A.passfieldcurr.value))}fake="";for(i=0;i<A.passfield1.value.length;i++){fake=fake+"-"}A.passfield1.value=fake;fake="";for(i=0;i<A.passfield2.value.length;i++){fake=fake+"-"}A.passfield2.value=fake;fake="";if(A.passfieldcurr){for(i=0;i<A.passfieldcurr.value.length;i++){fake=fake+"-"}A.passfieldcurr.value=fake}return true}function doLogin(A){var B=document.getElementById("submitter");if(!B){B=A}B["b-01.userName"].value=A["b-01.userName"].value;B["b-01.pass"].value=hex_hmac_sha1(B["b-01.salt"].value,A["b-01.password"].value);if(A["b-01.remember"]&&A["b-01.remember"].checked){setCookie("u_pass",A["b-01.pass"].value,100,"/")}B["b-01.pass"].value=hex_hmac_sha1(B["b-01.key"].value,B["b-01.pass"].value);B.submit();return false}var hexcase=0;var b64pad="";var chrsz=8;function hex_sha1(A){return binb2hex(core_sha1(str2binb(A),A.length*chrsz))}function b64_sha1(A){return binb2b64(core_sha1(str2binb(A),A.length*chrsz))}function str_sha1(A){return binb2str(core_sha1(str2binb(A),A.length*chrsz))}function hex_hmac_sha1(A,B){return binb2hex(core_hmac_sha1(A,B))}function b64_hmac_sha1(A,B){return binb2b64(core_hmac_sha1(A,B))}function str_hmac_sha1(A,B){return binb2str(core_hmac_sha1(A,B))}function sha1_vm_test(){return hex_sha1("abc")=="a9993e364706816aba3e25717850c26c9cd0d89d"}function core_sha1(N,H){N[H>>5]|=128<<(24-H%32);N[((H+64>>9)<<4)+15]=H;var O=Array(80);var M=1732584193;var L=-271733879;var K=-1732584194;var J=271733878;var I=-1009589776;for(var E=0;E<N.length;E+=16){var G=M;var F=L;var D=K;var C=J;var A=I;for(var B=0;B<80;B++){if(B<16){O[B]=N[E+B]}else{O[B]=rol(O[B-3]^O[B-8]^O[B-14]^O[B-16],1)}var P=safe_add(safe_add(rol(M,5),sha1_ft(B,L,K,J)),safe_add(safe_add(I,O[B]),sha1_kt(B)));I=J;J=K;K=rol(L,30);L=M;M=P}M=safe_add(M,G);L=safe_add(L,F);K=safe_add(K,D);J=safe_add(J,C);I=safe_add(I,A)}return Array(M,L,K,J,I)}function sha1_ft(B,A,D,C){if(B<20){return(A&D)|((~A)&C)}if(B<40){return A^D^C}if(B<60){return(A&D)|(A&C)|(D&C)}return A^D^C}function sha1_kt(A){return(A<20)?1518500249:(A<40)?1859775393:(A<60)?-1894007588:-899497514}function core_hmac_sha1(C,F){var E=str2binb(C);if(E.length>16){E=core_sha1(E,C.length*chrsz)}var A=Array(16),D=Array(16);for(var B=0;B<16;B++){A[B]=E[B]^909522486;D[B]=E[B]^1549556828}var G=core_sha1(A.concat(str2binb(F)),512+F.length*chrsz);return core_sha1(D.concat(G),512+160)}function safe_add(A,D){var C=(A&65535)+(D&65535);var B=(A>>16)+(D>>16)+(C>>16);return(B<<16)|(C&65535)}function rol(A,B){return(A<<B)|(A>>>(32-B))}function str2binb(D){var C=Array();var A=(1<<chrsz)-1;for(var B=0;B<D.length*chrsz;B+=chrsz){C[B>>5]|=(D.charCodeAt(B/chrsz)&A)<<(32-chrsz-B%32)}return C}function binb2str(C){var D="";var A=(1<<chrsz)-1;for(var B=0;B<C.length*32;B+=chrsz){D+=String.fromCharCode((C[B>>5]>>>(32-chrsz-B%32))&A)}return D}function binb2hex(C){var B=hexcase?"0123456789ABCDEF":"0123456789abcdef";var D="";for(var A=0;A<C.length*4;A++){D+=B.charAt((C[A>>2]>>((3-A%4)*8+4))&15)+B.charAt((C[A>>2]>>((3-A%4)*8))&15)}return D}function binb2b64(D){var C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var F="";for(var B=0;B<D.length*4;B+=3){var E=(((D[B>>2]>>8*(3-B%4))&255)<<16)|(((D[B+1>>2]>>8*(3-(B+1)%4))&255)<<8)|((D[B+2>>2]>>8*(3-(B+2)%4))&255);for(var A=0;A<4;A++){if(B*8+A*6>D.length*32){F+=b64pad}else{F+=C.charAt((E>>6*(3-A))&63)}}}return F}Array.prototype.indexOf=function(B){for(var A=0;A<this.length;A++){if(this[A]==B){return A}}return -1};Array.prototype.inArray=function(A){return this.indexOf(A)!=-1};Array.prototype.appendString=function(C){var A=new Array();for(var B=0;B<this.length;B++){A[B]=this[B]+C}return A};Array.prototype.prependString=function(C){var A=new Array();for(var B=0;B<this.length;B++){A[B]=C+this[B]}return A};String.prototype.decodeEntities=function(){return this.replace(/&(\w+);/g,function(A,B){return{AElig:"\xC6",Oslash:"\xD8",Aring:"\xC5",aelig:"\xE6",oslash:"\xF8",aring:"\xE5"}[B]})};var mandatoryErrorString="Felter markeret med * skal udfyldes.";function secoyaValidator(A){this.className="secoyaValidator v0.9";this.arrValidators=A;this.validate=function(){var D=false;var C=new Array();for(var E=0;E<A.length;E++){var B=A[E].validate();if(B!=""&&B!=mandatoryErrorString){C.push(B)}else{if(B==mandatoryErrorString&&!D){C.push(B);D=true}}}if(C.length>0){var F="Nogle felter er ikke udfyldt korrekt. Check venligst følgende:\n";for(var E=0;E<C.length;E++){F+="- "+C[E]+"\n"}alert(F);return false}return true}}function validateDimensions(A){this.validate=function(){return""}}function validateChecked(A){this.inputElement=inputElement;this.validate=function(){var B="";if(this.inputElement.name){B="'"+this.inputElement.name+"' "}if(!this.inputElement.checked){return"Checkboxen "+B+"skal være checked."}return""}}function validateMaxLength(A){this.validate=function(){return""}}function validateMinLength(A){this.validate=function(){return""}}function validateCaptcha(A){this.validate=function(){return""}}function validateEquals(A){this.validate=function(){return""}}function validateNumberOnly(A){this.inputElement=A;this.validate=function(){var C="";if(this.inputElement.name){C="'"+this.inputElement.name+"' "}var B=this.inputElement.value;if(B.search(/^[+-]?[0-9]+$/)){return"Værdien for feltet "+C+"skal være et heltal."}return""}}function validateUnique(A){this.validate=function(){return""}}function validateLegalValue(A){this.validate=function(){return""}}function validateNotEmpty(A){this.inputElement=A;this.validate=function(){if(this.inputElement.value==""){return mandatoryErrorString}return""}}function validateDate(A){this.inputElement=A;this.validate=function(){var B=this.inputElement.value;if(B.search(/^(([0-2][1-9])|3[0-1])-((0[1-9])|(1[0-2]))-([0-3][0-9]{3})/)){return"Datoen '"+B+"' er ikke en gyldig dato. Brug formatet 'dd-mm-yyyy'."}return""}}function validateEmail(A){this.inputElement=A;this.validate=function(){var B=this.inputElement.value;if(B.search(/^\w+((-\w+)|(\.\w+)|(\+\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)){return"'"+this.inputElement.value+"' er ikke en gyldig e-mail."}return""}};function animator(){this.elms=new Object();this.addElement=function(A){this.elms[A.getUID()]=A;setTimeout("anim.animate('"+A.getUID()+"')",A.stepDelay)};this.removeElement=function(A){this.elms[A.getUID()]=null};this.animate=function(A){elm=this.elms[A];if(elm&&elm.animate()){setTimeout("anim.animate('"+elm.getUID()+"')",elm.stepDelay)}}}anim=new animator();function changeElement(B,A){this.e1=B;this.e2=A;this.after=null;this.activateAfter=function(C){this.after=C};this.start=function(){this.e1.parentNode.insertChildBefore(this.e1,this.e2);this.e1.parentNode.removeChild(this.e1);if(this.after){this.after.start()}}}function turnOff(A){this.e1=A;this.after=null;this.rem=false;this.remove=function(){this.rem=true};this.activateAfter=function(B){this.after=B};this.start=function(){this.e1.style.display="none";if(this.after){this.after.start()}if(this.rem){this.e1.parentNode.removeChild(this.e1)}}}function fader(A){this.elm=A;this.id=A.id+"fader";this.stepDelay=60;this.direction=0;this.progress=0;this.speed=5;this.after=null;this.setDuration=function(B){this.stepDelay=33;this.speed=Math.max(1,parseInt(100/(B/this.stepDelay)))};this.fadeIn=function(){this.direction=1;this.progress=0;lightCore.setOpacity(this.elm,this.progress)};this.fadeOut=function(){this.direction=-1;this.progress=100;lightCore.setOpacity(this.elm,this.progress)};this.start=function(){anim.addElement(this)};this.animate=function(){this.progress=this.progress+this.direction*this.speed;if(this.progress>100){this.progress=100}if(this.progress<0){this.progress=0}lightCore.setOpacity(this.elm,this.progress);if(this.progress==0||this.progress==100){anim.removeElement(this);lightCore.clearOpacity(this.elm);if(this.after){this.after.start()}return false}else{return true}};this.activateAfter=function(B){this.after=B};this.getUID=function(){return this.id}}function slider(A){this.elm=A;this.id=A.id+"slide";this.m_iSpeed=10;this.m_iCounterIncrease=1;this.m_iDegrees=90;this.m_iToX=null;this.m_iToY=null;this.m_iFromX=null;this.m_iFromY=null;this.m_iIntervalId=null;this.m_iCounter=null;this.start=function(C,B){this.stopSlide();this.m_iCounter=1;this.m_iFromX=(document.layers)?this.elm.left:this.elm.offsetLeft;this.m_iFromY=(document.layers)?this.elm.top:this.elm.offsetTop;this.m_iToX=(C==null)?this.m_iFromX:C;this.m_iToY=(B==null)?this.m_iFromY:B;if(this.m_iFromX==this.m_iToX&&this.m_iFromY==this.m_iToY){this.m_iCounter=this.m_iDegrees}anim.addElement(this)};this.getUID=function(){return this.id};this.stopSlide=function(){if(this.m_iIntervalId!=null){window.clearInterval(this.m_iIntervalId);this.m_iIntervalId=null}};this.activateAfter=function(B){this.after=B};this.animate=function(){var C=Math.sin((this.m_iCounter/90)*(Math.PI/2));var B=null;B=this.elm;if(document.all||document.getElementById){B=this.elm.style}B.left=this.m_iFromX+(C*(this.m_iToX-this.m_iFromX));B.top=this.m_iFromY+(C*(this.m_iToY-this.m_iFromY));this.m_iCounter+=this.m_iCounterIncrease;if(this.m_iCounter<this.m_iDegrees){return true}else{if(this.m_iDegrees==90||this.m_iDegrees==270){B.left=this.m_iToX;B.top=this.m_iToY}else{if(this.m_iDegrees==180||this.m_iDegrees==360){B.left=this.m_iFromX;B.top=this.m_iFromY}}this.stopSlide();return false}}};var xajaxRequestUri="/ajax.php";var xajaxDebug=false;var xajaxStatusMessages=false;var xajaxWaitCursor=false;var xajaxDefinedGet=0;var xajaxDefinedPost=1;var xajaxLoaded=false;function xajax_keepAlive(){return xajax.call("keepAlive",arguments,1)}function xajax_bootstrap(){return xajax.call("bootstrap",arguments,1)}function xajax_moduleGateway(){return xajax.call("moduleGateway",arguments,1)}function xajax_connectionGateway(){return xajax.call("connectionGateway",arguments,1)}function xajax_sectionGateway(){return xajax.call("sectionGateway",arguments,1)}function xajax_applicationGateway(){return xajax.call("applicationGateway",arguments,1)}function gatewayRegulator(){this.busy=false;this.userMode=false;this.indicator=null;this.iElm=0;this.stat="off";this.currentTimeout=null;lightCore.registerInit(this);this.initialize=function(){this.indicator=document.createElement("div");this.indicator.innerHTML="Venter p&aring; svar fra server...";this.indicator.className="indicator";this.indicator.style.display="none";this.indicator.style.position="fixed";this.indicator.style.left="0px";this.indicator.style.top="0px";document.body.appendChild(this.indicator)};this.turnOnIndicator=function(){if((this.stat=="tryOn"||this.stat=="off")&&this.indicator&&this.indicator.style.display=="none"){this.indicator.style.zIndex=lightCore.getZIndex();this.iElm++;this.currentTimeout=setTimeout("gr.fadeIndicator("+this.iElm+")",2000);this.stat="tryOn"}};this.turnOffIndicator=function(){clearTimeout(this.currentTimeout);if(this.stat=="on"){to=new turnOff(this.indicator);elm=new fader(this.indicator);elm.fadeOut();elm.activateAfter(to);elm.start();this.stat="off"}};this.setBusy=function(A){this.busy=A};this.isBusy=function(){return false;return this.busy&&this.userMode};this.fadeIndicator=function(B){if(B==this.iElm&&this.stat=="tryOn"&&this.indicator.style.display=="none"){this.indicator.style.display="block";var A=new fader(this.indicator);A.fadeIn();A.start();this.stat="on"}}}var gr=new gatewayRegulator();function applicationStub(){this.invokeMethod=function(){if(!gr.isBusy()){var A=new Array();for(var B=1;B<arguments.length;B++){A[A.length]=arguments[B]}gr.setBusy(true);gr.turnOnIndicator();xajax_applicationGateway(arguments[0],A)}}}var as=new applicationStub();function sectionStub(){this.invokeMethod=function(){if(!gr.isBusy()){var A=new Array();for(var B=2;B<arguments.length;B++){A[A.length]=arguments[B]}gr.setBusy(true);gr.turnOnIndicator();xajax_sectionGateway(arguments[0],arguments[1],A)}}}var ss=new sectionStub();function connectionStub(){this.invokeMethod=function(){if(!gr.isBusy()){var A=new Array();for(var B=2;B<arguments.length;B++){A[A.length]=arguments[B]}gr.setBusy(true);gr.turnOnIndicator();xajax_connectionGateway(arguments[0],arguments[1],A)}}}var cs=new connectionStub();function moduleStub(){this.invokeMethod=function(){if(!gr.isBusy()){var A=new Array();for(var B=3;B<arguments.length;B++){A[A.length]=arguments[B]}gr.setBusy(true);gr.turnOnIndicator();xajax_moduleGateway(arguments[0],arguments[1],arguments[2],A)}}}var ms=new moduleStub();if(typeof deconcept=="undefined"){var deconcept={}}if(typeof deconcept.util=="undefined"){deconcept.util={}}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil={}}deconcept.SWFObject=function(E,C,K,F,H,J,L,G,A,D){if(!document.getElementById){return }this.DETECT_KEY=D?D:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];if(E){this.setAttribute("swf",E)}if(C){this.setAttribute("id",C)}if(K){this.setAttribute("width",K)}if(F){this.setAttribute("height",F)}if(H){this.setAttribute("version",new deconcept.PlayerVersion(H.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){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(J){this.addParam("bgcolor",J)}var B=L?L:"high";this.addParam("quality",B);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var I=(G)?G:window.location;this.setAttribute("xiRedirectUrl",I);this.setAttribute("redirectUrl","");if(A){this.setAttribute("redirectUrl",A)}};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(A,C){if(A instanceof Array&&C instanceof Array&&A.length==C.length){for(var B=0;B<A.length;B++){this.params[A[B]]=C[B]}}else{this.params[A]=C}},getParams:function(){return this.params},addVariable:function(A,C){if(A instanceof Array&&C instanceof Array&&A.length==C.length){for(var B=0;B<A.length;B++){this.variables[A[B]]=C[B]}}else{this.variables[A]=C}},getVariable:function(A){return this.variables[A]||""},getVariables:function(){return this.variables},getVariablePairs:function(){var A=[];var B;var C=this.getVariables();for(B in C){A[A.length]=B+"="+C[B]}return A},getSWFHTML:function(){var D="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}D='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+(this.getAttribute("style")||"")+'"';D+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var C=this.getParams();for(var A in C){D+=[A]+'="'+C[A]+'" '}var B=this.getVariablePairs().join("&");if(B.length>0){D+='flashvars="'+B+'"'}D+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}D='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+(this.getAttribute("style")||"")+'">';D+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var C=this.getParams();for(var A in C){D+='<param name="'+A+'" value="'+C[A]+'" />'}var B=this.getVariablePairs().join("&");if(B.length>0){D+='<param name="flashvars" value="'+B+'" />'}D+="</object>"}return D},write:function(A){if(this.getAttribute("useExpressInstall")){var B=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(B)&&!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 C=(typeof A=="string")?document.getElementById(A):A;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var C=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){C=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 D=1;var B=3;while(D){try{B++;D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+B);C=new deconcept.PlayerVersion([B,0,0])}catch(E){D=null}}}else{try{var D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(E){try{var D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");C=new deconcept.PlayerVersion([6,0,21]);D.AllowScriptAccess="always"}catch(E){if(C.major==6){return C}}try{D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(E){}}if(D!=null){C=new deconcept.PlayerVersion(D.GetVariable("$version").split(" ")[1].split(","))}}}return C};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 C=document.location.search||document.location.hash;if(D==null){return C}if(C){var B=C.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 C=document.getElementsByTagName("OBJECT");for(var B=C.length-1;B>=0;B--){C[B].style.display="none";for(var A in C[B]){if(typeof C[B][A]=="function"){C[B][A]=function(){}}}}};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 hasFlash=function(){var B=6;if(navigator.appVersion.indexOf("MSIE")!=-1&&navigator.appVersion.indexOf("Windows")>-1){document.write('<script language="VBScript"> \non error resume next \nhasFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & '+B+"))) \n<\/script> \n");if(window.hasFlash!=null){return window.hasFlash}}if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){var A=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;return parseInt(A.charAt(A.indexOf(".")-1))>=B}return false}();String.prototype.normalize=function(){return this.replace(/\s+/g," ")};if(Array.prototype.push==null){Array.prototype.push=function(){var C=0,B=this.length,A=arguments.length;while(C<A){this[B++]=arguments[C++]}return this.length}}if(!Function.prototype.apply){Function.prototype.apply=function(oScope,args){var sarg=[],rtrn,call;if(!oScope){oScope=window}if(!args){args=[]}for(var i=0;i<args.length;i++){sarg[i]="args["+i+"]"}call="oScope.__applyTemp__("+sarg.join(",")+");";oScope.__applyTemp__=this;rtrn=eval(call);oScope.__applyTemp__=null;return rtrn}}var parseSelector=function(){var C=/^([^#.>`]*)(#|\.|\>|\`)(.+)$/;function E(J,G){var F=J.split(/\s*\,\s*/);var I=[];for(var H=0;H<F.length;H++){I=I.concat(B(F[H],G))}return I}function B(M,I,P){M=M.replace(" ","`");var J=M.match(C);var H,N,F,O,L,K;var G=[];if(J==null){J=[M,M]}if(J[1]==""){J[1]="*"}if(P==null){P="`"}if(I==null){I=document}switch(J[2]){case"#":O=J[3].match(C);if(O==null){O=[null,J[3]]}H=document.getElementById(O[1]);if(H==null||(J[1]!="*"&&!A(H,J[1]))){return G}if(O.length==2){G.push(H);return G}return B(O[3],H,O[2]);case".":if(P!=">"){N=D(I,J[1])}else{N=I.childNodes}for(L=0,K=N.length;L<K;L++){H=N[L];if(H.nodeType!=1){continue}O=J[3].match(C);if(O!=null){if(H.className==null||H.className.match("(\\s|^)"+O[1]+"(\\s|$)")==null){continue}F=B(O[3],H,O[2]);G=G.concat(F)}else{if(H.className!=null&&H.className.match("(\\s|^)"+J[3]+"(\\s|$)")!=null){G.push(H)}}}return G;case">":if(P!=">"){N=D(I,J[1])}else{N=I.childNodes}for(L=0,K=N.length;L<K;L++){H=N[L];if(H.nodeType!=1){continue}if(!A(H,J[1])){continue}F=B(J[3],H,">");G=G.concat(F)}return G;case"`":N=D(I,J[1]);for(L=0,K=N.length;L<K;L++){H=N[L];F=B(J[3],H,"`");G=G.concat(F)}return G;default:if(P!=">"){N=D(I,J[1])}else{N=I.childNodes}for(L=0,K=N.length;L<K;L++){H=N[L];if(H.nodeType!=1){continue}if(!A(H,J[1])){continue}G.push(H)}return G}}function D(G,F){if(F=="*"&&G.all!=null){return G.all}return G.getElementsByTagName(F)}function A(G,F){if(F=="*"){return true}return G.nodeName.toLowerCase().replace("html:","")==F.toLowerCase()}return E}();function named(A){return new named.Arguments(A)}named.Arguments=function(A){this.oArgs=A};named.Arguments.prototype.constructor=named.Arguments;named.extract=function(E,A){var D,C;var B=E.length;while(B--){C=E[B];if(C!=null&&C.constructor!=null&&C.constructor==named.Arguments){D=E[B].oArgs;break}}if(D==null){return }for(sName in D){if(A[sName]!=null){A[sName](D[sName])}}return };var sIFR=function(){var L="http://www.w3.org/1999/xhtml";var G=false;var I=false;var S=false;var N;var K=[];var O=function(){var Z=navigator.userAgent.toLowerCase();var b={bIsWebKit:Z.indexOf("applewebkit")>-1,bIsSafari:Z.indexOf("safari")>-1,bIsKonq:navigator.product!=null&&navigator.product.toLowerCase().indexOf("konqueror")>-1,bIsOpera:Z.indexOf("opera")>-1,bIsXML:document.contentType!=null&&document.contentType.indexOf("xml")>-1,bHasTransparencySupport:true,bUseDOM:true,nFlashVersion:null,nOperaVersion:null,nGeckoBuildDate:null,nWebKitVersion:null};b.bIsKHTML=b.bIsWebKit||b.bIsKonq;b.bIsGecko=!b.bIsWebKit&&navigator.product!=null&&navigator.product.toLowerCase()=="gecko";if(b.bIsGecko&&Z.match(/.*gecko\/(\d{8}).*/)){b.nGeckoBuildDate=new Number(Z.match(/.*gecko\/(\d{8}).*/)[1])}if(b.bIsOpera&&Z.match(/.*opera(\s|\/)(\d+\.\d+)/)){b.nOperaVersion=new Number(Z.match(/.*opera(\s|\/)(\d+\.\d+)/)[2])}b.bIsIE=Z.indexOf("msie")>-1&&!b.bIsOpera&&!b.bIsKHTML&&!b.bIsGecko;b.bIsIEMac=b.bIsIE&&Z.match(/.*mac.*/)!=null;if(b.bIsIE||(b.bIsOpera&&b.nOperaVersion<7.6)){b.bUseDOM=false}if(b.bIsWebKit&&Z.match(/.*applewebkit\/(\d+).*/)){b.nWebKitVersion=new Number(Z.match(/.*applewebkit\/(\d+).*/)[1])}if(window.hasFlash&&(!b.bIsIE||b.bIsIEMac)){var Y=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;b.nFlashVersion=parseInt(Y.charAt(Y.indexOf(".")-1))}if(Z.match(/.*(windows|mac).*/)==null||b.bIsIEMac||b.bIsKonq||(b.bIsOpera&&b.nOperaVersion<7.6)||(b.bIsSafari&&b.nFlashVersion<7)||(!b.bIsSafari&&b.bIsWebKit&&b.nWebKitVersion<312)||(b.bIsGecko&&b.nGeckoBuildDate<20020523)){b.bHasTransparencySupport=false}if(!b.bIsIEMac&&!b.bIsGecko&&document.createElementNS){try{document.createElementNS(L,"i").innerHTML=""}catch(a){b.bIsXML=true}}b.bUseInnerHTMLHack=b.bIsKonq||(b.bIsWebKit&&b.nWebKitVersion<312);return b}();if(window.hasFlash==false||!document.createElement||!document.getElementById||(O.bIsXML&&(O.bUseInnerHTMLHack||O.bIsIE))){return{UA:O}}function Q(a){if((!R.bAutoInit&&(window.event||a)!=null)||!D(a)){return }G=true;for(var Z=0,Y=K.length;Z<Y;Z++){M.apply(null,K[Z])}K=[]}var R=Q;function D(Y){return true}function V(Y){if(O.bIsIE){return Y.replace(new RegExp("%\d{0}","g"),"%25")}return Y.replace(new RegExp("%(?!\d)","g"),"%25")}function C(Z,Y){if(Y=="*"){return true}return Z.nodeName.toLowerCase().replace("html:","")==Y.toLowerCase()}function W(c,b,a,Z,d){var g="";var f=c.firstChild;var i,Y,e,h;if(Z==null){Z=0}if(d==null){d=""}while(f){if(f.nodeType==3){h=f.nodeValue.replace("<","&lt;");switch(a){case"lower":g+=h.toLowerCase();break;case"upper":g+=h.toUpperCase();break;default:g+=h}}else{if(f.nodeType==1){if(C(f,"a")&&!f.getAttribute("href")==false){if(f.getAttribute("target")){d+="&sifr_url_"+Z+"_target="+f.getAttribute("target")}d+="&sifr_url_"+Z+"="+V(f.getAttribute("href")).replace(/&/g,"%26");g+='<a href="asfunction:_root.launchURL,'+Z+'">';Z++}else{if(C(f,"br")){g+="<br/>"}}if(f.hasChildNodes()){e=W(f,null,a,Z,d);g+=e.sContent;Z=e.nLinkCount;d=e.sLinkVars}if(C(f,"a")){g+="</a>"}}}i=f;f=f.nextSibling;if(b!=null){Y=i.parentNode.removeChild(i);b.appendChild(Y)}}return{sContent:g,nLinkCount:Z,sLinkVars:d}}function U(Y){if(document.createElementNS&&O.bUseDOM){return document.createElementNS(L,Y)}else{return document.createElement(Y)}}function B(b,Z,a){var Y=U("param");Y.setAttribute("name",Z);Y.setAttribute("value",a);b.appendChild(Y)}function X(a,Z){var Y=a.className;if(Y==null){Y=Z}else{Y=Y.normalize()+(Y==""?"":" ")+Z}a.className=Y}function A(Y){var Z=document.documentElement;if(R.bHideBrowserText==false){Z=document.getElementsByTagName("body")[0]}if((R.bHideBrowserText==false||Y)&&Z){if(Z.className==null||Z.className.match(/\bsIFR\-hasFlash\b/)==null){X(Z,"sIFR-hasFlash")}}}function H(a,Z){var Y=null;if(document.defaultView&&document.defaultView.getComputedStyle){Y=document.defaultView.getComputedStyle(a,null).getPropertyValue(Z)}else{if(a.currentStyle){Z=Z.replace(/\-(.)/g,function(b,c){return c.toUpperCase()});Y=a.currentStyle[Z]}}return Y}function F(Y){var Z=H(Y,"text-align");if({left:true,right:true,center:true}[Z]){return Z}else{return null}}function E(d){var a=H(d,"color");if(a){var Z;if(a.search(/^rgb ?\( ?([0-9]+, ?){2}[0-9]+\)$/)==0){Z=a.match(/[0-9]+/g);for(var b=0;b<Z.length;b++){var c=parseInt(Z[b]).toString(16);if(c.length==1){c="0"+c}Z[b]=c}a="#"+Z.join("")}else{if(a.indexOf("#")==0&&a.length=="4"){Z="#";for(var b=1;b<a.length;b++){Z+=a.charAt(b)+a.charAt(b)}a=Z}else{if(a.indexOf("#")==-1){var Y=new Array();Y.maroon="#800000";Y.red="#FF0000";Y.orange="#ffA500";Y.yellow="#ffff00";Y.olive="#808000";Y.purple="#800080";Y.fuchsia="#ff00ff";Y.white="#ffffff";Y.lime="#00ff00";Y.green="#008000";Y.navy="#000080";Y.blue="#0000ff";Y.aqua="#00ffff";Y.teal="#008080";Y.black="#000000";Y.silver="#c0c0c0";Y.gray="#808080";if(Y[a]){a=Y[a]}}}}}return a}function M(y,e,AB,o,a,AA,p,g,b,w,AM,k,AC){if(!D()){return K.push(arguments)}A();named.extract(arguments,{sSelector:function(i){y=i},sFlashSrc:function(i){e=i},sColor:function(i){AB=i},sLinkColor:function(i){o=i},sHoverColor:function(i){a=i},sBgColor:function(i){AA=i},nPaddingTop:function(i){p=i},nPaddingRight:function(i){g=i},nPaddingBottom:function(i){b=i},nPaddingLeft:function(i){w=i},sFlashVars:function(i){AM=i},sCase:function(i){k=i},sWmode:function(i){AC=i}});var AI=parseSelector(y);if(AI.length==0){return false}if(AM!=null){AM="&"+AM.normalize()}else{AM=""}if(p==null){p=0}if(g==null){g=0}if(b==null){b=0}if(w==null){w=0}if(AA==null){AA="#FFFFFF"}if(AC=="transparent"){if(!O.bHasTransparencySupport){AC="opaque"}else{AA="transparent"}}if(AC==null){AC=""}var x,c,AF,AK,AE,h,AL,n,AG;var z=null;for(var AJ=0,r=AI.length;AJ<r;AJ++){x=AI[AJ];if(x.className!=null&&x.className.match(/\bsIFR\-replaced\b/)!=null){continue}var m=null,AD=[];if(!x.offsetWidth&&!x.offsetHeight){m=x.parentNode;while(m!=document.documentElement){if(m.style.display=="none"){AD.push(m);m.style.display=""}m=m.parentNode}}c=x.offsetWidth-w-g;AF=x.offsetHeight-p-b;for(var Z=0;Z<AD.length;Z++){AD[Z].style.display="none"}if(isNaN(c)||isNaN(AF)){R.bIsDisabled=true;document.documentElement.className=document.documentElement.className.replace(/\bsIFR\-hasFlash\b/,"");return }AL=U("span");AL.className="sIFR-alternate";AL.style.display="none";AG=W(x,AL,k);var j=V(AG.sContent).replace(/\+/g,"%2B").replace(/&/g,"%26").replace(/\"/g,"%22").normalize();var d=AM;var u=E(x);if(u){d+="&textcolor="+u}var AH=F(x);if(AH){d+="&textalign="+AH}var f=x.parentNode;var t=f.parentNode;var s=null;var l=false;if(f.tagName=="A"){d+="&linkcolor="+u;var v=t.className;if(t.className.length){t.className+=" hover"}else{t.className="hover"}u=E(x);if(u){d+="&hovercolor="+u}t.className=v;s=f.getAttribute("href");j="<a href=%22asfunction:_root.launchURL,0%22>"+j+"</a>";if(s){if(s.search(/#TB_inline/)!=-1){l=true;d+="&sifr_url_0=#"}else{f.removeAttribute("href");d+="&sifr_url_0="+encodeURIComponent(s)}var Y=f.getAttribute("target");if(Y){d+="&sifr_url_0_target="+Y}}else{d+="&sifr_url_0=#"}}var q=H(x,"text-transform");switch(q){case"uppercase":case"lowercase":j=j.replace(/([^<]*)(<[^>]+>)?/g,function(i,AO,AN){q="uppercase"?"toUpperCase":"toLowerCase";return AO[q]()+(AN?AN:"")});break}h="txt="+j+d+"&w="+c+"&h="+AF+AG.sLinkVars;X(x,"sIFR-replaced");if(z==null||!O.bUseDOM){if(!O.bUseDOM){if(!O.bIsIE){x.innerHTML=['<embed class="sIFR-flash" type="application/x-shockwave-flash" src="',e,'" quality="best" wmode="',AC,'" bgcolor="',AA,'" flashvars="',h,'" width="',c,'" height="',AF,'" sifr="true"',(s&&!l)?" onmouseup=\"window.location='"+s+"'\"":"","></embed>"].join("")}else{x.innerHTML=['<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" sifr="true" width="',c,'" height="',AF,'" class="sIFR-flash"',(s&&!l)?" onmouseup=\"window.location='"+s+"'\"":"",">",'<param name="movie" value="',e,'"></param>','<param name="flashvars" value="',h,'"></param>','<param name="quality" value="best"></param>','<param name="wmode" value="',AC,'"></param>','<param name="bgcolor" value="',AA,'"></param>',"</object>"].join("")}}else{if(O.bIsOpera){n=U("object");n.setAttribute("data",e);B(n,"quality","best");B(n,"wmode",AC);B(n,"bgcolor",AA)}else{n=U("embed");n.setAttribute("src",e);n.setAttribute("quality","best");n.setAttribute("flashvars",h);n.setAttribute("wmode",AC);n.setAttribute("bgcolor",AA);n.setAttribute("pluginspace","http://www.macromedia.com/go/getflashplayer");n.setAttribute("scale","noscale")}n.setAttribute("sifr","true");n.setAttribute("type","application/x-shockwave-flash");n.className="sIFR-flash";if(!O.bIsKHTML||!O.bIsXML){z=n.cloneNode(true)}}}else{n=z.cloneNode(true)}if(O.bUseDOM){if(O.bIsOpera){B(n,"flashvars",h)}else{n.setAttribute("flashvars",h)}if(s&&!l){n.onmouseup=new Function("window.location='"+s+"'")}n.setAttribute("width",c);n.setAttribute("height",AF);n.style.width=c+"px";n.style.height=AF+"px";x.appendChild(n)}x.appendChild(AL);if(O.bUseInnerHTMLHack){x.innerHTML+=""}if(l){f.parentNode.style.position="relative";f.parentNode.insertBefore(x,f);f.style.position="absolute";f.style.display="block";n=x.firstChild;f.style.width=n.clientWidth+"px";f.style.height=n.clientHeight+"px";f.style.overflow="hidden";f.style.top=H(f.parentNode,"padding-top");f.style.left=H(f.parentNode,"padding-left");f.style.zIndex=10;lightCore.setOpacity(f,0);f.innerHTML=AL.innerHTML}x.style.visibility="visible"}if(O.bIsIE&&R.bFixFragIdBug){setTimeout(function(){document.title=N},0)}}function J(){N=document.title}function T(){if(R.bIsDisabled==true){return }I=true;if(R.bHideBrowserText){A(true)}if(window.attachEvent){window.attachEvent("onload",Q)}else{if(!O.bIsKonq&&(document.addEventListener||window.addEventListener)){if(document.addEventListener){document.addEventListener("load",Q,false)}if(window.addEventListener){window.addEventListener("load",Q,false)}}else{if(typeof window.onload=="function"){var Y=window.onload;window.onload=function(){Y();Q()}}else{window.onload=Q}}}if(!O.bIsIE||window.location.hash==""){R.bFixFragIdBug=false}else{J()}}function P(){A(true)}P.replaceNow=function(){T();Q()};R.UA=O;R.bAutoInit=true;R.bFixFragIdBug=true;R.replaceElement=M;R.updateDocumentTitle=J;R.appendToClassName=X;R.setup=T;R.debug=P;R.bIsDisabled=false;R.bHideBrowserText=true;return R}();if(typeof sIFR=="function"){sIFR.removeDecoyClasses=function(){function A(B,C){if(B&&B.className!=null){B.className=B.className.replace(/\bsIFR-hasFlash\b/,"")}}return function(){A(document.documentElement);A(document.getElementsByTagName("body")[0])}}();sIFR.preferenceManager={storage:{sCookieId:"sifr",set:function(B){var A=new Date();A.setFullYear(A.getFullYear()+3);document.cookie=[this.sCookieId,"=",B,";expires=",A.toGMTString(),";path=/"].join("")},get:function(){var A=document.cookie.match(new RegExp(";?"+this.sCookieId+"=([^;]+);?"));if(A!=null&&A[1]=="false"){return false}else{return true}},reset:function(){var A=new Date();A.setFullYear(A.getFullYear()-1);document.cookie=this.sCookieId+"=true;expires="+A.toGMTString()}},disable:function(){this.storage.set(false)},enable:function(){this.storage.set(true)},test:function(){return this.storage.get()}};if(sIFR.preferenceManager.test()==false){sIFR.bIsDisabled=true;sIFR.removeDecoyClasses()}sIFR.rollback=function(){function A(C){named.extract(arguments,{sSelector:function(D){C=D}});if(C==null){C=""}else{C+=">"}sIFR.removeDecoyClasses();sIFR.bHideBrowserText=false;if(B(C+"embed")==false){B(C+"object")}}function B(I){var E,C,K,H,L,F;var J=parseSelector(I);var G=J.length-1;var D=false;while(G>=0){E=J[G];J.length--;C=E.parentNode;if(E.getAttribute("sifr")=="true"){F=0;while(F<C.childNodes.length){E=C.childNodes[F];if(E.className=="sIFR-alternate"){K=E;F++;continue}C.removeChild(E)}if(K!=null){H=K.firstChild;while(H!=null){L=H.nextSibling;C.appendChild(K.removeChild(H));H=L}C.removeChild(K)}if(!sIFR.UA.bIsXML&&sIFR.UA.bUseInnerHTMLHack){C.innerHTML+=""}C.className=C.className.replace(/\bsIFR\-replaced\b/,"");D=true}G--}return D}return A}()}function SecoyaSIFR(){lightCore.registerInit(this);this.selectors=new Array();this.fonts=new Array();this.initialized=false;this.initialize=function(){if(typeof sIFR=="function"&&!sIFR.UA.bIsIEMac&&(!sIFR.UA.bIsWebKit||sIFR.UA.nWebKitVersion>=100)){sIFR.setup();this.run()}else{for(var B=0;B<this.selectors.length;B++){var C=parseSelector(this.selectors[B],document);for(var A=0;A<C.length;A++){C[A].style.visibility=""}}}this.initialized=true};this.run=function(){for(var A=0;A<this.selectors.length;A++){this.replace(this.selectors[A],this.fonts[A])}};this.addReplacement=function(A,B){if(this.initialized){this.replace(A,B)}if(!this.selectors.inArray(A)){this.selectors.push(A);this.fonts.push(B)}};this.replace=function(A,B){sIFR.replaceElement(A,named({sFlashSrc:"/"+templateFolder+"fonts/"+B,sWmode:"transparent"}))};this.clearReplacements=function(){this.selectors=new Array();this.fonts=new Array()};this.reset=function(A){sIFR.rollback(A)}}var sSIFR=new SecoyaSIFR();function secoyaToolTip(){lightCore.registerInit(this)}secoyaToolTip.prototype={className:"secoyaToolTip v2.0",offsetX:12,offsetY:8,followMouse:false,visible:false,hideDelay:1000,showTimeout:null,hideTimeout:null,frozen:false,mouseX:0,mouseY:0,domElement:document.createElement("div"),initialize:function(){this.domElement.id="tooltip";this.domElement.className="secoyaToolTip backEnd";this.domElement.style.left="-99999px";this.domElement.style.top="-99999px";if(core){core.addMoveListener(this);core.addMouseDownListener(this)}else{lightCore.addEvent(document,"mousemove",this.mouseMove);lightCore.addEvent(document,"mousedown",this.reportMouseDown)}document.body.appendChild(this.domElement)},mouseMove:function(A){stt.reportMoveEvent(A.clientX,A.clientY)},positionElement:function(A,E){A+=this.offsetX;E+=this.offsetY;var B=this.domElement.offsetWidth,D=this.domElement.offsetHeight,C=this.clientSize();if(A+B>C.x){A=C.x-B}if(E+D>C.y){E=C.y-D}this.domElement.style.left=A+"px";this.domElement.style.top=E+"px";this.domElement.style.zIndex=lightCore.getZIndex()+10000},clientSize:function(){return{x:document.documentElement.clientWidth,y:document.documentElement.clientHeight}},reportMoveEvent:function(A,B){this.mouseX=A;this.mouseY=B;if(this.visible&&this.followMouse){this.positionElement(A,B)}},reportMouseDown:function(B,A){stt.forceHide(B,A)},forceHide:function(C,A){var B=A;if(this.frozen){return false}while(B&&B!=this.domElement){B=B.parentNode}if(B){return }var D=this.hideDelay;this.hideDelay=0;this.hide();this.hideDelay=D},replaceTitles:function(F,A){var E=document.getElementById(F);if(E){E=E.getElementsByTagName("*");var D=null,C=null;for(var B=0;B<E.length;B++){C=E[B];D=C.getAttribute("title");if(D){C.removeAttribute("title");C.setAttribute("oldtitle",D);C.onmouseover=new Function("stt.showText('"+D+"',true,"+A+",true)");C.onmouseout=new Function("stt.hide()")}}}},rollbackTitles:function(E){var D=document.getElementById(E);if(D){D=D.getElementsByTagName("*");var C=null,B=null;for(var A=0;A<D.length;A++){B=D[A];C=B.getAttribute("oldtitle");if(C){B.removeAttribute("oldtitle");B.setAttribute("title",C);B.onmouseover=null;B.onmouseout=null}}}},freeze:function(){this.frozen=true},unfreeze:function(){this.frozen=false},checkDeactivate:function(){},showObject:function(B,C,A){if(this.frozen){return false}this.followMouse=C;while(this.domElement.lastChild){this.domElement.removeChild(this.domElement.lastChild)}this.domElement.appendChild(B);if(!this.visible){this.showTimeout=setTimeout("stt.showDelayed()",A)}clearTimeout(this.hideTimeout)},showText:function(D,B,A,C){if(this.frozen){return false}if(C){this.domElement.className="secoyaToolTip"}else{this.domElement.className="secoyaToolTip backEnd"}var E=document.createElement("div");E.innerHTML=D;this.showObject(E,B,A)},showDelayed:function(){this.visible=true;this.positionElement(this.mouseX,this.mouseY);var A=this.domElement.getElementsByTagName("button");if(A.length){A[0].focus()}},hide:function(){clearTimeout(this.showTimeout);clearTimeout(this.hideTimeout);this.hideTimeout=setTimeout("stt.hideDelayed()",this.hideDelay)},hideDelayed:function(){this.visible=false;this.domElement.style.left="-99999px";this.domElement.style.top="-99999px"}};var stt=new secoyaToolTip();var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(C){var A="";var J,H,F,I,G,E,D;var B=0;C=Base64._utf8_encode(C);while(B<C.length){J=C.charCodeAt(B++);H=C.charCodeAt(B++);F=C.charCodeAt(B++);I=J>>2;G=((J&3)<<4)|(H>>4);E=((H&15)<<2)|(F>>6);D=F&63;if(isNaN(H)){E=D=64}else{if(isNaN(F)){D=64}}A=A+this._keyStr.charAt(I)+this._keyStr.charAt(G)+this._keyStr.charAt(E)+this._keyStr.charAt(D)}return A},decode:function(C){var A="";var J,H,F;var I,G,E,D;var B=0;C=C.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(B<C.length){I=this._keyStr.indexOf(C.charAt(B++));G=this._keyStr.indexOf(C.charAt(B++));E=this._keyStr.indexOf(C.charAt(B++));D=this._keyStr.indexOf(C.charAt(B++));J=(I<<2)|(G>>4);H=((G&15)<<4)|(E>>2);F=((E&3)<<6)|D;A=A+String.fromCharCode(J);if(E!=64){A=A+String.fromCharCode(H)}if(D!=64){A=A+String.fromCharCode(F)}}A=Base64._utf8_decode(A);return A},_utf8_encode:function(B){B=B.replace(/\r\n/g,"\n");var A="";for(var D=0;D<B.length;D++){var C=B.charCodeAt(D);if(C<128){A+=String.fromCharCode(C)}else{if((C>127)&&(C<2048)){A+=String.fromCharCode((C>>6)|192);A+=String.fromCharCode((C&63)|128)}else{A+=String.fromCharCode((C>>12)|224);A+=String.fromCharCode(((C>>6)&63)|128);A+=String.fromCharCode((C&63)|128)}}}return A},_utf8_decode:function(A){var B="";var C=0;var D=c1=c2=0;while(C<A.length){D=A.charCodeAt(C);if(D<128){B+=String.fromCharCode(D);C++}else{if((D>191)&&(D<224)){c2=A.charCodeAt(C+1);B+=String.fromCharCode(((D&31)<<6)|(c2&63));C+=2}else{c2=A.charCodeAt(C+1);c3=A.charCodeAt(C+2);B+=String.fromCharCode(((D&15)<<12)|((c2&63)<<6)|(c3&63));C+=3}}}return B}};function secoyaColumn(A,B,D,C){this.ownerTable=A;this.domTH=B;this.domCOL=D;this.contentType=this.domCOL.getAttribute("type");if(!this.contentType){this.contentType="s"}this.columnIndex=C;this.width=Math.floor(this.ownerTable.getWidth()/this.domCOL.parentNode.getElementsByTagName("col").length);this.width=parseInt(this.domCOL.style.width);this.percentWidth=1*this.width/this.ownerTable.getWidth();this.domTH.style.width=this.width+"px";this.domCOL.style.width=this.width+"px";this.domTH.onclick=new Function("sg.sort('"+this.ownerTable.id+"',"+this.columnIndex+")");if(core&&lightCore.isInFixed(this.ownerTable.table)){if(this.domTH.parentNode.lastChild!=this.domTH){this.domTH.onmousedown=new Function("sg.startResize('"+this.ownerTable.id+"',"+this.columnIndex+")");this.domTH.onmousemove=new Function("sg.mouseOverColumn('"+this.ownerTable.id+"',"+this.columnIndex+")")}else{this.domTH.style.cursor="pointer"}}}secoyaColumn.prototype={selected:false,posX:0,offsetX:0,nextColumn:null,minWidth:16,select:function(){this.selected=true;this.domCOL.className="selected";this.domTH.className=this.ownerTable.reverseSort?"sort_desc":"sort_asc"},deselect:function(){this.selected=false;this.domCOL.className="";this.domTH.className=""},setWidth:function(A){if(A<this.minWidth){A=this.minWidth}this.width=A;this.domCOL.style.width=A+"px";this.domTH.style.width=A+"px";this.ownerTable.repaint()},updateWidth:function(C,B){if(this.nextColumn){var A=Math.round(this.percentWidth*C);this.setWidth(A);return B-A}else{this.setWidth(B)}return 0},reportMoveEvent:function(A,F){var D=this.width;var C=this.nextColumn.width;var B=A-this.posX+this.offsetX;var E=D-B;if(B>this.minWidth&&this.nextColumn.width+E>this.minWidth){this.setWidth(B);this.nextColumn.setWidth(this.nextColumn.width+E)}lightCore.clearSelection()},startResize:function(){this.posX=core.posXY(this.domTH).x;this.offsetX=this.posX+this.width-core.mX;core.addMoveListener(this);core.addMouseUpListener(this)},reportMouseUp:function(){core.removeMoveListener(this);sg.endResize();this.finishResizing(this.ownerTable.getWidth())},finishResizing:function(A){this.percentWidth=1*this.width/this.ownerTable.table.offsetWidth}};function secoyaCell(B,D,A,C){this.ownerRow=B;this.domElement=D;this.id=this.domElement.id;this.cellIndex=A;if(core){this.domElement.onclick=new Function("sg.select('"+this.ownerRow.ownerTable.id+"','"+this.ownerRow.id+"',"+this.cellIndex+")")}this.editable=D.getAttribute("mode");this.type=this.domElement.getAttribute("type");if(!this.type){this.type=C}this.value=D.getAttribute("value");if(!this.value){this.value=D.innerHTML.stripCustomTags()}if(this.value){if(this.type=="s"){this.value=this.value.toLowerCase()}else{if(this.type=="i"){this.value=parseInt(this.value)}else{if(this.type=="f"){this.value=parseFloat(this.value)}}}}}secoyaCell.prototype={compareTo:function(A){if(this.value==A.value){return 0}else{return this.value<A.value?-1:1}},edit:function(){if(this.editable){ms.invokeMethod("m-12","s-fileBrowser","editFileName",this.id)}}};function secoyaRow(A,D){this.ownerTable=A;this.domElement=D;this.id=this.domElement.id;this.cells=new Array();var B=this.domElement.getElementsByTagName("td");for(var C=0;C<B.length;C++){this.cells.push(new secoyaCell(this,B[C],C,this.ownerTable.columns[C].contentType))}}secoyaRow.prototype={selected:false,select:function(){this.selected=true;this.domElement.className="selected"},deselect:function(){this.selected=false;this.domElement.className=""},editCell:function(A){this.cells[A].edit()},repaint:function(){var B=this.domElement.parentNode;var A=this.domElement.nextSibling;B.removeChild(this.domElement);B.insertBefore(this.domElement,A)}};function secoyaGrid(A){this.id=A}secoyaGrid.prototype={className:"secoyaGrid v1.0",table:null,frame:null,columns:new Array(),rows:new Object(),rowOrder:new Array(),selectedColumn:null,hoverColumn:null,reverseSort:false,selectedRow:null,selectedRows:new Object(),thead:null,tbody:null,initialize:function(){this.table=document.getElementById(this.id);if(this.table.tagName.toUpperCase()!="TABLE"){var G=this.table.getElementsByTagName("table");if(G.length){this.table=G[0]}else{this.table=null}}this.columns=new Array();this.rows=new Object();this.rowOrder=new Array();this.frame=null;if(this.table){this.frame=this.table;do{this.frame=this.frame.parentNode}while(this.frame&&this.frame.className!="secoyaFrame");if(this.frame){this.frame=this.frame.parentNode}this.thead=this.table.getElementsByTagName("thead")[0];var B=this.table.getElementsByTagName("th");var D=this.table.getElementsByTagName("col");var F=null;for(var E=0;E<B.length;E++){var C=new secoyaColumn(this,B[E],D[E],E);this.columns.push(C);if(F){F.nextColumn=C}F=C}this.tbody=this.table.getElementsByTagName("tbody")[0];var I=this.tbody.getElementsByTagName("tr");for(var E=0;E<I.length;E++){var A=I[E].id;var H=new secoyaRow(this,I[E]);this.rows[A]=H;this.rowOrder.push(H)}}},getWidth:function(){if(this.table&&this.table.parentNode){return this.table.parentNode.clientWidth}return 0},getRow:function(A){if(this.rows[A]){return this.rows[A]}else{return null}},setRowSelected:function(A){this.selectedRows[A.id]=A;A.select()},setRowDeselected:function(A){if(this.selectedRows[A.id]){delete this.selectedRows[A.id]}A.deselect()},selectRange:function(F){var E=0;if(this.selectedRow){E=Math.max(this.rowOrder.indexOf(this.selectedRow),0)}var B=Math.max(this.rowOrder.indexOf(F),0);var D=Math.min(E,B),A=Math.max(E,B);for(var C=D;C<=A;C++){this.setRowSelected(this.rowOrder[C])}},selectCell:function(C,A){var B=null;if(B=this.getRow(C)){if(!editor.currentEdit){lightCore.clearSelection()}if(lightCore.ctrlHold(core.event)&&false){this.selectedRow=B;if(B.selected){this.setRowDeselected(B)}else{this.setRowSelected(B)}}else{this.deselectRows();if(lightCore.shiftHold(core.event)&&false){this.selectRange(B)}else{if(this.selectedRow==B&&B.cells[A].editable){B.cells[A].edit()}this.selectedRow=B}this.setRowSelected(B)}}},deselectRows:function(){for(var A in this.selectedRows){this.selectedRows[A].deselect();delete this.selectedRows[A]}},sort:function(C){this.rowOrder.sort(function(E,D){var G=E.cells[C];var F=D.cells[C];if(G.type=="."){return -1}else{if(F.type=="."){return 1}else{return G.compareTo(F)}}});this.reverseSort=this.selectedColumn==this.columns[C]&&!this.reverseSort;var A=this.rowOrder[0].cells[C].type=="."?1:0;if(this.reverseSort){for(var B=this.rowOrder.length-1;B>=A;B--){this.tbody.appendChild(this.rowOrder[B].domElement)}}else{for(var B=A;B<this.rowOrder.length;B++){this.tbody.appendChild(this.rowOrder[B].domElement)}}if(this.selectedColumn){this.selectedColumn.deselect()}this.columns[C].select();this.selectedColumn=this.columns[C]},resizeColumn:function(B){this.hoverColumn=this.columns[B];var C=core.posXY(this.hoverColumn.domTH);var A=C.x+this.hoverColumn.width;if(core.mX<A&&core.mX>A-10){this.hoverColumn.domTH.style.cursor="e-resize";return true}else{this.hoverColumn.domTH.style.cursor="pointer";return false}},startResize:function(A){this.columns[A].startResize(this.columns[A+1])},resize:function(A){this.columns[A].resize()},editCell:function(B,A){this.rows[B].editCell(A)},resizeGrid:function(){var B=this.getWidth();var C=B;for(var A=0;A<this.columns.length;A++){C=this.columns[A].updateWidth(B,C)}},finishResizing:function(){var B=this.getWidth();for(var A=0;A<this.columns.length;A++){this.columns[A].finishResizing(B)}},repaint:function(){for(var A in this.rows){this.rows[A].repaint();break}}};function secoyaGrids(){if(core){lightCore.registerInit(this)}}secoyaGrids.prototype={grids:new Object(),overTable:null,hoverColumn:0,resizing:false,canResize:false,resizingGrid:null,initialize:function(){core.addMouseDownListener(this)},addGrid:function(B){var A=new secoyaGrid(B);A.initialize();if(A){this.grids[B]=A}return !!A},fakeClick:function(A){var C=document.getElementById(A);if(C){C=C.firstChild;if(C){var D=["onmousedown","onmouseup","onclick"];for(var B=0;B<D.length;B++){if(C[D[B]]){C[D[B]]()}}}}},removeGrid:function(A){if(this.grids[A]){delete this.grids[A];return true}return false},select:function(B,C,A){this.grids[B].selectCell(C,A)},sort:function(B,A){if(!this.canResize){this.grids[B].sort(A)}},mouseOverColumn:function(B,A){if(!this.resizing){this.canResize=sg.grids[B].resizeColumn(A);sg.overTable=B;sg.hoverColumn=A}},startResize:function(){if(this.canResize){this.resizing=true;this.grids[this.overTable].startResize(this.hoverColumn)}},endResize:function(){if(this.canResize){this.resizing=false}},editCell:function(B,C,A){this.grids[B].editCell(C,A)},reportMouseDown:function(){core.addMoveListener(this);core.addMouseUpListener(this)},reportMoveEvent:function(){if(sfh.resizingFrame){if(!this.resizingGrid){var B=sfh.resizingFrame.domElm;var C=false;for(var A in this.grids){if(C){break}if(lightCore.isElementContainedIn(this.grids[A].table,B)){C=this.grids[A]}}if(C){this.resizingGrid=C}else{this.reportMouseUp();return }}this.resizingGrid.resizeGrid()}else{this.reportMouseUp()}},reportMouseUp:function(){if(this.resizingGrid){this.resizingGrid.finishResizing()}core.removeMoveListener(this);core.removeMouseUpListener(this);this.resizingGrid=null}};var sg=new secoyaGrids();function secoyaUploader(){this.className="secoyaUploader v1.0"}secoyaUploader.prototype={uploaderIsOpen:false,uploadingFiles:new Object(),tableParent:null,uploadTable:null,tableBody:null,swfUpload:null,progressDivId:null,completeCallback:null,canUpload:function(){return !this.uploaderIsOpen},flashLoaded:function(A){this.swfUpload.flashLoaded(A)},initialize:function(G,E,A,F,D,C,B){if(this.uploaderIsOpen){return false}else{this.uploaderIsOpen=true}this.completeCallback=C;this.progressDivId=G;this.swfUpload=new SWFUpload({upload_script:lightCore.getHost()+"ajax.php?PHPSESSID="+E+"&fileBrowser=invoke&module="+B,target:"SWFUploadTarget",upload_cookies:["PHPSESSID"],flash_path:JSCore+"/Modules/FileBrowser/upload.swf?dumb="+(new Date).getTime()+"",allowed_filesize:F,allowed_filetypes:D,flash_color:"#FFFFFF",allowed_filetypes_description:A,browse_link_innerhtml:"Browse",upload_link_innerhtml:"Upload queue",browse_link_class:"swfuploadbtn browsebtn",upload_link_class:"swfuploadbtn uploadbtn",flash_loaded_callback:"su.flashLoaded",upload_file_queued_callback:"su.fileQueued",upload_file_start_callback:"su.uploadFileStart",upload_progress_callback:"su.uploadProgress",upload_file_complete_callback:"su.uploadFileComplete",upload_file_cancel_callback:"su.uploadFileCancelled",upload_queue_complete_callback:"su.uploadQueueComplete",upload_error_callback:"su.uploadError",upload_cancel_callback:"su.uploadCancel",upload_dialog_cancel_callback:"su.dialogCancel",auto_upload:true})},createTable:function(){this.uploadingFiles=new Object();this.uploadTable=document.createElement("table");this.uploadTable.className="uploadTable";var A=document.createElement("colgroup");var G={Name:"Navn",Size:"St&oslash;rrelse",Status:"Status"};for(var C in G){var B=document.createElement("col");B.className="col"+C;A.appendChild(B)}this.uploadTable.appendChild(A);var F=document.createElement("thead");var E=document.createElement("tr");for(var C in G){var D=document.createElement("th");D.innerHTML=G[C];E.appendChild(D)}F.appendChild(E);this.uploadTable.appendChild(F);this.tableParent=document.getElementById(this.progressDivId);this.tableParent.innerHTML="";this.tableParent.appendChild(this.uploadTable);this.tableBody=document.createElement("tbody");this.uploadTable.appendChild(this.tableBody)},fileQueued:function(C,A){if(!this.uploadTable){this.createTable()}this.uploadingFiles[C.id]=C;var D=document.createElement("tr");D.id="file"+C.id;var E=document.createElement("td");E.appendChild(document.createTextNode(C.name));D.appendChild(E);E=document.createElement("td");E.appendChild(document.createTextNode(Math.max(Math.floor(C.size/1024),1)+" KB"));D.appendChild(E);var B=document.createElement("div");B.className="progress";B.style.width="0";B.appendChild(document.createTextNode("0%"));E=document.createElement("td");E.appendChild(B);D.appendChild(E);this.tableBody.appendChild(D)},uploadFileCancelled:function(B,A){},getFileRow:function(A){return document.getElementById("file"+A.id)},uploadFileComplete:function(B){var C=this.getFileRow(B);C.className="";var A=C.lastChild.firstChild;A.style.width="auto";A.innerHTML="100%"},cancelQueue:function(){this.uploaderIsOpen=false},uploadFileStart:function(C,B,A){this.getFileRow(C).className="active"},uploadProgress:function(B,C){var A=this.getFileRow(B).lastChild.firstChild;A.style.width=(C/B.size)*100+"px";A.innerHTML=Math.round((C/B.size)*100)+"%"},uploadQueueComplete:function(A){this.uploaderIsOpen=false;if(this.uploadTable.parentNode){this.uploadTable.parentNode.removeChild(this.uploadTable)}this.uploadTable=null;if(this.completeCallback){this.completeCallback()}this.completeCallback=null},uploadError:function(B,A,C){var C;switch(B){case -50:C="Filen du pr&oslash;ver at uploade fylder for meget.\n\nFilen fylder "+Math.round((A.size)/1024,0)+" KB men m&aring; kun fylde "+mmSWFUpload.settings.allowed_filesize+" KB. ("+Math.round(mmSWFUpload.settings.allowed_filesize/1024,1)+" MB)";break;default:C="Der opstod en fejl: "+B+" "+A+" "+C;break}if(core){core.alert(C.replace("\n","<br />"))}else{alert(C.decodeEntities())}},uploadCancel:function(){this.uploaderIsOpen=false},dialogCancel:function(){this.uploaderIsOpen=false}};var su=new secoyaUploader();function SWFUpload(A){try{document.execCommand("BackgroundImageCache",false,true)}catch(B){}this.movieName="SWFUpload_"+SWFUpload.movieCount++;this.init(A);this.loadFlash();if(this.debug){this.debugSettings()}}SWFUpload.movieCount=0;SWFUpload.handleErrors=function(B,A,C){switch(B){case -10:alert("Error Code: HTTP Error, File name: "+A.name+", Message: "+C);break;case -20:alert("Error Code: No upload script, File name: "+A.name+", Message: "+C);break;case -30:alert("Error Code: IO Error, File name: "+A.name+", Message: "+C);break;case -40:alert("Error Code: Security Error, File name: "+A.name+", Message: "+C);break;case -50:alert("Error Code: Filesize exceeds limit, File name: "+A.name+", File size: "+A.size+", Message: "+C);break}};SWFUpload.prototype.init=function(A){this.settings=[];this.addSetting("debug",A.debug,false);this.addSetting("target",A.target,"");this.addSetting("create_ui",A.create_ui,false);this.addSetting("browse_link_class",A.browse_link_class,"SWFBrowseLink");this.addSetting("upload_link_class",A.upload_link_class,"SWFUploadLink");this.addSetting("browse_link_innerhtml",A.browse_link_innerhtml,"<span>Browse...</span>");this.addSetting("upload_link_innerhtml",A.upload_link_innerhtml,"<span>Upload</span>");this.addSetting("flash_loaded_callback",A.flash_loaded_callback,"SWFUpload.flashLoaded");this.addSetting("upload_file_queued_callback",A.upload_file_queued_callback,"");this.addSetting("upload_file_start_callback",A.upload_file_start_callback,"");this.addSetting("upload_file_complete_callback",A.upload_file_complete_callback,"");this.addSetting("upload_queue_complete_callback",A.upload_queue_complete_callback,"");this.addSetting("upload_progress_callback",A.upload_progress_callback,"");this.addSetting("upload_dialog_cancel_callback",A.upload_dialog_cancel_callback,"");this.addSetting("upload_file_error_callback",A.upload_file_error_callback,"SWFUpload.handleErrors");this.addSetting("upload_file_cancel_callback",A.upload_file_cancel_callback,"");this.addSetting("upload_queue_cancel_callback",A.upload_queue_cancel_callback,"");this.addSetting("upload_script",A.upload_script?encodeURIComponent(A.upload_script):"");this.addSetting("auto_upload",A.auto_upload,false);this.addSetting("allowed_filetypes",A.allowed_filetypes,"*.*");this.addSetting("allowed_filetypes_description",A.allowed_filetypes_description,"All files");this.addSetting("allowed_filesize",A.allowed_filesize,1024);this.addSetting("flash_path",A.flash_path,"jscripts/SWFUpload/SWFUpload.swf");this.addSetting("flash_target",A.flash_target,"");this.addSetting("flash_width",A.flash_width,"1px");this.addSetting("flash_height",A.flash_height,"1px");this.addSetting("flash_color",A.flash_color,"#000000");this.debug=this.getSetting("debug")};SWFUpload.prototype.loadFlash=function(){var B="";var E=new stringBuilder();if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){E.append('<embed type="application/x-shockwave-flash" src="'+this.getSetting("flash_path")+'" width="'+this.getSetting("flash_width")+'" height="'+this.getSetting("flash_height")+'"');E.append(' id="'+this.movieName+'" name="'+this.movieName+'" ');E.append('bgcolor="'+this.getSetting.flash_color+'" quality="high" wmode="transparent" menu="false" flashvars="');E.append(this._getFlashVars());E.append('" />')}else{E.append('<object id="'+this.movieName+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getSetting("flash_width")+'" height="'+this.getSetting("flash_height")+'">');E.append('<param name="movie" value="'+this.getSetting("flash_path")+'" />');E.append('<param name="bgcolor" value="#000000" />');E.append('<param name="quality" value="high" />');E.append('<param name="wmode" value="transparent" />');E.append('<param name="menu" value="false" />');E.append('<param name="flashvars" value="'+this._getFlashVars()+'" />');E.append("</object>")}var A=document.createElement("div");A.style.width="0px";A.style.height="0px";var C=lightCore.browser.getName()=="IE"&&parseFloat(lightCore.browser.getVersion())<7;A.style.position=C?"absolute":"fixed";A.style.top="0px";A.style.left="0px";A.style.zIndex=2147483647;var D=document.getElementsByTagName("body")[0];if(typeof (D)=="undefined"||D==null){return false}var B=E.toString();D.appendChild(A);A.innerHTML=B;this.movieElement=document.getElementById(this.movieName)};SWFUpload.prototype._getFlashVars=function(){var A=new stringBuilder();A.append("uploadScript="+this.getSetting("upload_script"));A.append("&amp;allowedFiletypesDescription="+this.getSetting("allowed_filetypes_description"));A.append("&amp;flashLoadedCallback="+this.getSetting("flash_loaded_callback"));A.append("&amp;uploadFileQueuedCallback="+this.getSetting("upload_file_queued_callback"));A.append("&amp;uploadFileStartCallback="+this.getSetting("upload_file_start_callback"));A.append("&amp;uploadProgressCallback="+this.getSetting("upload_progress_callback"));A.append("&amp;uploadFileCompleteCallback="+this.getSetting("upload_file_complete_callback"));A.append("&amp;uploadQueueCompleteCallback="+this.getSetting("upload_queue_complete_callback"));A.append("&amp;uploadDialogCancelCallback="+this.getSetting("upload_dialog_cancel_callback"));A.append("&amp;uploadFileErrorCallback="+this.getSetting("upload_file_error_callback"));A.append("&amp;uploadFileCancelCallback="+this.getSetting("upload_file_cancel_callback"));A.append("&amp;uploadQueueCompleteCallback="+this.getSetting("upload_queue_complete_callback"));A.append("&amp;autoUpload="+this.getSetting("auto_upload"));A.append("&amp;allowedFiletypes="+this.getSetting("allowed_filetypes"));A.append("&amp;maximumFilesize="+this.getSetting("allowed_filesize"));return A.toString()};SWFUpload.prototype.flashLoaded=function(A){this.loadUI();this.browse();if(this.debug){SWFUpload.debug("Flash called home and is ready.")}};SWFUpload.prototype.loadUI=function(){if(this.getSetting("target")!=""&&this.getSetting("target")!="fileinputs"){var A=this;var C=document.getElementById(this.getSetting("target"));var B=document.createElement("a");B.className=this.getSetting("browse_link_class");B.id=this.movieName+"BrowseBtn";B.href="javascript:void(0);";B.onclick=function(){A.browse();return false};B.innerHTML=this.getSetting("browse_link_innerhtml");C.innerHTML="";C.appendChild(B);if(this.getSetting("auto_upload")==false){var D=document.createElement("a");D.className=this.getSetting("upload_link_class");D.id=this.movieName+"UploadBtn";D.href="#";D.onclick=function(){A.upload();return false};D.innerHTML=this.getSetting("upload_link_innerhtml");C.appendChild(D)}}};SWFUpload.debug=function(A){if(window.console){console.log(A)}else{alert(A)}};SWFUpload.prototype.addSetting=function(B,C,A){return this.settings[B]=(typeof (C)=="undefined"||C==null)?A:C};SWFUpload.prototype.getSetting=function(A){return(typeof (this.settings[A])=="undefined")?null:this.settings[A]};SWFUpload.prototype.browse=function(){this.movieElement.browse()};SWFUpload.prototype.upload=function(){this.movieElement.upload()};SWFUpload.prototype.cancelFile=function(A){this.movieElement.cancelFile(A)};SWFUpload.prototype.cancelQueue=function(){this.movieElement.cancelQueue()};SWFUpload.prototype.debugSettings=function(){var C=new stringBuilder();C.append("----- DEBUG SETTINGS START ----\n");C.append("ID: "+this.movieElement.id+"\n");for(var B in this.settings){C.append(B+": "+this.settings[B]+"\n")}C.append("----- DEBUG SETTINGS END ----\n");C.append("\n");var A=C.toString();SWFUpload.debug(A)};function stringBuilder(A){this._strings=new Array;this._join=(typeof A=="undefined")?"":A;stringBuilder.prototype.append=function(B){this._strings.push(B)};stringBuilder.prototype.toString=function(){return this._strings.join(this._join)}};function secoyaFileSharer(){this.className="secoyaFileSharer v0.8"}secoyaFileSharer.prototype={uploadFile:function(E,C,A,D,B){if(su.canUpload()){su.initialize(E,C,A,D,B,this.uploaderComplete,"m-44")}},uploaderComplete:function(){document.location=document.location},promptFolderName:function(B){var A=prompt("Angiv det &oslash;nskede navn for den ny mappe:".decodeEntities(),"Ny mappe");if(A!=null&&A!=""){document.fsActions.fsNewFolderName.value=A;document.fsActions.fsNewFolderUID.value=B;document.fsActions.submit()}},promptRenameFile:function(B,C){var A=prompt('Angiv nyt navn for mappen "'+C+'":'.decodeEntities(),C);if(A!=null&&A!=""){document.fsActions.fsRenameFileUID.value=B;document.fsActions.fsRenameFileName.value=A;document.fsActions.submit()}},promptDeleteFile:function(A,C){var B=confirm('Er du sikker p&aring;, du vil slette filen "'.decodeEntities()+C+'"?');if(B){document.fsActions.fsDeleteUID.value=A;document.fsActions.submit()}},promptDeleteDirectory:function(A,C){var B=confirm('Er du sikker p&aring;, du vil slette mappen "'.decodeEntities()+C+'"? Alle indeholdte mapper og filer vil ogs&aring; blive slettet.'.decodeEntities());if(B){document.fsActions.fsDeleteUID.value=A;document.fsActions.submit()}}};sfs=new secoyaFileSharer();