

var domWrite=(function(){var dw=document.write,dwln=document.writeln,myCalls=[],t="",checkMs=400,maxMs=200,maxT;function getid(){var myDate=new Date();return"_"+myDate.getTime()+"_"+Math.random().toString().replace(/\./,"");}function startnext(){if(myCalls.length>0){switch(myCalls[0].stat){case 0:myCalls[0].start();startnext();break;case 1:myCalls[0].startload();break;case 4:myCalls[0].resume();break;case 5:myCalls.shift();startnext();break;}}else{}}function fillStack(pCall){var regexp1=/[^'"]*<script[^>]*>([\s\S]*?)<\/script[^>]*>[^'"]*/gi,regexp2=/src[^=]*=[^'"]*['"]([^'"]*?)['"]/i,regexp3=/<script[^>]*>/gi,hasScript;while(pCall.buf!==""){hasScript=(pCall.buf.toLowerCase()).indexOf("<script")>-1?true:false;if(!hasScript){pCall.stack.push({type:"HTML",str:pCall.buf});pCall.buf="";}else{var i=(pCall.buf.toLowerCase()).indexOf("<script");if(i!==0){pCall.stack.push({type:"HTML",str:pCall.buf.substr(0,i)});pCall.buf=pCall.buf.substr(i);}else{if(((pCall.buf.toLowerCase()).indexOf("src")===-1)||((pCall.buf.toLowerCase()).indexOf("src")>pCall.buf.indexOf(">"))){var myMatch=pCall.buf.match(regexp1),myCode=" "+myMatch+" ";myCode=myCode.replace(/[^'"]*<script[^>]*>/gi,"");myCode=myCode.replace(/<\/script[^>]*>[^'"]*/gi,"");myCode=myCode.replace("<!--// <![CDATA[","");myCode=myCode.replace("// ]]> -->","");pCall.stack.push({type:"CODE",str:myCode});pCall.buf=pCall.buf.substr(pCall.buf.indexOf(">")+1);pCall.buf=pCall.buf.substr(myMatch.length);pCall.buf=pCall.buf.substr(pCall.buf.indexOf(">")+1);}else{var myMatch=pCall.buf.match(regexp2);pCall.stack.push({type:"FILE",str:myMatch[1]});if(pCall.buf.indexOf("/>")<pCall.buf.indexOf(">")){pCall.buf=pCall.buf.substr(pCall.buf.indexOf(">")+1);pCall.buf=pCall.buf.substr(pCall.buf.indexOf(">")+1);}else{pCall.buf=pCall.buf.substr(pCall.buf.indexOf("/>")+2);}}}}}outputStack(pCall);}function outputStack(pCall){while(pCall.stack.length>0){var myPart=pCall.stack.shift();switch(myPart.type){case"HTML":pCall.e.innerHTML=pCall.e.innerHTML+myPart.str;break;case"CODE":try{eval(myPart.str);}catch(e){}pCall.e.innerHTML=pCall.e.innerHTML+pCall.buf;pCall.buf="";pCall.oldbuf="";break;case"FILE":pCall.pause();domWrite(pCall.e,myPart.str,null,(maxMs||1000),true);return;break;}}pCall.stop();startnext();}function testDone(pCall){var myCall=pCall;return function(){if(myCall.buf!==myCall.oldbuf){myCall.oldbuf=myCall.buf;t=window.setTimeout(testDone(myCall),myCall.ms);}else{fillStack(myCall);}};}function MyCall(pDiv,pSrc,pOnBefore,pContinue,pForce){this.e=(typeof pDiv=="string"?document.getElementById(pDiv):pDiv),this.f=pOnBefore||function(){},this.cont=pContinue||false,this.force=pForce||false,this.stat=0,this.dw,this.src=pSrc,this.buf="",this.oldbuf="",this.ms=checkMs||200,this.scripttag,this.t,this.stack=[];}MyCall.prototype={start:function(){this.stat=1;},startload:function(){this.stat=2;this.f.apply(window);var that=this;document.write=(function(){var o=that,cb=testDone(o);if(o.cont!==false){window.setTimeout(function(){o.stat=5;fillStack(o);},o.cont);}return function(pString){o.stat=3;if(o.cont===false){window.clearTimeout(o.t);}o.oldbuf=o.buf;o.buf+=pString;if(o.cont===false){o.t=window.setTimeout(cb,o.ms);}};})();document.writeln=document.write;this.dw=document.write;this.dwln=document.writeln;var s=document.createElement("script");s.setAttribute("language","javascript");s.setAttribute("type","text/javascript");s.setAttribute("src",this.src);this.e.appendChild(s);},resume:function(){this.stat=3;document.write=this.dw;document.writeln=this.dwln;outputStack(myCalls[0]);},pause:function(){this.stat=4;},stop:function(){window.clearTimeout(this.t);this.stat=5;}};return function(pDiv,pSrc,pFunc,pContinue,pForce){if(myCalls.length>0&&pForce!==true){window.setTimeout(function(){domWrite(pDiv,pSrc,pFunc,pContinue);},1000);return;}var c=new MyCall(pDiv,pSrc,pFunc,pContinue);if(pContinue){myCalls.unshift(c);startnext();}else{myCalls.push(c);}if(myCalls.length===1){startnext();}};})();

var zonenamesi = 0;
var zonenames = new Array();
    for (var zonename in OA_zones) {
        if (document.getElementById(zonename) && OA_output[zonename]!="") {
			zone=document.getElementById(zonename);
		var execute = zone.innerHTML.replace("<!--","");
		execute = execute.replace("!-->","");
            eval(execute); 
			if (zone.parentNode && zone.parentNode.style.display=="none") zone.parentNode.style.display="";
            }
		//else if (document.getElementById(zonename) && OA_output[zonename]=="") {
		//	if (document.getElementById(zonename).parentNode) document.getElementById(zonename).parentNode.style.display="none";
        // }
		}
window.onload = function() {eval(text);};
