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.toggleElementById=function(B){elm=document.getElementById(B);if(elm){if(elm.style.display=="none"){elm.style.display="block"}else{elm.style.display="none"}}};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(typeof D.tagName=="undefined"||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",amp:"&",quot:'"',apos:"'",lt:"<",gt:">"}[B]})};String.prototype.camelCase=function(){return this.replace(/\-(.)/g,function(A,B){return B.toUpperCase()})};Array.prototype.removeElement=function(B){for(var A=this.length;A>=0;A--){if(this[A]==B){this.splice(A,1);return true}}return false};Array.prototype.unique=function(){var A=this;for(var C=A.length-1;C>=0;C--){for(var B=C-1;B>=0;B--){if(A[C]==A[B]){A.splice(C,1)}}}return A};String.prototype.capitalize=function(){return this.replace(/\w+/g,function(A){return A.charAt(0).toUpperCase()+A.substr(1).toLowerCase()})};String.prototype.stripCustomTags=function(A){if(A){A="("+A.join("|")+")"}else{A="[^>]+"}exp="\t*<"+A+"[^>]*>\r?\n?|</"+A+">\r?\n?";var B=new RegExp(exp,"gim");return this.replace(B,"")};String.prototype.allowCustomTags=function(A){A=A.join("|");exp="<(?!"+A+")[^/>]+/>\r?\n?|<(?![/]?"+A+")[^>]+>\r?\n?|</(?!"+A+")[^>]+>\r?\n?";var B=new RegExp(exp,"gim");return this.replace(B,"")};String.prototype.hasClassName=function(A){return(this.length>0&&(this==A||new RegExp("(^|\\s)"+A+"(\\s|$)").test(this)))};String.prototype.addClassName=function(A){if(this.hasClassName(A)){return this}else{return(this==""?A:this+" "+A)}};String.prototype.removeClassName=function(A){return this.replace(new RegExp("(^|\\s+)"+A+"(\\s+|$)")," ").trim()};String.prototype.toggleClassName=function(A){return this[this.hasClassName(A)?"removeClassName":"addClassName"](A)};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.ltrim=function(){return this.replace(/^\s+/,"")};String.prototype.rtrim=function(){return this.replace(/\s+$/,"")};String.prototype.subCount=function(B,C){var D=0,A=0;if(!C){C=0}C--;while((C=this.indexOf(B,C+1))!=-1){A++}return A};String.prototype.toColor=function(){var A=null,D,C=this;if(C.indexOf("rgb")==0){D=C.substring(4).split(/, ?/,3);A={red:parseInt(D[0]),green:parseInt(D[1]),blue:parseInt(D[2])}}else{if(C.indexOf("#")==-1){var B={maroon:"#800000",red:"#FF0000",orange:"#ffA500",yellow:"#ffff00",olive:"#808000",purple:"#800080",fuchsia:"#ff00ff",white:"#ffffff",lime:"#00ff00",green:"#008000",navy:"#000080",blue:"#0000ff",aqua:"#00ffff",teal:"#008080",black:"#000000",silver:"#c0c0c0",gray:"#808080"};if(B[C]){C=B[C]}}if(C.indexOf("#")==0){if(C.length=="4"){D="#";for(var E=1;E<C.length;E++){D+=C.charAt(E)+C.charAt(E)}C=D}A={red:parseInt("0x"+C.substring(1,3)),green:parseInt("0x"+C.substring(3,5)),blue:parseInt("0x"+C.substring(5,7))}}}return A};Date.prototype.phpFormat=function(B){var C=this,A=null;return B.replace(/./g,function(D){switch(D){case"d":A=C.getDate();return A<10?"0"+A:C.getDate();case"D":return sTran.get("day"+["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][C.getDay()]);case"j":return C.getDate();case"l":return sTran.get("day"+["Sun","Mon","Tues","Wednes","Thurs","Fri","Satur"][C.getDay()]+"day");case"N":A=C.getDay();return A==0?7:A;case"w":return C.getDay();case"F":return sTran.get("mon"+["January","February","March","April","May","June","July","August","September","October","November","December"][C.getMonth()]);case"m":A=C.getMonth()+1;return A<10?"0"+A:A;case"M":return sTran.get("mon"+["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][C.getMonth()]+"Short");case"n":return C.getMonth()+1;case"L":A=C.getFullYear();return(!(A%4)&&(A%100))||!(A%400)?1:0;case"Y":return C.getFullYear();case"y":return C.getYear();case"a":return sTran.get(C.getHours()<11?"am":"pm");case"A":return sTran.get(C.getHours()<11?"am":"pm").toUpperCase();case"g":A=C.getHours()%12;return A==0?12:A;case"G":return C.getHours();case"h":A=C.getHours()%12;if(A==0){A=12}return A<10?"0"+A:A;case"H":A=C.getHours();return A<10?"0"+A:A;case"i":A=C.getMinutes();return A<10?"0"+A:A;case"s":A=C.getSeconds();return A<10?"0"+A:A;case"r":return C.toString();case"U":return Math.floor(C.getTime()/1000);case"c":case"e":case"I":case"O":case"P":case"T":case"Z":case"u":case"B":case"z":case"S":case"W":case"t":default:return D}})};var mandatoryErrorString=sTrans.get("fieldMandatory");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=sTrans.get("someFieldInvalid").decodeEntities()+"\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 sTrans.get("mustBeChecked",{checkName:B}).decodeEntities()}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 sTrans.get("numberInvalid",{fieldName:C}).decodeEntities()}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 sTrans.get("dateInvalid",{invalidDate:B}).decodeEntities()}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 sTrans.get("emailInvalid",{invalidEmail:this.inputElement.value}).decodeEntities()}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=sTrans.get("waitingForServer");this.indicator.id="secoyaIndicator";this.indicator.className="secoyaIndicator";this.indicator.style.display="none";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.followMouse=true;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},showObject:function(B,C,A){if(this.frozen){return false}if(this.visible&&!this.followMouse&&C){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(this.visible&&!this.followMouse&&B){return false}if(C){this.domElement.className="secoyaToolTip"}else{this.domElement.className="secoyaToolTip backEnd"}var E=document.createElement("div");E.innerHTML=D;return 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(){if(this.followMouse){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,E,A,C){this.ownerRow=B;this.domElement=E;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=E.getAttribute("mode");this.type=this.domElement.getAttribute("type");if(!this.type){this.type=C}var D=E.innerHTML.stripCustomTags();E.onmouseover=function(){stt.showText(D,true,250)};E.onmouseout=function(){stt.hide()};this.value=E.getAttribute("value");if(!this.value){this.value=D}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=this.domElement.className.addClassName("selected")},deselect:function(){this.selected=false;this.domElement.className=this.domElement.className.removeClassName("selected")},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 secoyaFileSharer(){this.className="secoyaFileSharer v0.8"}secoyaFileSharer.prototype={createUploadBtn:function(D,A,C,B){su.initialize("fileDetails",A,C,D,B,this.uploaderComplete,"m-44")},uploaderComplete:function(){document.location=document.location},promptFolderName:function(B){var A=prompt(sTrans.get("sharerFoldName").decodeEntities(),sTrans.get("newFolder").decodeEntities());if(A!=null&&A!=""){document.fsActions.fsNewFolderName.value=A;document.fsActions.fsNewFolderUID.value=B;document.fsActions.submit()}},promptRenameFile:function(B,C){var A=prompt(sTrans.get("sharerChangeName",{oldFileName: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(sTrans.get("confirmDelFile",{fileName:C}).decodeEntities());if(B){document.fsActions.fsDeleteUID.value=A;document.fsActions.submit()}},promptDeleteDirectory:function(A,C){var B=confirm(sTrans.get("confirmDelDir",{folderName:C}).decodeEntities());if(B){document.fsActions.fsDeleteUID.value=A;document.fsActions.submit()}}};sfs=new secoyaFileSharer();function FileObj(){}FileObj.prototype={id:"string",index:"number",name:"string",size:"number",type:"string",creationdate:"Date",modificationdate:"Date",filestatus:"number"};function secoyaUploader(){}secoyaUploader.prototype={className:"secoyaUploader v2.0",uploadQueue:[],maxUpload:0,tableParent:null,uploadTable:null,tableBody:null,swfUpload:null,progressDivId:null,completeCallback:null,canUpload:function(){return true},swfUploadLoaded:function(){},fileDialogStart:function(){},fileQueued:function(B){if(!this.uploadTable){this.createTable()}this.uploadQueue.push(B);var C=document.createElement("tr");C.id="file"+B.id;var D=document.createElement("td");D.appendChild(document.createTextNode(B.name));C.appendChild(D);D=document.createElement("td");D.appendChild(document.createTextNode(Math.max(Math.floor(B.size/1024),1)+" KB"));C.appendChild(D);var A=document.createElement("div");A.className="progress";A.style.width="0";A.appendChild(document.createTextNode("0%"));D=document.createElement("td");D.appendChild(A);C.appendChild(D);this.tableBody.appendChild(C)},fileQueueError:function(B,G,H){var E=SWFUpload.QUEUE_ERROR,I=null,A={};switch(G){case E.FILE_EXCEEDS_SIZE_LIMIT:var C=Math.round(B.size/1024,0);var D=this.maxUpload;var F=Math.round(D/1024,1);A={sizeKB:C,maxKB:D,maxMB:F};I="uploadTooBig";break;case E.INVALID_FILETYPE:I="uploadInvalidExt";break;case E.ZERO_BYTE_FILE:I="uploadZeroByte";break;case E.QUEUE_LIMIT_EXCEEDED:default:I="uploadError";A={errorCode:G,message:H};break}A.filename=B.name;msg=sTrans.get(I,A);if(core){sStatus.add(msg,3)}else{alert(msg.replace(/<br\s*\/?>/,"\n").decodeEntities())}},fileDialogComplete:function(C,B){if(B){var A=this.getNextInQueue(true);if(A){this.swfUpload.startUpload(A.id)}}},uploadStart:function(A){this.getFileRow(A).className="active"},uploadProgress:function(C,D,B){var A=this.getFileRow(C).lastChild.firstChild;A.style.width=(D/C.size)*100+"px";A.innerHTML=Math.round((D/C.size)*100)+"%"},uploadError:function(B,C,A){var D;switch(C){case -50:D="Filen du pr&oslash;ver at uploade fylder for meget.\n\nFilen fylder "+Math.round((file.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:D="Der opstod en fejl: "+errcode+" "+file+" "+D;break}if(core){core.alert(D.replace("\n","<br />"))}else{alert(D.decodeEntities())}},uploadSuccess:function(A,B){if(B!=""){stt.showText(B,false,0)}},uploadComplete:function(B){var D=this.getFileRow(B);D.className="";var A=D.lastChild.firstChild;A.style.width="auto";A.innerHTML="100%";var C=this.getNextInQueue(true);if(C){this.swfUpload.startUpload(C.id)}else{this.uploadQueueComplete()}},debug:function(A){},getNextInQueue:function(){var A=null;if(this.uploadQueue.length){A=this.uploadQueue.shift()}return A},initialize:function(B,E,K,D,A,I,J){this.completeCallback=I;this.progressDivId=B;this.maxUpload=K;var H=document.cookie.match(/PHPSESSID=([^;]+)/);if(H){H=H[1]}else{throw new Exception("Could not load session_id")}var G=this;var C={upload_url:lightCore.getHost()+"ajax.php",file_post_name:"Filedata",post_params:{PHPSESSID:H,fileBrowser:"invoke",module:J},use_query_string:true,requeue_on_error:false,http_success:[],file_types:A.join(";"),file_types_description:E,file_size_limit:K,file_upload_limit:0,file_queue_limit:0,flash_url:"/"+JSCore+"/swfupload.swf",prevent_swf_caching:true,button_image_url:"/"+GFXCore+"/fileManager/upload_swf.png",button_width:16,button_height:16,button_text:"",button_text_style:"",button_text_top_padding:0,button_text_left_padding:0,button_action:SWFUpload.BUTTON_ACTION.SELECT_FILES,button_disabled:false,button_placeholder_id:D,button_cursor:SWFUpload.CURSOR.HAND,button_window_mode:SWFUpload.WINDOW_MODE.TRANSPARENT,debug_enabled:false,swfupload_loaded_handler:function(){G.swfUploadLoaded()},file_dialog_start_handler:function(){G.fileDialogStart()},file_queued_handler:function(L){G.fileQueued(L)},file_queue_error_handler:function(M,N,L){G.fileQueueError(M,N,L)},file_dialog_complete_handler:function(M,L){G.fileDialogComplete(M,L)},upload_start_handler:function(L){G.uploadStart(L)},upload_progress_handler:function(M,N,L){G.uploadProgress(M,N,L)},upload_error_handler:function(M,N,L){G.uploadError(M,N,L)},upload_success_handler:function(L,M){G.uploadSuccess(L,M)},upload_complete_handler:function(L){G.uploadComplete(L)},debug_handler:function(L){G.debug(L)},custom_settings:{}};try{this.swfUpload=new SWFUpload(C)}catch(F){}},createTable:function(){this.uploadQueue=[];this.uploadTable=document.createElement("table");this.uploadTable.className="uploadTable";var A=document.createElement("colgroup");var G={Name:sTrans.get("name"),Size:sTrans.get("size"),Status:sTrans.get("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.appendChild(document.createTextNode(G[C].decodeEntities()));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)},getFileRow:function(A){return document.getElementById("file"+A.id)},getDomElement:function(){return this.swfUpload.getMovieElement()},uploadQueueComplete:function(){if(this.uploadTable.parentNode){this.uploadTable.parentNode.removeChild(this.uploadTable)}this.uploadTable=null;if(this.completeCallback){this.completeCallback()}this.completeCallback=null},showSimpleUpload:function(){}};var su=new secoyaUploader();var SWFUpload;if(SWFUpload==undefined){SWFUpload=function(A){this.initSWFUpload(A)}}SWFUpload.prototype.initSWFUpload=function(B){try{this.customSettings={};this.settings=B;this.eventQueue=[];this.movieName="SWFUpload_"+SWFUpload.movieCount++;this.movieElement=null;SWFUpload.instances[this.movieName]=this;this.initSettings();this.loadFlash();this.displayDebugInfo()}catch(A){delete SWFUpload.instances[this.movieName];throw A}};SWFUpload.instances={};SWFUpload.movieCount=0;SWFUpload.version="2.2.0 Beta 2";SWFUpload.QUEUE_ERROR={QUEUE_LIMIT_EXCEEDED:-100,FILE_EXCEEDS_SIZE_LIMIT:-110,ZERO_BYTE_FILE:-120,INVALID_FILETYPE:-130};SWFUpload.UPLOAD_ERROR={HTTP_ERROR:-200,MISSING_UPLOAD_URL:-210,IO_ERROR:-220,SECURITY_ERROR:-230,UPLOAD_LIMIT_EXCEEDED:-240,UPLOAD_FAILED:-250,SPECIFIED_FILE_ID_NOT_FOUND:-260,FILE_VALIDATION_FAILED:-270,FILE_CANCELLED:-280,UPLOAD_STOPPED:-290};SWFUpload.FILE_STATUS={QUEUED:-1,IN_PROGRESS:-2,ERROR:-3,COMPLETE:-4,CANCELLED:-5};SWFUpload.BUTTON_ACTION={SELECT_FILE:-100,SELECT_FILES:-110,START_UPLOAD:-120};SWFUpload.CURSOR={ARROW:-1,HAND:-2};SWFUpload.WINDOW_MODE={WINDOW:"window",TRANSPARENT:"transparent",OPAQUE:"opaque"};SWFUpload.prototype.initSettings=function(){this.ensureDefault=function(B,A){this.settings[B]=(this.settings[B]==undefined)?A:this.settings[B]};this.ensureDefault("upload_url","");this.ensureDefault("file_post_name","Filedata");this.ensureDefault("post_params",{});this.ensureDefault("use_query_string",false);this.ensureDefault("requeue_on_error",false);this.ensureDefault("http_success",[]);this.ensureDefault("file_types","*.*");this.ensureDefault("file_types_description","All Files");this.ensureDefault("file_size_limit",0);this.ensureDefault("file_upload_limit",0);this.ensureDefault("file_queue_limit",0);this.ensureDefault("flash_url","swfupload.swf");this.ensureDefault("prevent_swf_caching",true);this.ensureDefault("button_image_url","");this.ensureDefault("button_width",1);this.ensureDefault("button_height",1);this.ensureDefault("button_text","");this.ensureDefault("button_text_style","color: #000000; font-size: 16pt;");this.ensureDefault("button_text_top_padding",0);this.ensureDefault("button_text_left_padding",0);this.ensureDefault("button_action",SWFUpload.BUTTON_ACTION.SELECT_FILES);this.ensureDefault("button_disabled",false);this.ensureDefault("button_placeholder_id","");this.ensureDefault("button_cursor",SWFUpload.CURSOR.ARROW);this.ensureDefault("button_window_mode",SWFUpload.WINDOW_MODE.TRANSPARENT);this.ensureDefault("debug",false);this.settings.debug_enabled=this.settings.debug;this.settings.return_upload_start_handler=this.returnUploadStart;this.ensureDefault("swfupload_loaded_handler",null);this.ensureDefault("file_dialog_start_handler",null);this.ensureDefault("file_queued_handler",null);this.ensureDefault("file_queue_error_handler",null);this.ensureDefault("file_dialog_complete_handler",null);this.ensureDefault("upload_start_handler",null);this.ensureDefault("upload_progress_handler",null);this.ensureDefault("upload_error_handler",null);this.ensureDefault("upload_success_handler",null);this.ensureDefault("upload_complete_handler",null);this.ensureDefault("debug_handler",this.debugMessage);this.ensureDefault("custom_settings",{});this.customSettings=this.settings.custom_settings;if(this.settings.prevent_swf_caching){this.settings.flash_url=this.settings.flash_url+"?swfuploadrnd="+(new Date()).getTime()}delete this.ensureDefault};SWFUpload.prototype.loadFlash=function(){if(this.settings.button_placeholder_id!==""){this.replaceWithFlash()}else{this.appendFlash()}};SWFUpload.prototype.appendFlash=function(){var B,A;if(document.getElementById(this.movieName)!==null){throw"ID "+this.movieName+" is already in use. The Flash Object could not be added"}B=document.getElementsByTagName("body")[0];if(B==undefined){throw"Could not find the 'body' element."}A=document.createElement("div");A.style.width="20px";A.style.height="20px";A.style.overflow="hidden";A.style.position="fixed";A.style.top=0;A.style.left=0;A.style.zIndex=9999999;B.appendChild(A);A.innerHTML=this.getFlashHTML()};SWFUpload.prototype.replaceWithFlash=function(){var A,B;if(document.getElementById(this.movieName)!==null){throw"ID "+this.movieName+" is already in use. The Flash Object could not be added"}A=document.getElementById(this.settings.button_placeholder_id);if(!A){throw"Could not find the placeholder element."}B=document.createElement("div");B.innerHTML=this.getFlashHTML();A.parentNode.replaceChild(B.firstChild,A)};SWFUpload.prototype.getFlashHTML=function(){return['<object id="',this.movieName,'" type="application/x-shockwave-flash" data="',this.settings.flash_url,'" style="width:',this.settings.button_width,"px;height:",this.settings.button_height,"px;background:url(",this.settings.button_image_url,');" class="swfupload">','<param name="wmode" value="',this.settings.button_window_mode,'" />','<param name="movie" value="',this.settings.flash_url,'" />','<param name="quality" value="high" />','<param name="menu" value="false" />','<param name="allowScriptAccess" value="always" />','<param name="flashvars" value="'+this.getFlashVars()+'" />',"</object>"].join("")};SWFUpload.prototype.getFlashVars=function(){var B=this.buildParamString();var A=this.settings.http_success.join(",");return["movieName=",encodeURIComponent(this.movieName),"&amp;uploadURL=",encodeURIComponent(this.settings.upload_url),"&amp;useQueryString=",encodeURIComponent(this.settings.use_query_string),"&amp;requeueOnError=",encodeURIComponent(this.settings.requeue_on_error),"&amp;httpSuccess=",encodeURIComponent(A),"&amp;params=",encodeURIComponent(B),"&amp;filePostName=",encodeURIComponent(this.settings.file_post_name),"&amp;fileTypes=",encodeURIComponent(this.settings.file_types),"&amp;fileTypesDescription=",encodeURIComponent(this.settings.file_types_description),"&amp;fileSizeLimit=",encodeURIComponent(this.settings.file_size_limit),"&amp;fileUploadLimit=",encodeURIComponent(this.settings.file_upload_limit),"&amp;fileQueueLimit=",encodeURIComponent(this.settings.file_queue_limit),"&amp;debugEnabled=",encodeURIComponent(this.settings.debug_enabled),"&amp;buttonImageURL=",encodeURIComponent(this.settings.button_image_url),"&amp;buttonWidth=",encodeURIComponent(this.settings.button_width),"&amp;buttonHeight=",encodeURIComponent(this.settings.button_height),"&amp;buttonText=",encodeURIComponent(this.settings.button_text),"&amp;buttonTextTopPadding=",encodeURIComponent(this.settings.button_text_top_padding),"&amp;buttonTextLeftPadding=",encodeURIComponent(this.settings.button_text_left_padding),"&amp;buttonTextStyle=",encodeURIComponent(this.settings.button_text_style),"&amp;buttonAction=",encodeURIComponent(this.settings.button_action),"&amp;buttonDisabled=",encodeURIComponent(this.settings.button_disabled),"&amp;buttonCursor=",encodeURIComponent(this.settings.button_cursor)].join("")};SWFUpload.prototype.getMovieElement=function(){if(this.movieElement==undefined){this.movieElement=document.getElementById(this.movieName)}if(this.movieElement===null){throw"Could not find Flash element"}return this.movieElement};SWFUpload.prototype.buildParamString=function(){var C=this.settings.post_params;var B=[];if(typeof (C)==="object"){for(var A in C){if(C.hasOwnProperty(A)){B.push(encodeURIComponent(A.toString())+"="+encodeURIComponent(C[A].toString()))}}}return B.join("&amp;")};SWFUpload.prototype.destroy=function(){try{this.stopUpload();var B=null;try{B=this.getMovieElement()}catch(C){}if(B!=undefined&&B.parentNode!=undefined&&typeof B.parentNode.removeChild==="function"){var A=B.parentNode;if(A!=undefined){A.removeChild(B);if(A.parentNode!=undefined&&typeof A.parentNode.removeChild==="function"){A.parentNode.removeChild(A)}}}SWFUpload.instances[this.movieName]=null;delete SWFUpload.instances[this.movieName];delete this.movieElement;delete this.settings;delete this.customSettings;delete this.eventQueue;delete this.movieName;delete window[this.movieName];return true}catch(D){return false}};SWFUpload.prototype.displayDebugInfo=function(){this.debug(["---SWFUpload Instance Info---\n","Version: ",SWFUpload.version,"\n","Movie Name: ",this.movieName,"\n","Settings:\n","\t","upload_url:               ",this.settings.upload_url,"\n","\t","flash_url:                ",this.settings.flash_url,"\n","\t","use_query_string:         ",this.settings.use_query_string.toString(),"\n","\t","requeue_on_error:         ",this.settings.requeue_on_error.toString(),"\n","\t","http_success:             ",this.settings.http_success.join(", "),"\n","\t","file_post_name:           ",this.settings.file_post_name,"\n","\t","post_params:              ",this.settings.post_params.toString(),"\n","\t","file_types:               ",this.settings.file_types,"\n","\t","file_types_description:   ",this.settings.file_types_description,"\n","\t","file_size_limit:          ",this.settings.file_size_limit,"\n","\t","file_upload_limit:        ",this.settings.file_upload_limit,"\n","\t","file_queue_limit:         ",this.settings.file_queue_limit,"\n","\t","debug:                    ",this.settings.debug.toString(),"\n","\t","prevent_swf_caching:      ",this.settings.prevent_swf_caching.toString(),"\n","\t","button_placeholder_id:    ",this.settings.button_placeholder_id.toString(),"\n","\t","button_image_url:         ",this.settings.button_image_url.toString(),"\n","\t","button_width:             ",this.settings.button_width.toString(),"\n","\t","button_height:            ",this.settings.button_height.toString(),"\n","\t","button_text:              ",this.settings.button_text.toString(),"\n","\t","button_text_style:        ",this.settings.button_text_style.toString(),"\n","\t","button_text_top_padding:  ",this.settings.button_text_top_padding.toString(),"\n","\t","button_text_left_padding: ",this.settings.button_text_left_padding.toString(),"\n","\t","button_action:            ",this.settings.button_action.toString(),"\n","\t","button_disabled:          ",this.settings.button_disabled.toString(),"\n","\t","custom_settings:          ",this.settings.custom_settings.toString(),"\n","Event Handlers:\n","\t","swfupload_loaded_handler assigned:  ",(typeof this.settings.swfupload_loaded_handler==="function").toString(),"\n","\t","file_dialog_start_handler assigned: ",(typeof this.settings.file_dialog_start_handler==="function").toString(),"\n","\t","file_queued_handler assigned:       ",(typeof this.settings.file_queued_handler==="function").toString(),"\n","\t","file_queue_error_handler assigned:  ",(typeof this.settings.file_queue_error_handler==="function").toString(),"\n","\t","upload_start_handler assigned:      ",(typeof this.settings.upload_start_handler==="function").toString(),"\n","\t","upload_progress_handler assigned:   ",(typeof this.settings.upload_progress_handler==="function").toString(),"\n","\t","upload_error_handler assigned:      ",(typeof this.settings.upload_error_handler==="function").toString(),"\n","\t","upload_success_handler assigned:    ",(typeof this.settings.upload_success_handler==="function").toString(),"\n","\t","upload_complete_handler assigned:   ",(typeof this.settings.upload_complete_handler==="function").toString(),"\n","\t","debug_handler assigned:             ",(typeof this.settings.debug_handler==="function").toString(),"\n"].join(""))};SWFUpload.prototype.addSetting=function(B,C,A){if(C==undefined){return(this.settings[B]=A)}else{return(this.settings[B]=C)}};SWFUpload.prototype.getSetting=function(A){if(this.settings[A]!=undefined){return this.settings[A]}return""};SWFUpload.prototype.callFlash=function(C,D){D=D||[];var A=this.getMovieElement();var B;if(typeof A[C]==="function"){if(D.length===0){B=A[C]()}else{if(D.length===1){B=A[C](D[0])}else{if(D.length===2){B=A[C](D[0],D[1])}else{if(D.length===3){B=A[C](D[0],D[1],D[2])}else{throw"Too many arguments"}}}}if(B!=undefined&&typeof B.post==="object"){B=this.unescapeFilePostParams(B)}return B}else{throw"Invalid function name: "+C}};SWFUpload.prototype.selectFile=function(){this.callFlash("SelectFile")};SWFUpload.prototype.selectFiles=function(){this.callFlash("SelectFiles")};SWFUpload.prototype.startUpload=function(A){this.callFlash("StartUpload",[A])};SWFUpload.prototype.cancelUpload=function(A,B){if(B!==false){B=true}this.callFlash("CancelUpload",[A,B])};SWFUpload.prototype.stopUpload=function(){this.callFlash("StopUpload")};SWFUpload.prototype.getStats=function(){return this.callFlash("GetStats")};SWFUpload.prototype.setStats=function(A){this.callFlash("SetStats",[A])};SWFUpload.prototype.getFile=function(A){if(typeof (A)==="number"){return this.callFlash("GetFileByIndex",[A])}else{return this.callFlash("GetFile",[A])}};SWFUpload.prototype.addFileParam=function(A,B,C){return this.callFlash("AddFileParam",[A,B,C])};SWFUpload.prototype.removeFileParam=function(A,B){this.callFlash("RemoveFileParam",[A,B])};SWFUpload.prototype.setUploadURL=function(A){this.settings.upload_url=A.toString();this.callFlash("SetUploadURL",[A])};SWFUpload.prototype.setPostParams=function(A){this.settings.post_params=A;this.callFlash("SetPostParams",[A])};SWFUpload.prototype.addPostParam=function(A,B){this.settings.post_params[A]=B;this.callFlash("SetPostParams",[this.settings.post_params])};SWFUpload.prototype.removePostParam=function(A){delete this.settings.post_params[A];this.callFlash("SetPostParams",[this.settings.post_params])};SWFUpload.prototype.setFileTypes=function(A,B){this.settings.file_types=A;this.settings.file_types_description=B;this.callFlash("SetFileTypes",[A,B])};SWFUpload.prototype.setFileSizeLimit=function(A){this.settings.file_size_limit=A;this.callFlash("SetFileSizeLimit",[A])};SWFUpload.prototype.setFileUploadLimit=function(A){this.settings.file_upload_limit=A;this.callFlash("SetFileUploadLimit",[A])};SWFUpload.prototype.setFileQueueLimit=function(A){this.settings.file_queue_limit=A;this.callFlash("SetFileQueueLimit",[A])};SWFUpload.prototype.setFilePostName=function(A){this.settings.file_post_name=A;this.callFlash("SetFilePostName",[A])};SWFUpload.prototype.setUseQueryString=function(A){this.settings.use_query_string=A;this.callFlash("SetUseQueryString",[A])};SWFUpload.prototype.setRequeueOnError=function(A){this.settings.requeue_on_error=A;this.callFlash("SetRequeueOnError",[A])};SWFUpload.prototype.setHTTPSuccess=function(A){if(typeof A==="string"){A=A.replace(" ","").split(",")}this.settings.http_success=A;this.callFlash("SetHTTPSuccess",[A])};SWFUpload.prototype.setDebugEnabled=function(A){this.settings.debug_enabled=A;this.callFlash("SetDebugEnabled",[A])};SWFUpload.prototype.setButtonImageURL=function(A){if(A==undefined){A=""}this.settings.button_image_url=A;this.callFlash("SetButtonImageURL",[A])};SWFUpload.prototype.setButtonDimensions=function(C,A){this.settings.button_width=C;this.settings.button_height=A;var B=this.getMovieElement();if(B!=undefined){B.style.width=C+"px";B.style.height=A+"px"}this.callFlash("SetButtonDimensions",[C,A])};SWFUpload.prototype.setButtonText=function(A){this.settings.button_text=A;this.callFlash("SetButtonText",[A])};SWFUpload.prototype.setButtonTextPadding=function(B,A){this.settings.button_text_top_padding=A;this.settings.button_text_left_padding=B;this.callFlash("SetButtonTextPadding",[B,A])};SWFUpload.prototype.setButtonTextStyle=function(A){this.settings.button_text_style=A;this.callFlash("SetButtonTextStyle",[A])};SWFUpload.prototype.setButtonDisabled=function(A){this.settings.button_disabled=A;this.callFlash("SetButtonDisabled",[A])};SWFUpload.prototype.setButtonAction=function(A){this.settings.button_action=A;this.callFlash("SetButtonAction",[A])};SWFUpload.prototype.setButtonCursor=function(A){this.settings.button_cursor=A;this.callFlash("SetButtonCursor",[A])};SWFUpload.prototype.queueEvent=function(B,C){if(C==undefined){C=[]}else{if(!(C instanceof Array)){C=[C]}}var A=this;if(typeof this.settings[B]==="function"){this.eventQueue.push(function(){this.settings[B].apply(this,C)});setTimeout(function(){A.executeNextEvent()},0)}else{if(this.settings[B]!==null){throw"Event handler "+B+" is unknown or is not a function"}}};SWFUpload.prototype.executeNextEvent=function(){var A=this.eventQueue?this.eventQueue.shift():null;if(typeof (A)==="function"){A.apply(this)}};SWFUpload.prototype.unescapeFilePostParams=function(C){var E=/[$]([0-9a-f]{4})/i;var F={};var D;if(C!=undefined){for(var A in C.post){if(C.post.hasOwnProperty(A)){D=A;var B;while((B=E.exec(D))!==null){D=D.replace(B[0],String.fromCharCode(parseInt("0x"+B[1],16)))}F[D]=C.post[A]}}C.post=F}return C};SWFUpload.prototype.flashReady=function(){var A=this.getMovieElement();if(typeof A.StartUpload!=="function"){throw"ExternalInterface methods failed to initialize."}if(window[this.movieName]==undefined){window[this.movieName]=A}this.queueEvent("swfupload_loaded_handler")};SWFUpload.prototype.fileDialogStart=function(){this.queueEvent("file_dialog_start_handler")};SWFUpload.prototype.fileQueued=function(A){A=this.unescapeFilePostParams(A);this.queueEvent("file_queued_handler",A)};SWFUpload.prototype.fileQueueError=function(A,C,B){A=this.unescapeFilePostParams(A);this.queueEvent("file_queue_error_handler",[A,C,B])};SWFUpload.prototype.fileDialogComplete=function(A,B){this.queueEvent("file_dialog_complete_handler",[A,B])};SWFUpload.prototype.uploadStart=function(A){A=this.unescapeFilePostParams(A);this.queueEvent("return_upload_start_handler",A)};SWFUpload.prototype.returnUploadStart=function(A){var B;if(typeof this.settings.upload_start_handler==="function"){A=this.unescapeFilePostParams(A);B=this.settings.upload_start_handler.call(this,A)}else{if(this.settings.upload_start_handler!=undefined){throw"upload_start_handler must be a function"}}if(B===undefined){B=true}B=!!B;this.callFlash("ReturnUploadStart",[B])};SWFUpload.prototype.uploadProgress=function(A,C,B){A=this.unescapeFilePostParams(A);this.queueEvent("upload_progress_handler",[A,C,B])};SWFUpload.prototype.uploadError=function(A,C,B){A=this.unescapeFilePostParams(A);this.queueEvent("upload_error_handler",[A,C,B])};SWFUpload.prototype.uploadSuccess=function(B,A){B=this.unescapeFilePostParams(B);this.queueEvent("upload_success_handler",[B,A])};SWFUpload.prototype.uploadComplete=function(A){A=this.unescapeFilePostParams(A);this.queueEvent("upload_complete_handler",A)};SWFUpload.prototype.debug=function(A){this.queueEvent("debug_handler",A)};SWFUpload.prototype.debugMessage=function(C){if(this.settings.debug){var A,D=[];if(typeof C==="object"&&typeof C.name==="string"&&typeof C.message==="string"){for(var B in C){if(C.hasOwnProperty(B)){D.push(B+": "+C[B])}}A=D.join("\n")||"";D=A.split("\n");A="EXCEPTION: "+D.join("\nEXCEPTION: ");SWFUpload.Console.writeLine(A)}else{SWFUpload.Console.writeLine(C)}}};SWFUpload.Console={};SWFUpload.Console.writeLine=function(D){var B,A;try{B=document.getElementById("SWFUpload_Console");if(!B){A=document.createElement("form");document.getElementsByTagName("body")[0].appendChild(A);B=document.createElement("textarea");B.id="SWFUpload_Console";B.style.fontFamily="monospace";B.setAttribute("wrap","off");B.wrap="off";B.style.overflow="auto";B.style.width="700px";B.style.height="350px";B.style.margin="5px";A.appendChild(B)}B.value+=D+"\n";B.scrollTop=B.scrollHeight-B.clientHeight}catch(C){alert("Exception: "+C.name+" Message: "+C.message)}};function secoyaFileBrowser(){this.className="secoyaFileBrowser v1.0"}secoyaFileBrowser.prototype={fileDblClickListeners:new Array(),fileDblClickEvents:new Array(),createUploadBtn:function(H,A,G,F){var B=document.getElementById(H);if(B){var E=B.onmouseover;var C=B.onmouseout;su.initialize("fileDetails",A,G,H,F,this.uploaderComplete,"m-12");var D=su.getDomElement();D.onmouseover=E;D.onmouseout=C}},uploadFile:function(){if(su.canUpload()){ms.invokeMethod("m-12","s-fileBrowser","showBrowser")}},uploaderComplete:function(){sfb.refreshFolder()},showBrowser:function(C,A,D,B){su.initialize("fileDetails",C,A,D,B,this.uploaderComplete,"m-12")},setFileTypeDescription:function(A){},editFileName:function(A){sg.editCell("fileManagerGrid",A,0)},refreshFolder:function(){ms.invokeMethod("m-12","s-fileBrowser","refreshFolder")},getContainingFrame:function(A){if(A.getAttribute("container")=="true"&&A.getAttribute("dropStyle")=="float"){return sfh.getFrameById(A.id)}return this.getContainingFrame(A.parentNode)},reportFileDblClick:function(fid){if(!fid){return }fid=fid.id;var file=document.getElementById(fid);var fr=this.getContainingFrame(file);var frameInst=fr.getSubId();var fileID=fid;for(var i=0;i<this.fileDblClickListeners.length;i++){var tmp=this.fileDblClickListeners[i];if(tmp[0]==frameInst){this.fileDblClickListeners[i][1].reportFileDblClick(fileID)}}for(var i=0;i<this.fileDblClickEvents.length;i++){var tmp=this.fileDblClickEvents[i];if(tmp[0]==frameInst){eval(this.fileDblClickEvents[i][1])}}},addFileDblClickListener:function(C,A){var B=new Array();if(!A){A=""}B.push(A);B.push(C);sfb.fileDblClickEvents=new Array();if(C.reportFileDblClick!=null){sfb.fileDblClickListeners.push(B)}else{sfb.fileDblClickEvents.push(B)}},removeFileDblClickListener:function(B){for(var A=sfb.fileDblClickListeners.length-1;A>=0;A--){if(sfb.fileDblClickListeners[A][1]==B){sfb.fileDblClickListeners.splice(A,1)}}}};sfb=new secoyaFileBrowser();function secoyaInserter(){this.className="secoyaInserter v1.0"}secoyaInserter.prototype={initialize:function(){ms.invokeMethod("m-43","s-newsletter","openMerger");core.addKeyUpListener(this);core.addAutoSuggestListener(this);lightCore.toggleDim();editor.stopListening()},createMergeField:function(B){var C=document.forms.mergeForm;var A=C.intMergeUID.value;editor.insertAtCursorPosition("[["+A+"]]");sfh.hideFrame(B);editor.startListening();lightCore.toggleDim(true)},cancelMergeField:function(){editor.startListening();lightCore.toggleDim(true)}};sin=new secoyaInserter();function secoyaReplacer(){this.className="secoyaReplacer v1.0"}secoyaReplacer.prototype={replacers:{},initialize:function(){core.addFrameUpdateListener(this)},registerReplacer:function(A,B){srp.replacers[A]=B},clearReplacer:function(A){srp.replacers[A]=null},clearAllReplacers:function(){srp.replacers={}},replace:function(B){var C=core.getNodeTypes(B,3);for(var A=0;A<C.length;A++){C[A].nodeValue=srp.replaceText(C[A].nodeValue)}},replaceText:function(A){A=A.replace(/\[\[[^\]\]]*\]\]/g,function(B){for(var C in srp.replacers){var D=srp.replacers[C];if(D==B){return C}}return B});return A},inverseReplace:function(B){var C=core.getNodeTypes(B,3);for(var A=0;A<C.length;A++){C[A].nodeValue=srp.inverseReplaceText(C[A].nodeValue)}},inverseReplaceText:function(A){if(typeof A!="string"){return }A=A.replace(/\[\[[^\]\]]*\]\]/g,function(B){var C=srp.replacers[B];if(C!="undefined"&&C!=null){return C}return B});return A},reportFrameUpdate:function(A){srp.replace(document.getElementById(A.id))}};var srp=new secoyaReplacer();var sFavicon={change:function(A){this.addLink(A,"shortcut icon")},addLink:function(C,B){var A=document.createElement("link");A.type="image/x-icon";A.rel=B;A.href=C;this.removeLinkIfExists(B);this.docHead.appendChild(A)},removeLinkIfExists:function(D){var A=this.docHead.getElementsByTagName("link");for(var B=0;B<A.length;B++){var C=A[B];if(C.type=="image/x-icon"&&C.rel==D){this.docHead.removeChild(C);return }}},docHead:document.getElementsByTagName("head")[0]};