var DOMAssistant=function(){var a=function(d){};var c=document.all&&!/Opera/i.test(navigator.userAgent);var b=[];return{publicMethods:["elmsByClass","elmsByAttribute","elmsByTag"],initCore:function(){this.applyMethod.call(window,"$",this.$);this.applyMethod.call(window,"$$",this.$$);window.DOMAssistant=this;if(c){a=Array}a.prototype=[];a.prototype.each=function(d){for(var e=0,f=this.length;e<f;e++){d.call(this[e])}return this};a.prototype.end=function(){return this.previousSet};this.attach(this)},addMethods:function(e,d){b.push([e,d]);this.addHTMLArrayPrototype(e,d)},addMethodsToElm:function(d){for(var e=0,f=b.length;e<f;e++){this.applyMethod.call(d,b[e][0],b[e][1])}},applyMethod:function(d,e){if(typeof this[d]!=="function"){this[d]=e}},attach:function(f){var j=f.publicMethods;if(typeof j==="undefined"){var h;for(var d in f){if(typeof f[d]!=="undefined"){this.addMethods(d,f[d])}}}else{if(j.constructor===Array){for(var g=0,i=j.length,e;g<i;g++){e=j[g];this.addMethods(e,f[e])}}}if(typeof f.init==="function"){f.init()}},createHTMLArray:function(){return new a()},addHTMLArrayPrototype:function(e,d){a.prototype[e]=function(){var g=new a();g.previousSet=this;var f;for(var h=0,k=this.length;h<k;h++){f=d.apply(this[h],arguments);if(f!==null&&f.constructor===Array){for(var j=0,i=f.length;j<i;j++){g.push(f[j])}}else{g.push(f)}}return g}},$:function(){var d=new a();if(document.getElementById){var h=arguments[0];if(typeof h==="string"){h=h.replace(/^[^#]*(#)/,"$1");if(/^#[\w\-\_]+$/.test(h)){var e=DOMAssistant.$$(h.substr(1),false);if(e){d.push(e)}}else{d=DOMAssistant.cssSelection(h)}}else{if(typeof h==="object"){if(arguments.length===1){d=DOMAssistant.$$(h)}else{for(var g=0,f=arguments.length;g<f;g++){d.push(arguments[g])}}}}}return d},$$:function(d,g){var e=(typeof d==="object")?d:document.getElementById(d);var f=g||true;if(typeof d==="string"&&e&&e.id!==d){e=null;for(var i=0,j=document.all.length,h;i<j;i++){h=document.all[i];if(h.id===d){e=h;break}}}if(e&&f){DOMAssistant.addMethodsToElm(e)}return e},cssSelection:function(d){if(document.querySelectorAll){DOMAssistant.cssSelection=function(f){var e=new a();var g=document.querySelectorAll(f);for(var h=0,i=g.length;h<i;h++){e.push(g[h])}return e}}else{if(document.evaluate){DOMAssistant.cssSelection=function(h){var r=h.replace(/\s*(,)\s*/g,"$1").split(",");var t=new a();var ab,x,B,j,v,u,q,aa;var z=/^(\w+)?(#[\w\-_]+|\*)?((\.[\w\-_]+)*)?((\[\w+(\^|\$|\*)?=?[\w\-\_]+\]+)*)?(((:\w+[\w\-]*)(\((odd|even|\d+n?((\+|\-)\d+)?|\w+|((\w*\.[\w\-_]+)*)?|(\[#?\w+(\^|\$|\*)?=?[\w\-\_]+\]+))\))?)*)?(>|\+|~)?/;for(var g=0,p=r.length;g<p;g++){ab=r[g];if(g>0){x=false;for(var o=0,m=g;o<m;o++){if(r[g]===r[o]){x=true;break}}if(x){continue}}B=ab.split(" ");j=".";for(var i=0,f=B.length;i<f;i++){v=z.exec(B[i]);u={tag:(!v[1]||v[2]==="*")?"*":v[1],id:(v[2]!=="*")?v[2]:null,allClasses:v[3],allAttr:v[5],pseudoClass:v[10],pseudoValue:v[12],tagRelation:v[19]};if(u.tagRelation){switch(u.tagRelation){case">":j+="/child::";break;case"+":j+="/following-sibling::*[1]/self::";break;case"~":j+="/following-sibling::";break}}else{j+=(i>0&&/(>|\+|~)/.test(B[i-1]))?u.tag:("//"+u.tag)}if(u.id){j+="[@id = '"+u.id.replace(/^#/,"")+"']"}if(u.allClasses){j+=u.allClasses.replace(/\.([\w\-_]+)/g,"[contains(concat(' ', @class, ' '), ' $1 ')]")}if(u.allAttr){j+=u.allAttr.replace(/(\w+)(\^|\$|\*)?=?([\w\-_]+)?/g,function(I,e,E,F,G){var H=I;switch(E){case"^":H="starts-with(@"+e+", '"+F+"')";break;case"$":H="substring(@"+e+", (string-length(@"+e+") - "+(F.length-1)+"), 6) = '"+F+"'";break;case"*":H="contains(concat(' ', @"+e+", ' '), '"+F+"')";break;default:H="@"+e+((F)?"='"+F+"'":"")}return H})}if(u.pseudoClass){var w=u.pseudoValue;switch(u.pseudoClass.replace(/^:/,"")){case"first-child":j+="[count(preceding-sibling::*) = 0]";break;case"first-of-type":j+="[count(preceding-sibling::"+u.tag+") = 0]";break;case"last-child":j+="[count(following-sibling::*) = 0]";break;case"last-of-type":j+="[count(following-sibling::"+u.tag+") = 0]";break;case"only-child":j+="[count(preceding-sibling::*) = 0 and count(following-sibling::*) = 0]";break;case"only-of-type":j+="[count(preceding-sibling::"+u.tag+") = 0 and count(following-sibling::"+u.tag+") = 0]";break;case"nth-of-type":j+="["+w+"]";break;case"empty":j+="[count(child::*) = 0 and string-length(text()) = 0]";break;case"contains":j+="[contains(., '"+w+"')]";break;case"enabled":j+="[not(@disabled)]";break;case"disabled":j+="[@disabled]";break;case"checked":j+="[@checked='checked']";break;case"nth-child":var A="[";if(/^\d+$/.test(w)){A+="position() = "+w}else{if(/^n$/.test(w)){A=""}else{if(/^odd$/.test(w)){w="2n+1"}else{if(/^even$/.test(w)){w="2n+0"}}var C=/^(\d+)n((\+|\-)(\d+))?$/.exec(w);var s=parseInt(C[1],10);var D=0;if(C[3]&&C[4]){D=parseInt((C[3]+C[4]),10);if(D<0){D=s+D}}A+="(count(./preceding-sibling::*) + 1)";if(s<D){var n=((D-s)%2===0)?0:1;A+=" mod "+s+" = "+n+" and position() > "+D}else{if(D===s){A+=" mod "+s+" = 0"}else{A+=" mod "+s+" = "+D}}}}if(!/^n$/.test(w)){A+="]"}j+=A;break;case"not":w=w.replace(/^\[#([\w\-\_]+)\]$/,"[id=$1]");var y=w.replace(/^(\w+)/,"self::$1");y=y.replace(/\.([\w\-_]+)/g,"contains(concat(' ', @class, ' '), ' $1 ')");y=y.replace(/\[(\w+)(\^|\$|\*)?=?([\w\-_]+)?\]/g,function(I,e,E,F,G){var H=I;switch(E){case"^":H="starts-with(@"+e+", '"+F+"')";break;case"$":H="substring(@"+e+", (string-length(@"+e+") - "+(F.length-1)+"), 6) = '"+F+"'";break;case"*":H="contains(concat(' ', @"+e+", ' '), '"+F+"')";break;default:H="@"+e+((F)?"='"+F+"'":"")}return H});j+="[not("+y+")]";break}}}var k=document.evaluate(j,document,null,0,null);var l=k.iterateNext();while(l){t.push(l);l=k.iterateNext()}}return t}}else{DOMAssistant.cssSelection=function(aL){var a2=aL.replace(/\s*(,)\s*/g,"$1").split(",");var bo=new a();var D=new a();var a3=new a();var aM,C,bF,ap,l,bK,aH,az,ae,bJ,aO,bp,ax,x,bT,bq,ak,an,t,bE,a7;var a9=/^(>|\+|~)$/;var z=/^(\w+)?(#[\w\-_]+|\*)?((\.[\w\-_]+)*)?((\[\w+(\^|\$|\*)?=?[\w\-\_]+\]+)*)?(((:\w+[\w\-]*)(\((odd|even|\d*n?((\+|\-)\d+)?|\w+|((\w*\.[\w\-_]+)*)?|(\[#?\w+(\^|\$|\*)?=?[\w\-\_]+\]+))\))?)*)?/;var aJ;function aT(){for(var e=0,f=D.length;e<f;e++){D[e].added=false}}function aq(){for(var e=0,f=aM.length;e<f;e++){aM[e].childElms=null}}function ao(e,f){if(c){switch(f){case"id":return e.id;case"for":return e.htmlFor;case"class":return e.className}}return e.getAttribute(f,2)}for(var bc=0,bC=a2.length;bc<bC;bc++){C=a2[bc];if(bc>0){bF=false;for(var be=0,ai=bc;be<ai;be++){if(a2[bc]===a2[be]){bF=true;break}}if(bF){continue}}ap=C.split(" ");D=[];D.push(document);for(var bm=0,i=ap.length;bm<i;bm++){var al=ap[bm];a3=[];if(bm>0&&a9.test(al)){l=a9.exec(al);if(l){bK=/^\w+/.exec(ap[bm+1]);if(bK){aH=new RegExp("(^|\\s)"+bK+"(\\s|$)","i");az=l[0];if(az===">"){for(var br=0,am=D.length,bg;br<am;br++){bg=D[br].childNodes;for(var bw=0,aD=bg.length;bw<aD;bw++){if(aH.test(bg[bw].nodeName)){a3.push(bg[bw])}}}}else{if(az==="+"){for(var bz=0,aV=D.length;bz<aV;bz++){bJ=D[bz].nextSibling;while(bJ&&bJ.nodeType!==1){bJ=bJ.nextSibling}if(bJ){if(aH.test(bJ.nodeName)){a3.push(bJ)}}}}else{if(az==="~"){for(var bH=0,bn=D.length;bH<bn;bH++){bJ=D[bH].nextSibling;while(bJ&&bJ.nodeType!==1){bJ=bJ.nextSibling}while(bJ){if(!bJ.added&&aH.test(bJ.nodeName)){bJ.added=true;a3.push(bJ)}bJ=bJ.nextSibling}}aT()}}}}}D=a3;bm=bm+1}else{var bN=z.exec(al);var bd={tag:(!bN[1]||bN[2]==="*")?"*":bN[1],id:(bN[2]!=="*")?bN[2]:null,allClasses:bN[3],allAttr:bN[5],pseudoClass:bN[10],pseudoValue:bN[12]};if(bd.id){a3.push(document.getElementById(bd.id.replace(/#/,"")));D=a3}else{if(bd.tag){var bt;for(var bL=0,ad=D.length;bL<ad;bL++){bt=D[bL].getElementsByTagName(bd.tag);for(var bR=0,bP=bt.length;bR<bP;bR++){if(!bt[bR].added){bt[bR].added=true;a3.push(bt[bR])}}}D=a3;aT()}}if(bd.allClasses){bd.allClasses=bd.allClasses.replace(/^\./,"").split(".");var bD=[];for(var bV=0,aj=a3.length,bx;bV<aj;bV++){bp=a3[bV];if(!bp.added){bT=false;bx=bp.className;for(var bX=0,aA=bd.allClasses.length,B,bj;bX<aA;bX++){B=new RegExp("(^|\\s)"+bd.allClasses[bX].replace(/\./,"")+"(\\s|$)");bT=B.test(bx);if(!bT){break}}}if(bT){bp.added=true;bD.push(bp)}}aT();a3=bD;D=a3}if(bd.allAttr){bd.allAttr=bd.allAttr.replace(/(\])(\[)/,"$1 $2").split(" ");var bB=[];var aI=/(\w+)(\^|\$|\*)?=?([\w\-_]+)?/;for(var bY=0,aR=a3.length,bh,aE;bY<aR;bY++){bp=a3[bY];if(!bp.added){for(var b0=0,bf=bd.allAttr.length,bZ,q,aU,aC,bU;b0<bf;b0++){bT=false;bZ=aI.exec(bd.allAttr[b0]);aE=bZ[3]||null;aU=(aE)?("^"+aE+"$"):null;bU=bZ[2]||null;if(typeof bU==="string"){switch(bU){case"^":aU=("^"+aE);break;case"$":aU=(aE+"$");break;case"*":aU=(aE);break}}var bv=(aU)?new RegExp(aU):null;bh=ao(bp,bZ[1]);if(typeof bh==="string"&&bh.length>0){if(!bv||typeof bv==="undefined"||(bv&&bv.test(bh))){bT=true}}if(!bT){continue}}if(bT){bB.push(bp)}}}aT();a3=bB;D=a3}if(bd.pseudoClass){var v=bd.pseudoClass;var aY=bd.pseudoValue;var bi=a3;a3=[];aM=[];if(/^:not$/.test(v)){aY=aY.replace(/^\[#([\w\-\_]+)\]$/,"[id=$1]");var u=/^(\w+)/.exec(aY);var ah=/\.([\w\-_]+)/.exec(aY);var a8=/\[(\w+)(\^|\$|\*)?=?([\w\-_]+)?\]/.exec(aY);var aX=new RegExp("(^|\\s)"+((u)?u[1]:(ah)?ah[1]:"")+"(\\s|$)","i");if(a8){var aZ=a8[3];var a5="^"+a8[3]+"$";var y=a8[2];if(typeof y==="string"){switch(y){case"^":a5=("^"+aZ);break;case"$":a5=(aZ+"$");break;case"*":a5=(aZ);break}}aX=new RegExp(a5,"i")}for(var j=0,aa=bi.length,aK;j<aa;j++){aK=bi[j];bT=null;if(u&&!aX.test(aK.nodeName)){bT=aK}else{if(ah&&!aX.test(aK.className)){bT=aK}else{if(a8){if(!ao(aK,a8[1])||!aX.test(ao(aK,a8[1]))){bT=aK}}}}if(bT&&!bT.added){bT.added=true;a3.push(bT)}}D=a3}else{if(/first-child/.test(v)){for(var k=0,bs=bi.length;k<bs;k++){ax=bi[k];x=ax.parentNode;bq=x.firstChild;while(bq.nodeType!==1&&bq.nextSibling){bq=bq.nextSibling}if(bq===ax){a3.push(ax)}}D=a3}else{if(/last-child/.test(v)){for(var m=0,A=bi.length;m<A;m++){ax=bi[m];x=ax.parentNode;ak=x.lastChild;while(ak.nodeType!==1&&ak.previousSibling){ak=ak.previousSibling}if(ak===ax){a3.push(ax)}}D=a3}else{if(/only-child/.test(v)){for(var n=0,aw=bi.length;n<aw;n++){ax=bi[n];x=ax.parentNode;bq=x.firstChild;while(bq.nodeType!==1&&bq.nextSibling){bq=bq.nextSibling}ak=x.lastChild;while(ak.nodeType!==1&&ak.previousSibling){ak=ak.previousSibling}if(bq===ax&&ak===ax){a3.push(ax)}}D=a3}else{if(/nth-child/.test(v)){if(/^\d+$/.test(aY)){var bW=parseInt(aY,10);for(var o=0,aP=bi.length,au;o<aP;o++){au=0;ax=bi[o];x=ax.parentNode;t=x.firstChild;if(t.nodeType===1){au=au+1}while(au<bW&&t.nextSibling){t=t.nextSibling;if(t.nodeType===1){au=au+1}}if(au===bW&&t&&!t.added&&(t.nodeName===ax.nodeName)){t.added=true;a3.push(ax)}}aT()}else{if(/^n$/.test(aY)){for(var r=0,bb=bi.length;r<bb;r++){a3.push(bi[r])}}else{var a4=/^(odd|even)|(\d+)n((\+|\-)(\d+))?$/.exec(aY);var ag=parseInt(a4[2],10);var ar=(a4[1]==="even")?1:0;var bS=2;if(ag>0){bS=ag;var ay=(a4[4])?parseInt((a4[4]+a4[5]),10):0;ar=ay-1}for(var s=0,bQ=bi.length;s<bQ;s++){ax=bi[s];x=ax.parentNode;if(!x.childElms){bE=x.childNodes;a7=[];var aF=x.firstChild;if(aF.nodeType===1){a7.push(aF)}while(aF&&aF.nextSibling){aF=aF.nextSibling;if(aF.nodeType===1){a7.push(aF)}}x.childElms=a7;aM.push(x)}else{a7=x.childElms}for(var af=ar,a6=a7.length;af<a6;af=af+bS){if(af<0){continue}bp=a7[af];if(!bp.added&&bp.nodeName===ax.nodeName){bp.added=true;a3.push(ax)}}}aT();aq()}}D=a3}else{if(/first-of-type/.test(v)){for(var bl=0,ba=bi.length;bl<ba;bl++){ax=bi[bl];x=ax.parentNode;an=x.getElementsByTagName(ax.nodeName);bq=an[0];if(bq===ax){a3.push(ax)}}D=a3}else{if(/last-of-type/.test(v)){for(var bG=0,bM=bi.length,bO;bG<bM;bG++){ax=bi[bG];if(!ax.added){x=ax.parentNode;an=x.getElementsByTagName(ax.nodeName);ak=an[an.length-1];while(ak.parentNode!==x){ak=ak.parentNode}if(ak===ax){ax.added=true;a3.push(ax)}}}aT();D=a3}else{if(/only-of-type/.test(v)){for(var bk=0,ab=bi.length;bk<ab;bk++){ax=bi[bk];x=ax.parentNode;an=x.getElementsByTagName(ax.nodeName);if(an.length===1){a3.push(ax)}}D=a3}else{if(/nth-of-type/.test(v)){var a0=parseInt(aY,10);for(var p=0,av=bi.length;p<av;p++){ax=bi[p];x=ax.parentNode;a7=[];an=x.childNodes;if(an.length>=a0){for(var aW=0,a1=an.length,aG;aW<a1;aW++){if(aW===a0){break}aG=an[aW];if(aG.nodeName===ax.nodeName){a7.push(aG)}}bp=a7[a7.length-1];if(bp&&bp===ax){a3.push(ax)}}}D=a3}else{if(/empty/.test(v)){for(var aS=0,bA=bi.length;aS<bA;aS++){ax=bi[aS];x=ax.parentNode;bE=x.childNodes;if(bE.length===0){a3.push(ax)}}D=a3}else{if(/enabled/.test(v)){for(var by=0,b1=bi.length;by<b1;by++){ax=bi[by];if(!ax.disabled){a3.push(ax)}}D=a3}else{if(/disabled/.test(v)){for(var aB=0,ac=bi.length;aB<ac;aB++){ax=bi[aB];if(ax.disabled){a3.push(ax)}}D=a3}else{if(/checked/.test(v)){for(var bu=0,aQ=bi.length;bu<aQ;bu++){ax=bi[bu];if(ax.checked){a3.push(ax)}}D=a3}else{if(/contains/.test(v)){for(var bI=0,at=bi.length;bI<at;bI++){ax=bi[bI];if(!ax.added){if(new RegExp("(^|\\s)"+aY+"(\\s|$)").test(ax.innerHTML)){ax.added=true;a3.push(ax)}}}aT();D=a3}}}}}}}}}}}}}}}}}for(var w=0,aN=D.length;w<aN;w++){bo.push(D[w])}}return bo}}}return DOMAssistant.cssSelection.call(this,d)},elmsByClass:function(d,e){if(document.evaluate){DOMAssistant.elmsByClass=function(g,l){var j=new a();if(this.getElementsByClassName&&!l){var h=this.getElementsByClassName(g);for(var i=0,k=h.length;i<k;i++){j.push(h[i])}}else{var m=document.evaluate(".//"+((typeof l==="string")?l:"*")+"[contains(concat(' ', @class, ' '), ' "+g+" ')]",this,null,0,null);var f=m.iterateNext();while(f){j.push(f);f=m.iterateNext()}}return j}}else{DOMAssistant.elmsByClass=function(f,l){var i=new a();var g;if(l&&typeof l==="object"){g=(l.constructor===Array)?l:[l]}else{g=this.getElementsByTagName(l||"*")}var j=new RegExp("(^|\\s)"+f+"(\\s|$)");for(var h=0,m,k=g.length;h<k;h++){m=g[h];if(j.test(m.className)){i.push(m)}}return i}}return DOMAssistant.elmsByClass.call(this,d,e)},elmsByAttribute:function(f,e,g,d){if(document.evaluate){DOMAssistant.elmsByAttribute=function(k,j,l,h){var i=new a();var n="@"+k+((typeof j==="undefined"||j==="*")?"":" = '"+j+"'");if(typeof h==="string"){switch(h){case"^":n="starts-with(@"+k+", '"+j+"')";break;case"$":n="substring(@"+k+", (string-length(@"+k+") - "+(j.length-1)+"), 6) = '"+j+"'";break;case"*":n="contains(concat(' ', @"+k+", ' '), '"+j+"')";break}}var m=document.evaluate(".//"+((typeof l==="string")?l:"*")+"["+n+"]",this,null,0,null);var o=m.iterateNext();while(o){i.push(o);o=m.iterateNext()}return i}}else{DOMAssistant.elmsByAttribute=function(k,l,h,p){var s=new a();if(window.ActiveXObject&&document.all){k=k.replace(/class/,"className")}var r=(typeof l==="undefined")?null:("(^|\\s)"+l+"(\\s|$)");if(typeof p==="string"){switch(p){case"^":r=("^"+l);break;case"$":r=(l+"$");break;case"*":r=(l);break}}var i=new RegExp(r);var q;if(h&&typeof h==="object"){q=(h.constructor===Array)?h:[h]}else{q=this.getElementsByTagName(h||"*")}for(var o=0,j=q.length,m,n;o<j;o++){m=q[o];n=m.getAttribute(k,2);if(typeof n==="string"&&n.length>0){if(!i||typeof i==="undefined"||(i&&i.test(n))){s.push(m)}}}return s}}return DOMAssistant.elmsByAttribute.call(this,f,e,g,d)},elmsByTag:function(d){if(document.evaluate){DOMAssistant.elmsByTag=function(h){var g=new a();var e=document.evaluate(".//"+((typeof h==="string")?h:"*"),this,null,0,null);var f=e.iterateNext();while(f){g.push(f);f=e.iterateNext()}return g}}else{DOMAssistant.elmsByTag=function(i){var g=new a();var e=this.getElementsByTagName(i);for(var f=0,h=e.length;f<h;f++){g.push(e[f])}return g}}return DOMAssistant.elmsByTag.call(this,d)}}}();DOMAssistant.initCore();DOMAssistant.AJAX=function(){var b=null;var a=0;var d=-1;var c="";return{publicMethods:["get","post","load","replaceWithAJAXContent"],initRequest:function(){var h=null;if(typeof XMLHttpRequest!=="undefined"){h=new XMLHttpRequest()}else{if(typeof window.ActiveXObject!=="undefined"){try{h=new window.ActiveXObject("Msxml2.XMLHTTP.4.0")}catch(e){try{h=new window.ActiveXObject("MSXML2.XMLHTTP")}catch(f){try{h=new window.ActiveXObject("Microsoft.XMLHTTP")}catch(g){h=null}}}}}return h},get:function(f,e,g){return DOMAssistant.AJAX.makeCall.call(this,f,e,"GET",g)},post:function(f,e){return DOMAssistant.AJAX.makeCall.call(this,f,e,"POST")},load:function(f,e){DOMAssistant.AJAX.get.call(this,f,DOMAssistant.AJAX.replaceWithAJAXContent,(e||false))},makeCall:function(h,g,e,i){var j=DOMAssistant.AJAX.initRequest();if(j){b=j;var f=function(m){var n=h.split("?");var k=(e==="POST")?n[0]:h;j.open(e,k,true);j.setRequestHeader("AJAX","true");var o=null;if(e==="POST"){var p=n[1];var l=(p)?p.length:0;o=p;j.setRequestHeader("Content-type","application/x-www-form-urlencoded");j.setRequestHeader("Content-length",l);j.setRequestHeader("Connection","close")}if(typeof g==="function"){j.onreadystatechange=function(){if(j.readyState===4){g.call(m,j.responseText,i);a=4;d=j.status;c=j.statusText;b=null;j=null}}}j.send(o)}(this)}return this},replaceWithAJAXContent:function(i,e){if(e){this.innerHTML+=i}else{var m=this.elmsByTag("*");for(var j=0,f=m.length,g,h;j<f;j++){g=m[j];h=g.attributes;if(h){for(var l=0,k=h.length;l<k;l++){if(typeof g[h[l].name]==="function"){g[h[l].name]=null}}}}this.innerHTML=i}},getReadyState:function(){return(b&&typeof b.readyState!=="undefined")?b.readyState:a},getStatus:function(){return d},getStatusText:function(){return c}}}();DOMAssistant.attach(DOMAssistant.AJAX);DOMAssistant.CSS=function(){return{addClass:function(b){var a=this.className;if(!new RegExp(("(^|\\s)"+b+"(\\s|$)"),"i").test(a)){this.className=a+((a.length>0)?" ":"")+b}return this},removeClass:function(b){var a=new RegExp(("(^|\\s)"+b+"(\\s|$)"),"i");this.className=this.className.replace(a,function(d){var c="";if(new RegExp("^\\s+.*\\s+$").test(d)){c=d.replace(/(\s+).+/,"$1")}return c}).replace(/^\s+|\s+$/g,"");return this},replaceClass:function(c,b){var a=new RegExp(("(^|\\s)"+c+"(\\s|$)"),"i");this.className=this.className.replace(a,function(g,d,e){var f=d+b+e;if(new RegExp("^\\s+.*\\s+$").test(g)){f=g.replace(/(\s+).+/,"$1")}return f}).replace(/^\s+|\s+$/g,"");return this},hasClass:function(a){return new RegExp(("(^|\\s)"+a+"(\\s|$)"),"i").test(this.className)},getStyle:function(b){var a="";if(document.defaultView&&document.defaultView.getComputedStyle){a=document.defaultView.getComputedStyle(this,"").getPropertyValue(b)}else{if(this.currentStyle){a=b.replace(/\-(\w)/g,function(d,c){return c.toUpperCase()});a=this.currentStyle[a]}}return a}}}();DOMAssistant.attach(DOMAssistant.CSS);DOMAssistant.Content=function(){return{prev:function(){var a=this.previousSibling;while(a&&a.nodeType!==1){a=a.previousSibling}return a},next:function(){var a=this.nextSibling;while(a&&a.nodeType!==1){a=a.nextSibling}return a},create:function(d,e,a,c){var b=DOMAssistant.$(document.createElement(d));if(e){b.setAttributes(e)}if(typeof c!=="undefined"){b.addContent(c)}if(a){DOMAssistant.Content.addContent.call(this,b)}return b},setAttributes:function(a){for(var b in a){if(/class/i.test(b)){this.className=a[b]}else{this.setAttribute(b,a[b])}}return this},addContent:function(a){var b=this;if(typeof a==="string"){this.innerHTML+=a}else{b=this.appendChild(a)}return b},replaceContent:function(f){for(var c=(this.childNodes.length-1),b,a;c>=0;c--){b=this.childNodes[c];a=b.attributes;if(a){for(var e=0,d=a.length;e<d;e++){if(typeof b[a[e].name]==="function"){b[a[e].name]=null}}}b.parentNode.removeChild(b)}DOMAssistant.$(this).addContent(f);return this},remove:function(){this.parentNode.removeChild(this);return null}}}();DOMAssistant.attach(DOMAssistant.Content);DOMAssistant.Events=function(){return{publicMethods:["addEvent","removeEvent","preventDefault","cancelBubble"],init:function(){window.addEvent=this.addEvent;window.removeEvent=this.removeEvent;DOMAssistant.preventDefault=this.preventDefault;DOMAssistant.cancelBubble=this.cancelBubble},addEvent:function(c,b){var a=(/^DOM/.test(c));if(a){if(this.addEventListener){this.addEventListener(c,b,false)}}else{if(!this.events){this.events={}}if(!this.events[c]){this.events[c]=[]}this.events[c].push(b);this["on"+c]=DOMAssistant.Events.handleEvent;if(typeof this.window==="object"){this.window["on"+c]=DOMAssistant.Events.handleEvent}}return this},handleEvent:function(a){var c=a||event;var b=c.target||c.srcElement||document;while(b.nodeType!==1&&b.parentNode){b=b.parentNode}c.eventTarget=b;var e=c.type;var h=this.events[e];var d=h.length;var f;for(var g=0;g<d;g++){f=h[g].call(this,c);if(g===(d-1)){return f}}},removeEvent:function(a,b){var d=this.events[a];for(var c=0;c<d.length;c++){if(d[c]===b){delete d[c];d.splice(c,1)}}return this},preventDefault:function(a){if(a&&a.preventDefault){DOMAssistant.Events.preventDefault=function(b){b.preventDefault()}}else{DOMAssistant.Events.preventDefault=function(b){event.returnValue=false}}return DOMAssistant.Events.preventDefault(a)},cancelBubble:function(a){if(a&&a.stopPropagation){DOMAssistant.Events.cancelBubble=function(b){b.stopPropagation()}}else{DOMAssistant.Events.cancelBubble=function(b){event.cancelBubble=true}}return DOMAssistant.Events.cancelBubble(a)}}}();DOMAssistant.attach(DOMAssistant.Events);DOMAssistant.DOMLoad=function(){var DOMLoaded=false;var DOMLoadTimer=null;var functionsToCall=[];var addedStrings={};var errorHandling=null;var execFunctions=function(){for(var i=0,il=functionsToCall.length;i<il;i++){try{functionsToCall[i]()}catch(e){if(errorHandling&&typeof errorHandling==="function"){errorHandling(e)}}}functionsToCall=[]};var DOMHasLoaded=function(){if(DOMLoaded){return}DOMLoaded=true;execFunctions()};
/*@cc_on @*/
/*@if (@_win32 || @_win64)
		if (document.getElementById) {
			document.write("<script id=\"ieScriptLoad\" defer src=\"//:\"><\/script>");
		    document.getElementById("ieScriptLoad").onreadystatechange = function() {
		        if (this.readyState === "complete") {
		            DOMHasLoaded();
		        }
		    };
		}
	/*@end @*/
if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMHasLoaded,false)}if(/KHTML|WebKit|iCab/i.test(navigator.userAgent)){DOMLoadTimer=setInterval(function(){if(/loaded|complete/i.test(document.readyState)){DOMHasLoaded();clearInterval(DOMLoadTimer)}},10)}window.onload=DOMHasLoaded;return{DOMReady:function(){for(var i=0,il=arguments.length,funcRef;i<il;i++){funcRef=arguments[i];if(!funcRef.DOMReady&&!addedStrings[funcRef]){if(typeof funcRef==="string"){addedStrings[funcRef]=true;funcRef=new Function(funcRef)}funcRef.DOMReady=true;functionsToCall.push(funcRef)}}if(DOMLoaded){execFunctions()}},setErrorHandling:function(funcRef){errorHandling=funcRef}}}();DOMAssistant.DOMReady=DOMAssistant.DOMLoad.DOMReady;var panelen={init:function(){this.bubble()},bubble:function(){$(".open-in-new").click(function(){panelen.openWindow(this);return false});$("#inloggning").submit(function(){panelen.login(this);return false});$(".loginfield").focus(function(){panelen.inputText(this);return false})},login:function(b){var a=$(b).attr("action");window.open(a,null,"height=750,width=813,status=no,toolbar=no,menubar=no,location=no")},inputText:function(a){if(a.V){if(a.value==a.V){a.value=""}}else{a.V=a.value;a.value=""}},openWindow:function(i,g,a){var c;var b=g?g:320;var d=a?a:450;if(i.href){c=i.href;var h=i.className.replace(/.*popup-width-([\d-]+).*/i,"$1");if(h!=i.className){b=h}var f=i.className.replace(/.*popup-height-([\d-]+).*/i,"$1");if(f!=i.className){d=f}}window.open(c,"tip","width="+b+",height="+d+",status=no,toolbar=no,menubar=no,location=no").focus()}};var tv4={openPopup:function(g,f,a){var c;var b=f?f:320;var d=a?a:450;window.open(g,"tip","width="+b+",height="+d+",status=no,toolbar=no,menubar=no,location=no").focus()},setCookie:function(c,d,e){if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString()}else{var a=""}document.cookie=c+"="+d+a+"; path=/"},getCookie:function(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null},submitForm:function(m,b,a,n){var d="";var l;if(typeof m=="string"){l=(document.getElementById(m)||document.forms[m])}else{if(typeof m=="object"){l=m}else{return}}var c,k,g,o;var h=false;for(var f=0;f<l.elements.length;f++){c=l.elements[f];o=l.elements[f].disabled;k=l.elements[f].name;g=l.elements[f].value;if(!o&&k){switch(c.type){case"select-one":case"select-multiple":for(var e=0;e<c.options.length;e++){if(c.options[e].selected){if(window.ActiveXObject){d+=encodeURIComponent(k)+"="+encodeURIComponent(c.options[e].attributes.value.specified?c.options[e].value:c.options[e].text)+"&"}else{d+=encodeURIComponent(k)+"="+encodeURIComponent(c.options[e].hasAttribute("value")?c.options[e].value:c.options[e].text)+"&"}}}break;case"radio":case"checkbox":if(c.checked){d+=encodeURIComponent(k)+"="+encodeURIComponent(g)+"&"}break;case"file":break;case undefined:break;case"reset":break;case"button":break;case"submit":if(h===false){d+=encodeURIComponent(k)+"="+encodeURIComponent(g)+"&"}h=true;break;default:d+=encodeURIComponent(k)+"="+encodeURIComponent(g)+"&"}}}d=d.substr(0,d.length-1);if(!a||a==null){a=l.action}if(a.indexOf("?")<0){a=a+"?"+d}else{a=a+"&"+d}a+="&random="+(new Date()).getTime();if(b&&b!=null){DOMAssistant.$$(b).load(a,n)}else{DOMAssistant.AJAX.post(a,n)}}};tv4.logger={default_rsCI:"tv4-se",default_rsCG:"0",default_rsDN:"http://secure-dk.imrworldwide.com/",default_rsCC:0,default_rsIP:1,default_rsSI:"UrlJavascriptAction",log:function(a,c){if(typeof(_rsCI)!=="undefined"){this.default_rsCI=_rsCI}if(typeof(_rsCG)!=="undefined"){this.default_rsCG=_rsCG}if(typeof(_rsDN)!=="undefined"){this.default_rsDN=_rsDN}if(typeof(_rsCC)!=="undefined"){this.default_rsCC=_rsCC}if(typeof(_rsIP)!=="undefined"){this.default_rsIP=_rsIP}if(typeof(a)=="undefined"){a=this.default_rsCG}if(typeof(c)=="undefined"){c=this.default_rsSI}else{c=escape(c)}var b=this.default_rsDN+"cgi-bin/m?rnd="+(new Date()).getTime();b=b+"&ci="+this.default_rsCI;b=b+"&cg="+escape(a);b=b+"&cc="+this.default_rsCC;b=b+"&si="+c;b=b+"&rp="+escape(window.location);var d=new Image(1,1);d.src=b}};function changeInputText(a){if(a.V){if(a.value==a.V){a.value=""}}else{a.V=a.value;a.value=""}}$(document).ready(function(){panelen.init()});var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);
/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/
return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return}f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return}if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return}}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return}var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return}var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return}AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();