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}}}}}();var oAjaxLight={mInit:function(method,uri,callback,postData,formular){var http=oAjaxLight.mGetXHR();http.open(method,uri,true);if(formular){http.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8")}oAjaxLight.mHandleReadyState(http,callback);http.send(postData||null);return http},mHandleReadyState:function(http,callback){http.onreadystatechange=function(){if(http&&http.readyState==4&&http.status==200){if(callback){callback(http)}}}},mGetXHR:function(){var http;try{http=new XMLHttpRequest;oAjaxLight.mGetXHR=function(){return new XMLHttpRequest}}catch(e){var msxml=["MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];for(var i=0,len=msxml.length;i<len;++i){try{http=new ActiveXObject(msxml[i]);oAjaxLight.mGetXHR=function(){return new ActiveXObject(msxml[i])};break}catch(e){}}}return http}};var oTrace={mWrite:function(msg){window.status=msg}};function $(id){return document.getElementById(id)}function $$(strClass,strTag,objContElm){strTag=strTag||"*";objContElm=objContElm||document;var objColl=(strTag=="*"&&document.all&&!window.opera)?document.all:objContElm.getElementsByTagName(strTag);var arr=new Array();var delim=strClass.indexOf("|")!=-1?"|":" ";var arrClass=strClass.split(delim);for(var i=0,j=objColl.length;i<j;i++){var arrObjClass=objColl[i].className.split(" ");if(delim==" "&&arrClass.length>arrObjClass.length){continue}var c=0;comparisonLoop:for(var k=0,l=arrObjClass.length;k<l;k++){for(var m=0,n=arrClass.length;m<n;m++){if(arrClass[m]==arrObjClass[k]){c++}if((delim=="|"&&c==1)||(delim==" "&&c==arrClass.length)){arr.push(objColl[i]);break comparisonLoop}}}}return arr}var oGod={DUMMY_LINK:"javascript:void(false);",oBroadcast:{},iLanguage:0,aResizers:[],aLoaders:[],mPush:function(){arguments[0][arguments[0].length]=arguments[1]},mOnload:function(){var i=0;while(i<arguments.length){oGod.mPush(oGod.aLoaders,arguments[i++])}},mOnresize:function(){var i=0;while(i<arguments.length){oGod.mPush(oGod.aResizers,arguments[i++])}},mExecute:function(){var i=0;while(i<arguments[0].length){arguments[0][i++]()}},mResize:function(){oGod.mExecute(oGod.aResizers)},mLoad:function(){oGod.mExecute(oGod.aLoaders);oGod.mBroadcast("onload statements evaluated")},mSubscribe:function(sBroadcast,oFunction){if(!oGod.oBroadcast[sBroadcast]){oGod.oBroadcast[sBroadcast]=[oFunction]}else{oGod.mPush(oGod.oBroadcast[sBroadcast],oFunction)}},mUnsubscribe:function(sBroadcast,oFunction){var aSubscribers=oGod.oBroadcast[sBroadcast];var i=0;while(aSubscribers[i]){if(aSubscribers[i]==oFunction){aSubscribers[i]=new Function()}i++}},mBroadcast:function(sBroadcast){if(oGod.oBroadcast[sBroadcast]){oGod.mExecute(oGod.oBroadcast[sBroadcast])}}};var oClient={mEval:function(bStatement){return bStatement?true:false},mPass:function(){oClient.bMozilla=oClient.mEval(document.evaluate);oClient.bOpera=oClient.mEval(window.opera&&document.addEventListener);oClient.bIE=oClient.mEval(document.all&&document.createElement&&!oClient.bOpera);oClient.bIEwin=oClient.mEval(oClient.bIE&&navigator.platform.indexOf("Win")!=-1);oClient.bIEwinOld=oClient.mEval(oClient.bIEwin&&!window.XMLHttpRequest);oClient.bIE7plus=oClient.mEval(oClient.bIEwin&&window.XMLHttpRequest);oClient.bIEmac=oClient.mEval(oClient.bIE&&!oClient.bIEwin);oClient.bSafari=oClient.mEval(navigator.appVersion.toLowerCase().indexOf("safari")!=-1);oClient.bPass=oClient.bMozilla||oClient.bOpera||oClient.bIE||oClient.bSafari;return oClient.bPass}};var oTools={mInit:function(){if(!window.Node){window.Node={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3}}if(!Array.prototype.push){Array.prototype.push=function(){var iLength=this.length;var i=0;while(i<arguments.length){this[iLength+i]=arguments[i++]}return this.length}}String.prototype.contains=function(sString){return this.indexOf(sString)!=-1};String.prototype.attach=function(sClass){var string=this;return string+=(string==""?"":" ")+sClass};String.prototype.detach=function(sClass){var string=this;return string.replace((string.contains(" ")?" ":"")+sClass,"")}},mListener:function(bAdd,oNode,sEvent,oHandler,bCapture){if(document.addEventListener){oNode[bAdd?"addEventListener":"removeEventListener"](sEvent,oHandler,bCapture)}else{if(document.attachEvent){oNode[bAdd?"attachEvent":"detachEvent"]("on"+sEvent,oHandler)}else{oNode["on"+sEvent]=bAdd?oHandler:null}}},mContains:function(oNode,oTarget){var bContains=false;while(oNode.parentNode){if(oNode.parentNode==oTarget){bContains=true;break}else{oNode=oNode.parentNode}}return bContains},mGetAncestorByNodeName:function(oNode,sNodeName){while(oNode.parentNode){if(oNode.parentNode.nodeName.toLowerCase()==sNodeName){return oNode.parentNode;break}else{oNode=oNode.parentNode}}return null},mInfectnodetree:function(oNode,oHandler){oHandler(oNode);var i=0;while(i<oNode.childNodes.length){if(oNode.childNodes.item(i).nodeType==Node.ELEMENT_NODE){oTools.mInfectnodetree(oNode.childNodes.item(i),oHandler)}i++}},mDeclare:function(sClasses){if(oClient.bMozilla){if(document.styleSheets.length>0){var oSheet=document.styleSheets[document.styleSheets.length-1];if(oSheet){oSheet.insertRule(sClasses,oSheet.cssRules.length)}}else{}}else{document.write('<style type="text/css">'+sClasses+"</style>")}},mMount:function(){var i=0,sRef;while((sRef=arguments[i++])!=null){this[sRef]=document.getElementById(sRef)?document.getElementById(sRef):null}},mWindow:function(sProperty){var iReturn;var oDocelement=document.body;switch(sProperty){case"xscroll":iReturn=window.pageXOffset||oDocelement.scrollLeft;break;case"yscroll":iReturn=window.pageYOffset||oDocelement.scrollTop;break;case"height":iReturn=window.innerHeight||(document.documentElement.clientHeight||document.body.clientHeight);break;case"width":iReturn=window.innerWidth||(document.documentElement.clientWidth||document.body.clientWidth);break;case"top":iReturn=oClient.bIE?window.screenTop:window.screenY;break;case"left":iReturn=oClient.bIE?window.screenLeft:window.screenX;break}return isNaN(iReturn)?0:iReturn},mFindPos:function(obj,limit){var id=limit||"i_mpossibleId";var curleft=curtop=0;if(obj.offsetParent){curleft=obj.offsetLeft;curtop=obj.offsetTop;while(obj=obj.offsetParent){if(obj.id&&obj.id==id){break}curleft+=obj.offsetLeft;curtop+=obj.offsetTop}}return{left:curleft,top:curtop}}};var oLayout={mInit:function(){oLayout.oRoot=document[document.documentElement?(oClient.bIEmac?"body":"documentElement"):"body"];oLayout.oBody=document.body;oLayout.oHead=null;oLayout.oContent=null;oLayout.oSpots=null;oLayout.oMain=null;oLayout.oPopper=null;oLayout.oSubMenu=null;oLayout.mMount=oTools.mMount;oLayout.mMount("stage","workspace","appspace","spots","tabs","techmanifest");oLayout.oContent=document.getElementById("content");oLayout.oSpots=document.getElementById("spots");oLayout.oMain=document.getElementById("main");oLayout.oPopper=$("popper");oLayout.oSubMenu=$("menu");if(oLayout.oMain&&(oLayout.oContent||oLayout.oSpots)){oLayout.oHead=oLayout.oMain.getElementsByTagName("h1")[0]}oLayout.aHiddenKeys={popper:{type:"class",overlay:false},tabpanel:{type:"class",overlay:false},vilkaarene:{type:"id",overlay:false}};oLayout.aHiddenHeightValues=new Object();if(oLayout.oContent){for(key in oLayout.aHiddenKeys){var _o=oLayout.aHiddenKeys[key];if(_o.type&&_o.type=="id"){var _he=$(key);if(_he&&_he.offsetHeight){oLayout.aHiddenHeightValues[key]=_he.offsetHeight}_he=null}else{if(_o.type&&_o.type=="class"){var sTag=_o.tag?_o.tag:"div";var _ha=$$(key,sTag,oLayout.oContent);if(_o.overlay&&_o.overlay==true&&_ha.length>0){var _tmpHeight=oLayout.oContent.offsetHeight;for(var i=0,l=_ha.length;i<l;i++){_tmpHeight=_tmpHeight>_ha[i].offsetHeight?_ha[i].offsetHeight:_tmpHeight}oLayout.aHiddenHeightValues[key]=_tmpHeight}else{if(!_o.overlay||_o.overlay==false){var i=0;if(key=="tabpanel"){i=1}for(i,l=_ha.length;i<l;i++){oLayout.aHiddenHeightValues[key+"_"+i]=_ha[i].offsetHeight-50}}}_ha=null}}}}oLayout.oRoot.onkeydown=function(e){var oKeys=document.getElementById("accesskeys");e=e?e:window.event;var iKey=e.keyCode;if(iKey!=18&&iKey!=17&&e.altKey){var sKey=String.fromCharCode(iKey);if(sKey=="0"&&oKeys){oKeys.style.display=oKeys.style.display!="block"?"block":"none";oKeys.onclick=function(){return false}}else{if(oClient.bIEwin){var sNode=e.srcElement.nodeName.toLowerCase();var oLink=oLinks.oAccesskeys[sKey.toLowerCase()];if(oLink&&sNode!="input"&&sNode!="textarea"){if(oLink.onclick&&oLink.fireEvent){try{oLink.fireEvent("onclick")}catch(exception){}}else{document.location=oLink.href}}}}}};if(oClient.bIEwin){oLayout.oRoot.attachEvent("onclick",function(){var oNode=window.event.srcElement;if(oNode.href&&oNode.href.indexOf(oGod.DUMMY_LINK)!=-1){window.event.returnValue=false}});if(oClient.bIEwinOld){try{document.execCommand("BackgroundImageCache",false,true)}catch(err){}}}oGod.mSubscribe("onload statements evaluated",oLinks.mInit)},mSpot:function(){if(!oLayout.oBody||oLayout.bFixed){return}else{if(!oLayout.oBody.iLimit){oLayout.oBody.iLimit=979}}if(oLayout.oBody.offsetWidth<oLayout.oBody.iLimit&&(oLayout.oBody?oLayout.oBody.className.match(/\blarge\b/):true)){if(oLayout.oBody){oLayout.oBody.className=oLayout.oBody.className.replace(/\blarge\b/,"small")}}else{if(oLayout.oBody.offsetWidth>=oLayout.oBody.iLimit&&(oLayout.oBody?oLayout.oBody.className.match(/\bsmall\b/):true)){if(oLayout.oBody){oLayout.oBody.className=oLayout.oBody.className.replace(/\bsmall\b/,"large")}}}},mSuspendNative:function(elm){},mScroll:function(){if(!oLayout.toolbar){return}else{if(oClient.bMozilla){document.documentElement.addEventListener("DOMAttrModified",function(e){if(e.attrName=="curpos"){oLayout.mToolbar()}},false)}else{(oClient.bIEwin?oLayout.appspace:window).onscroll=oLayout.mToolbar}}},mToolbar:function(bFloat){if(oClient.bIEmac){oLayout.stage.appendChild(oLayout.toolbar);return}else{if(!oLayout.toolbar||(oLayout.toolbar.bFloat!=null&&oLayout.toolbar.bFloat==false)){return}else{if(bFloat==false){oLayout.stage.appendChild(oLayout.toolbar);oLayout.toolbar.bFloat=false;return}}}oLayout.toolbar.style.left=oLayout.workspace.offsetLeft+1+"px";oLayout.iScroll=oClient.bIEwin?oLayout.appspace.scrollTop:window.pageYOffset?window.pageYOffset:document.body.scrollTop;oLayout.iClientHeight=window.innerHeight?window.innerHeight:document.body.clientHeight;var b1=oLayout.toolbar.offsetTop>oLayout.workspace.offsetHeight-oLayout.iScroll-60;var b2=oLayout.workspace.offsetHeight-oLayout.iScroll-oLayout.iClientHeight>60;switch(oLayout.toolbar.parentNode){case document.body:if(b1){oLayout.stage.appendChild(oLayout.toolbar)}break;case oLayout.stage:if(b2){document.body.appendChild(oLayout.toolbar)}break;default:if(b1){oLayout.stage.appendChild(oLayout.toolbar)}if(b2){document.body.appendChild(oLayout.toolbar)}break}if(oLayout.toolbar.flex){oLayout.toolbar.flex()}},mClose:function(){oTools.mDeclare("#appspace, #techmanifest { visibility:hidden; }")},mOpen:function(){oLayout.mToolbar();if(oLayout.appspace){oLayout.appspace.style.visibility="visible"}if(oLayout.toolbar){oLayout.toolbar.style.visibility="visible"}if(oLayout.techmanifest){oLayout.techmanifest.style.display="none"}oGod.mBroadcast("core functions evaluated")},mUpdate:function(){oLayout.mToolbar();if(oClient.bIEwin&&oLayout.toolbar){oLayout.toolbar.style.display="none";oLayout.toolbar.style.display="block"}oGod.mBroadcast("layout updated")},mFlex:function(oNode){var bToolbar=oNode==oLayout.toolbar;var sAutoflex=oNode.currentStyle.width;var iMaxclient=979;var iMinclient=770;var iMinwidth=738;var iMaxwidth=984;oNode.flex=function(){if(bToolbar&&this.parentNode==oLayout.stage){this.style.width="100%";return}var iWidth=window.oTools.mWindow("width");if(iWidth>iMaxclient&&this.sFlex!="max"){this.sFlex="max"}else{if(iWidth<iMinclient&&this.sFlex!="min"){this.sFlex="min"}else{if(iWidth<iMaxclient&&iWidth>iMinclient&&this.sFlex!="auto"){this.sFlex="auto"}}}switch(this.sFlex){case"min":this.style.width=iMinwidth+(bToolbar?15:0)+"px";break;case"max":this.style.width=iMaxwidth+(bToolbar?15:0)+"px";break;case"auto":this.style.width=sAutoflex;break}};oNode.flex();window.attachEvent("onresize",function(){oNode.flex()})},mPrint:function(){try{window.print()}catch(exception){alert("Din browser understøtter ikke automatisk print.")}}};var oLinks={oAccesskeys:{},aHints:[],mInit:function(){var oLink,i=0,sHref=document.location.href.toString();while((oLink=document.links[i++])!=null){var sKey=oLink.getAttribute("accesskey");if(sKey){oLinks.oAccesskeys[sKey]=oLink}if(oLink.href==sHref&&!oClient.bOpera){oLayout.oFocus=oLink;var focus=function(){try{oLayout.oFocus.focus()}catch(hiddenElementException){}};oGod.mSubscribe("core functions evaluated",focus)}if(oLink.rel){oLinks.mRel(oLink)}}oLinks.mHints();oGod.mBroadcast("hyperlink actions implemented")},mRel:function(oLink){function lookup(sRel){var rel=oLinks.oRels[sRel];if(rel){rel(oLink)}else{var split=sRel.split("#");var specialrel=oLinks.oRels[split[0]];if(specialrel){specialrel(oLink,split[1])}}}var i=0,sRel,aRels=oLink.rel.split(" ");while((sRel=aRels[i++])!=null){lookup(sRel)}},mPopup:function(oLink,sArgs){var aTitles=["Siden åbner i et nyt vindue","Opens a new window","Achtung popup"];if(!oLink.title){oLink.title=aTitles[oGod.iLanguage]}if(arguments[1]){oLink.onclick=function(){if(oLink.href.indexOf("portal4.erhverv")!=-1){if(oLink.href.indexOf("lang=en")!=-1){window.open(oLink.href,"OnlineBanking_english",sArgs);return false}else{window.open(oLink.href,"OnlineBanking",sArgs);return false}}else{if(oLink.href.indexOf("portal4.sydbank")!=-1){window.open(oLink.href,"NetBank",sArgs);return false}else{if(oLink.href.indexOf("sydbanktf")!=-1){}else{window.open(oLink.href,"Sydbank",sArgs);return false}}}}}else{oLink.target="_blank"}},mHints:function(){var z=10,i=oLinks.aHints.length,oLink;while((oLink=oLinks.aHints[--i])!=null){oLink.style.zIndex=z++}},oRels:{movie:function(oLink){oLink.onclick=oPlayer.mAppend;return false},welcome_player:function(oLink){oLink.onclick=oWelcome.mAppend;return false},welcome:function(oLink){oLink.onclick=oWelcome.mAppend;return false},pdf:function(oLink){oLinks.mPopup(oLink)},external:function(oLink){oLinks.mPopup(oLink)},elearning:function(oLink){var sArgs="width=791,height=571,scrollbars=0,resizeable=0";oLinks.mPopup(oLink,sArgs)},ebanking:function(oLink){var sArgs="status=1,scrollbars=1,resizable=1";oLinks.mPopup(oLink,sArgs)},popup:function(oLink,sType){var args="";if(arguments[1]){var iW=sType=="centerfold"?800:sType=="spreadfold"?600:454;var iH=571;var iT=0.5*(oTools.mWindow("height")-iH);var iL=0.5*(oTools.mWindow("width")-iW);args="width="+iW+",height=571,top="+iT+",left="+iL+",status=1,scrollbars=1,resizable=1"}oLinks.mPopup(oLink,args)},hint:function(oLink){oLinks.aHints.push(oLink);oLink.onfocus=function(e){e=e?e:window.event;var bActivate=e.type=="focus";this.className=this.className[bActivate?"attach":"detach"]("selected");var bodies=$$("body","span",oLink);if(bodies.length==1&&bActivate){var body=bodies[0];oLayout.mSuspendNative(body)}else{oLayout.mSuspendNative()}};oLink.onblur=oLink.onfocus;if(oClient.bOpera){oLink.onclick=oLink.focus}}}};var oMenus={mInit:function(){var i=0,oList,aLists=document.getElementsByTagName("ul");while((oList=aLists.item(i++))!=null){if(oList.className=="nl"){if(oList.parentNode.id=="topmenu"){oMenus.mTopmenu(oList)}else{oMenus.mSubmenu(oList)}}}},mTopmenu:function(oList){var self=this;function expand(e){e=e?e:window.event;if(e.keyCode&&e.keyCode!=13){return}var oA=e.target?e.target:e.srcElement;if(oA.nodeType==Node.TEXT_NODE){oA=oA.parentNode}if(!oA.href||oA.bToolbox){return}else{oList.onmouseup=listen}if(oA.href==oGod.DUMMY_LINK){var oLI=oA.parentNode;var oUL=oLI.parentNode;reset(oUL.getElementsByTagName("ul"));reset(oUL.getElementsByTagName("a"));try{oLI.getElementsByTagName("ul").item(0).className="active";if(oUL.className=="active"){oUL.className="on"}if(self.oTimeout){clearTimeout(self.oTimeout)}self.oTimeout=setTimeout(collapse,12000);oA.className="on"}catch(exception){oUL.className="on";oA.className="selected";if(self.oTimeout){window.clearTimeout(self.oTimeout)}}}}function collapse(){reset(oList.getElementsByTagName("ul"));reset(oList.getElementsByTagName("a"));if(self.oTimeout){window.clearTimeout(self.oTimeout)}if(aSelects.length){var i=0,oA;while((oA=aSelects[i++])!=null){var oLI=oA.parentNode;var oUL=oLI.getElementsByTagName("ul").item(0);if(oUL){oUL.className="on";oA.className="on"}else{oA.className="selected"}}}}function listen(){oLayout.oRoot.onmousedown=function(e){e=e?e:window.event;var oNode=e.target?e.target:e.srcElement;if(!oTools.mContains(oNode,oList)){collapse()}this.onmousedown=null}}function reset(aNodes){if(aNodes.length){var i=0,oNode;while((oNode=aNodes.item(i++))!=null){if(!oNode.bToolbox&&oNode.className!=""){oNode.className="reset"}}}}var i=0,aSelects=[],oLink,aLinks=oList.getElementsByTagName("a");while((oLink=aLinks.item(i++))!=null){if(!oLink.href){oLink.href=oGod.DUMMY_LINK}if(oLink.className=="on"||oLink.className=="selected"){aSelects[aSelects.length]=oLink}}oList.onmousedown=expand;oList.onkeydown=expand},mSubmenu:function(oList){function action(e){e=e?e:window.event;if(e.type=="keydown"&&e.keyCode!=13){return}var oNode=e.target?e.target:e.srcElement;if(oNode.nodeType==3){oNode=oNode.parentNode}var oList=oNode.parentNode.getElementsByTagName("ul").item(0);var bUpdate=true;switch(oNode.className){case"label":oNode.className="on";oList.className="on";break;case"on":oNode.className="label";oList.className="";break;default:bUpdate=false}oLayout.mUpdate()}var i=0,oLink,aLinks=oList.getElementsByTagName("a"),bSitemap=document.getElementById("sydbanksitemap");while((oLink=aLinks.item(i++))!=null){if(!oLink.href){oLink.href=oGod.DUMMY_LINK}if(bSitemap&&oLink.className=="label"){oLink.className="on";oLink.parentNode.getElementsByTagName("ul").item(0).className="on"}}oList.onmousedown=action;oList.onkeydown=action}};var oBox={mInit:function(){var oTopmenu=document.getElementById("topmenu");var oToolbox=document.getElementById("toolbox");var oToolboxlinks=null;if(oToolbox&&oTopmenu){protect(oToolbox);oToolbox.onmouseover=show;oToolbox.onkeydown=show;if(document.getElementById("toolbox").getElementsByTagName("ul")[0]){oToolboxlinks=document.getElementById("toolbox").getElementsByTagName("ul")[0].getElementsByTagName("a");var j=oToolboxlinks.length;while(j>0){oToolboxlinks[--j].onmouseup=hide}}oTopmenu.onmouseover=function(e){if(e){e.stopPropagation()}else{window.event.cancelBubble=true}}}function protect(node){if(node.nodeType==Node.ELEMENT_NODE){node.bToolbox=true}var i=node.childNodes.length;while(i>0){protect(node.childNodes.item(--i))}}function show(e){e=e?e:window.event;if(e.type=="keydown"){if(e.keyCode==9){return}function collapse(event){var oNode=event.target?event.target:event.srcElement;if(!oTools.mContains(oNode,oToolbox)){hide();this.onfocus=null}}oLayout.workspace.onfocus=collapse}if(oToolbox.className==""){oToolbox.className="open";oToolbox.onmouseover=null;document.body.onmouseover=hide}}function hide(e){setTimeout(function(){oToolbox.className="";oToolbox.onmouseover=show;oTopmenu.onmouseout=null;document.body.onmouseover=null},250)}}};function findPosX(obj){var curleft=0;if(obj.offsetParent){while(obj.offsetParent){curleft+=obj.offsetLeft;obj=obj.offsetParent}}else{if(obj.x){curleft+=obj.x}}return curleft}function getHeight(obj){var xPos=(obj.offsetHeight);return xPos}function ExceptionPost(exCode,userMsg,systemMsg,exDetail){this.exCode=exCode;this.userMsg=userMsg;this.systemMsg=systemMsg;this.exDetail=exDetail}function exceptionHandler(){this.exList=new Array();this.addExceptionPost=function(ExP){this.exList[this.exList.length]=ExP};this.viewExceptions=function(){var outStr="";var i;var txNode;for(i=0;i<this.exList.length;i++){outStr+=this.exList[i].userMsg+"\n("+this.exList[i].exCode+"):\n"+this.exList[i].systemMsg+"\n\n"}var errPop=document.getElementById("errorPopperText");if(errPop){txNode=document.createTextNode(outStr);errPop.appendChild(txNode)}};this.createDOMExceptionView=function(){var errTxtContainer=document.createElement("p");var errTxtList=document.createElement("ul");var errItem;var errorCode;var txNode;var errItemParagraph;var errPop=document.getElementById("errorPopperText");if(errPop){for(var el=0;el<exHandler.exList.length;el++){errItem=document.createElement("li");txNode=document.createTextNode(exHandler.exList[el].userMsg);errItemParagraph=document.createElement("p");errItemParagraph.appendChild(txNode);errItem.appendChild(errItemParagraph);txNode=document.createTextNode(exHandler.exList[el].exCode);errItemParagraph=document.createElement("p");errItemParagraph.appendChild(txNode);errItem.appendChild(errItemParagraph);txNode=document.createTextNode(exHandler.exList[el].systemMsg);errItemParagraph=document.createElement("p");errItemParagraph.appendChild(txNode);errItem.appendChild(errItemParagraph);errTxtList.appendChild(errItem)}errTxtContainer.appendChild(errTxtList);errPop.appendChild(errTxtContainer)}};this.exceptionTest=function(){var tbError=document.getElementById("tbError");if(tbError){if(exHandler.exList.length>0){tbError.style.display="inline"}else{tbError.style.display="none"}}exHandler.createDOMExceptionView()};this.handleClientFaultNode=function(faultNode){var tCode=faultNode.getElementsByTagName("code")[0];var tReason=faultNode.getElementsByTagName("reason")[0];var tDetails=faultNode.getElementsByTagName("details")[0];var exCode=tCode.getElementsByTagName("value")[0].childNodes[0].nodeValue;var userMsg=tReason.getElementsByTagName("text")[0].childNodes[0].nodeValue;var systemMsg=tReason.getElementsByTagName("message")[0].childNodes[0].nodeValue;var exDetail=(tDetails)?tDetails.childNodes[0].nodeValue:"";this.addExceptionPost(new ExceptionPost(exCode,userMsg,systemMsg,exDetail));this.exceptionTest()}}var oWelcome={mAppend:function(){if(!document.getElementById("welcome-application")){var sRel=typeof(this.rel)!="undefined"?this.rel:null;var oBody=document.getElementsByTagName("body")[0];oBody.className="fixed";var oDiv=document.createElement("div");oDiv.setAttribute("id","welcome-application");oBody.appendChild(oDiv);var params={menu:"false",wmode:"transparent",base:"/inc/flash-swf/velkommen"};if(sRel==="welcome_player"){swfobject.embedSWF("/inc/flash-swf/velkommen/player-saa-let-skifter-modal.swf","welcome-application","100%","100%","9.0","/inc/flash-swf/expressInstall.swf",null,params,null,oWelcome.mFit)}else{var flashvars={siteVersion:"0.1"};swfobject.embedSWF("/inc/flash-swf/velkommen/preloader.swf?siteVersion=0.1","welcome-application","100%","100%","9.0","/inc/flash-swf/expressInstall.swf",flashvars,params,null,oWelcome.mFit)}oGod.mOnresize(oWelcome.mFit);return false}},mClose:function(){var oBody=document.getElementsByTagName("body")[0];oBody.removeChild(document.getElementById("welcome-application"));oBody.className="large"},mFit:function(){var iViewPortHeight=document.documentElement.clientHeight;var iViewPortWidth=document.documentElement.clientWidth;var iBodyHeight=Math.max(Math.max(document.body.scrollHeight,document.documentElement.scrollHeight),Math.max(document.body.offsetHeight,document.documentElement.offsetHeight),Math.max(document.body.clientHeight,document.documentElement.clientHeight));var iBodyWidth=Math.max(Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),Math.max(document.body.offsetWidth,document.documentElement.offsetWidth),Math.max(document.body.clientWidth,document.documentElement.clientWidth));var iStageHeight=0;var iStageWidth=0;if(document.getElementById("workspace")){iStageHeight=document.getElementById("workspace").offsetHeight+40;iStageWidth=document.getElementById("workspace").offsetWidth}else{iStageHeight=document.getElementById("wrapper").offsetHeight+40;iStageWidth=document.getElementById("wrapper").offsetWidth}var iHeight=iViewPortHeight<iStageHeight?iBodyHeight+"px":"100%";var iWidth=iViewPortWidth<iStageWidth?iBodyWidth+"px":"100%";document.getElementById("welcome-application").style.height=iHeight;document.getElementById("welcome-application").style.width=iWidth;document.getElementById("welcome-application").style.display="none";document.getElementById("welcome-application").style.display="block"}};var oPlayer={sId:"sydbank-player",mAppend:function(){if(!document.getElementById(oPlayer.sId)){var sSource=this.href;var oBody=document.getElementsByTagName("body")[0];oBody.className="fixed";var oDiv=document.createElement("div");oDiv.setAttribute("id",oPlayer.sId);oBody.appendChild(oDiv);var params={menu:"false",wmode:"transparent"};swfobject.embedSWF(sSource,oPlayer.sId,"100%","100%","9.0","/inc/flash-swf/expressInstall.swf",null,params,null,oPlayer.mFit);oGod.mOnresize(oPlayer.mFit);return false}},mClose:function(){var oBody=document.getElementsByTagName("body")[0];oBody.removeChild(document.getElementById(oPlayer.sId));oBody.className="large"},mFit:function(){var iViewPortHeight=document.documentElement.clientHeight;var iViewPortWidth=document.documentElement.clientWidth;var iBodyHeight=Math.max(Math.max(document.body.scrollHeight,document.documentElement.scrollHeight),Math.max(document.body.offsetHeight,document.documentElement.offsetHeight),Math.max(document.body.clientHeight,document.documentElement.clientHeight));var iBodyWidth=Math.max(Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),Math.max(document.body.offsetWidth,document.documentElement.offsetWidth),Math.max(document.body.clientWidth,document.documentElement.clientWidth));var iStageHeight=0;var iStageWidth=0;if(document.getElementById("workspace")){iStageHeight=document.getElementById("workspace").offsetHeight+40;iStageWidth=document.getElementById("workspace").offsetWidth}else{iStageHeight=document.getElementById("wrapper").offsetHeight+40;iStageWidth=document.getElementById("wrapper").offsetWidth}var iHeight=iViewPortHeight<iStageHeight?iBodyHeight+"px":"100%";var iWidth=iViewPortWidth<iStageWidth?iBodyWidth+"px":"100%";document.getElementById(oPlayer.sId).style.height=iHeight;document.getElementById(oPlayer.sId).style.width=iWidth;document.getElementById(oPlayer.sId).style.display="none";document.getElementById(oPlayer.sId).style.display="block"}};var exHandler=new exceptionHandler();if(oClient.mPass()){window.onload=oGod.mLoad;window.onresize=oGod.mResize;oGod.mOnload(oTools.mInit,oLayout.mInit,oMenus.mInit,oBox.mInit,oLayout.mScroll,oLayout.mSpot,exHandler.exceptionTest);oGod.mOnresize(oLayout.mSpot,oLayout.mToolbar,oLayout.mUpdate)};
