var SIG='NULL'; var A=null; var nlstring='<p class="notice">Bardzo Pa&#324;stwa przepraszamy,<br> ale strona <font color="#ffffff">RTV FOKA CALGARY</font> nie mo&#380;e by&#263; obs&#322;u&#380;ona w tym momencie. Przyczyn&#261; mo&#380;e by&#263; problem z po&#322;&#261;czeniem do serwera, lub chwilowa niedost&#281;pno&#347;&#263; serwera. <font color="#ff0000">(ErrorCode=QXXQ)</font></p>'; window.onload=init; function init() { setTimeout("init0();",1000); } function init0() { if (SIG=='FOKA') { setTimeout("init1();",1000); } else if (SIG=='ERR1') { window.location.href="http://www.foka.org";   } else { document.getElementById('foka').innerHTML=''; document.getElementById('foka').id = 'err'; document.getElementById('err').innerHTML=nlstring.replace(/QXXQ/,SIG); } } function B(){var C=false; if(window.XMLHttpRequest){C=new XMLHttpRequest();} else if (window.ActiveXObject){try{C=new ActiveXObject("Msxml2.XMLHTTP");} catch(e) {try{C=new ActiveXObject("Microsoft.XMLHTTP");} catch(e) {C=false;}}} return C;} function G(D,E){if(D.readyState==4){if(D.status==200 || D.status==304){E(D.responseText);}}} function sRG(F,E){var D=B(); if(D){D.onreadystatechange=function(){G(D,E);};D.open("GET",F,true);D.setRequestHeader("Content-Type","text/xml");D.send(null);}} function sRP(F,H,E){var D=B();if(D){D.onreadystatechange=function(){G(D,E);};D.open("POST",F,true);D.setRequestHeader("Content-Type","application/x-www-form-urlencoded");D.setRequestHeader("Content-Length",H.length);D.setRequestHeader("Connection","close");D.send(H);}} function sRGS(F){var D=B();var J='***ERROR***';if(D){D.open("GET",F,false);D.setRequestHeader("Content-Type","text/xml");D.send(null);J=D.responseText;} return J;} function sRPS(F,H){var D=B();var J='***ERROR***';if(D){D.open("POST",F,false);D.setRequestHeader("Content-Type","application/x-www-form-urlencoded");D.setRequestHeader("Content-Length",H.length);D.setRequestHeader("Connection","close");D.send(H);J=D.responseText;} return J;} var el,i,val=null; for (i=0; (el=document.getElementsByTagName("meta")[i]); i++) { if (el.getAttribute("name")=="ClassCode") { val=el.getAttribute("content"); break; } } if (val!=null) { if (val.length==15) { A = sRPS("rtvfc.aspx","x="+val+"&qcbyvc231va1qx55oqdypx450R0jqqx3j454a34ty45z5z04pmj=qcbyvc231va1qx55oqdypx45123jqqx3j454a34ty45z5z04pmj"); if (A.substring(0,8) == '/*FOKA*/' && A.substr(A.length-10,10)=='/*THEEND*/') eval(A); else if (A.length==4 && A.substr(0,3)=='ERR') SIG=A; else SIG='SRPS'; } else { SIG='BATT'; } } else { SIG='NMET'; }

