if(!window.Inpl){
window.Inpl=new Object();
}
Inpl.Sg7=new function(){
var _1={};
var fn="Inpl.Sg7.";
var _3="T_";
var _4=2592000;
var _5=[{"name":"domy\ufffdż\ufffdlny","file":"/j/s.80328.css"},{"name":"niebieski","file":"/j/s1/s.80328.css"},{"name":"zielony","file":"/j/s2/s.80328.css"},{"name":"br\ufffdż\ufffdzowy","file":"/j/s3/s.80328.css"},{"name":"r\ufffdż\ufffdowy","file":"/j/s4/s.80328.css"}];
var _6="/j/s5/s.80114.css";
var _7=this;
var _8=false;
var _9;
var _a;
var _b=13;
var _c=false;
var _d={"seeAlso":["B22b8OL4JNnfTeiHYJmbZ7RI.oNWsrrd82FIQBUWZ7b.M7","B3OVVOOaySy.288OmOpfm2azXoxZEHsOztyYFJ8Kb0L.A7","nA46FgiybwZZPFfuggjlD_UTfUqR.oc_YQISSA0zWv7.M7","1vY6QWNUb32fqF2WaLPXc7eszZZkkaciXw1Sl0b_93n.H7","nd070Ht_FNjkHbhRrQRTbLPo.oNW8rrdic1IQGCnv1..E7"],"news":["B9Ob8OMaJNopR65GmJButWYT7AlZ0NAkbslMqs9Pksr.j7","B9OV9OMayay.Cy9sUEK.8Gaz7H9ZENAIBFTGSpq26sn.q7","ogiaeL85fz3kB_huv2y1ure93w5ks6955jvqi0vQwOD.w7",".KiQ1.gjo6UpbWEjYouRbbe9P8Jks27W5hv6UsvNmNn.F7","AqI6GK_qbz1eB7gY1_x9tsWo33fBw6_FwbfqTj18aJn.J7"],"business":["B9M1NOMauSrfF1W1YOvTg2YTTBNZ0JBVzjacAEclwqP.R7","..fqIPhzv6cjvM2Dsez7gadyrmeUHptM6UKbkxxnD9n.y7","olHgvb7X4w4uZuasZ7F.b.WoDrGRAFudbtrr5_KXD8n.O7","ofhKgb8Jz6iENF1kZ69DRacUnISUwrCHv685RccYotz.G7",".FhA3Pfj8w_JZdYYOsKnbqbS.DiU3n.kiYVJy8w9efr.97","nceQzXuso6VUYks9DPG97qe0..OUAnBWWUYMeTv8IkL.s7"],"sport":["nd2VVHt_ySxKMIUr7usbfrPoTBNW8pBVKRScfjgMwl..O7","oqgwtL_5k6QubXF1Z_6hA7bvP8JkKm7WzH90FHRfmIH.j7","p4OQzPNIo6UpZ6tIKFzdhdUK.BLBTnBm1LqGm00QItr.97",".Kiae.gjfz3DVOhuITa1Qre9HQFks8bt5nHifiPT65z.p7","AqIwEq_qk_20N9GRnya5_sVIHbbB08bxYPTC08V3q8X.37","nXebkntcJJDkjQ5gLcgO.JRLXhaGP3sqU3V4bUT41vb.c7"],"moto":["nd2VVnt_yWLkt4WL5QITh7Po.oNW8rrdKPRIQLhZ56D.a7","oqg6Fr_5bwaEl7gYZ6X1x7bvfcBkKocibOYSp6RlA3..H7","AqKQcq_qo_5UkkrvR2I9ucVIPzfB02_6iwoadxqtME7.07","B22b8uL4JBEpfa3mmE1mVbPoXoxW8nsOKUqYFDgblzv.n7","oqg6Fr_5bwYupvI_5zOqfrbv35hkKq_VbMXKZiRggF3.Q7"],"magazines":["B9M1NuMauWKJ5lVV4LnbW2YT.oNZ0LrdzkxIQMe2Pzr.Y7","nXc70ntcFBCETX4uHYEuopRpXoyGG3sOs0B4Sj2x11z.Z7","nG6a1ggyf4e50UfsWhnVOJdS33iUd6_FplZEyEy0AAD.U7","nXc1NntcuWHqYT9spoCPMJRp7AmGG9AkU2ds8kWAKtn.17","AqKadq_qfwb_YiHURzvig8VIHSDB08b9iy.CFJq507z.77"],"personal":["B201NOL4uSuJXJ7a4OefjrRIXoxWsnsO80GYkhT_Fv3.y7","B9Ob8OMaJNopR0gz0.O7BWazXqxZEHseB.8espo3F5n.D7","nXc1lHtcuauERz9cHSMHoZRp.mOGG7rNU71I4ETPZ27.A7"],"offers":["B9M1luMaueK.avWXUMHD9bQGTDNWzpBlU7z2WY1JAg3.T7","B9OVVuMayWOJTITp4CibX2X1.s1Z9LrZBF1oacJr.yv.w7","oqiQdL_5oyWOTAFq9_h5hbeP3y5kOq_JbNvKJcxIqKj.w7"],"competition":["cihF.Yd8NPZ3AGDUJ51GGpZzrtFdBkLNil5.kH3ZFXP.H7","0iHlPWdwJXWBnNDi7hrmwKPM.Di63hhZmVzdsijNmwj.W7","bO3rOd.kgKJMBZnBQtGhn6RunO66glgI_YJH4nmaav..x7","cihFXYd8NXYXuwEZX1guQ5Zz.DhdBhhZikhX9qZGQxP.r7","0iJLmWdwkKLntlAMdv.sMKPMnIS63lgsmQdH3tEcavH.O7"]};
var _e={};
var _f={};
this.isNarrow=function(){
return false;
};
this.clickTab=function(_10,_11,_12){
if(_1[_10]==_11&&$(_10+"Tabs").getElementsByTagName("LI")[_1[_10]].getElementsByTagName("A")[0].href){
return true;
}
fireEvent("onDisplayTabs"+_10+"_tab-"+_11,$(_10+"Tab"+_11));
removeEvent("onDisplayTabs"+_10+"_tab-"+_11);
var aUl=$(_10+"Tabs").getElementsByTagName("LI")[_1[_10]];
var aT=$(_10+"Tab"+_1[_10]);
aUl.className=aUl.className.replace("selected","");
aT.className=aT.className.replace("selected","");
$(_10+"Tabs").getElementsByTagName("LI")[_11].className+=" selected";
$(_10+"Tab"+_11).className+=" selected";
if(_11>=0){
setCookie(_3+_10,_11,!_12);
}else{
clearCookie(_3+_10,!_12);
}
try{
INTPL("hitGemius",_d[_10][_11]);
}
catch(e){
}
_1[_10]=_11;
return false;
};
this.setTab=function(_15,_16,_17){
if(_1[_15]==_16&&$(_15+"Tabs").getElementsByTagName("LI")[_1[_15]].getElementsByTagName("A")[0].href){
return true;
}
fireEvent("onDisplayTabs"+_15+"_tab-"+_16,$(_15+"Tab"+_16));
removeEvent("onDisplayTabs"+_15+"_tab-"+_16);
var aUl=$(_15+"Tabs").getElementsByTagName("LI")[_1[_15]];
var aT=$(_15+"Tab"+_1[_15]);
aUl.className=aUl.className.replace("selected","");
aT.className=aT.className.replace("selected","");
$(_15+"Tabs").getElementsByTagName("LI")[_16].className+=" selected";
$(_15+"Tab"+_16).className+=" selected";
if(_16>=0){
setCookie(_3+_15,_16,!_17);
}else{
clearCookie(_3+_15,!_17);
}
_1[_15]=_16;
return false;
};
this.initTab=function(_1a,_1b,_1c){
var lis=$(_1a+"Tabs").getElementsByTagName("LI"),oA;
for(var e in _1c){
this.attachEvent("onDisplayTabs"+_1a+"_tab-"+e,_1c[e]);
}
_1b=parseInt(_1b);
for(var i=0;i<lis.length;i++){
oA=lis[i].getElementsByTagName("A")[0];
oA.onclick=new Function("return "+fn+"clickTab(\""+_1a+"\","+i+","+(_1b?1:0)+")");
oA.hideFocus="true";
if(-1!=lis[i].className.indexOf("selected")){
_1[_1a]=i;
}
}
var _21=parseInt(INTPL("getCookie",_3+_1a));
if(_21>=0&&_21<lis.length){
this.setTab(_1a,_21,_1b?1:0);
}
};
this.setHome=function(a){
var r=true;
if(INTPL("isIe")&&!INTPL("isOldIe")){
a.style.behavior="url(#default#homepage)";
a.setHomePage(document.location);
r=false;
}
return r;
};
this.showCustom=function(){
INTPL("hitGemius","p82b8.LmJNoP6OiHAMcTAIaw7J8pg9AYRIhMaZqXknT.V7");
var oD,d=document;
if(!$("customPanel")){
oD=d.createElement("DIV");
oD.id="customPanel";
var _26="<p class=\"colours\"><span>Kolor:</span>";
for(var i=0;i<_5.length;i++){
_26+="<a href=\"#\" class=\"c"+i+(!i?" first":"");
_26+="\" title=\""+_5[i]["name"]+"\" onclick=\"return ";
_26+=fn+"setColour("+i+")\" style=\"background-position:left -"+(i*12)+"px\"></a>";
}
_26+="</p>";
oD.innerHTML=_26;
document.body.appendChild(oD);
}
oD=$("customPanel");
if("block"==oD.style.display){
this.hideCustom();
return false;
}
oD.style.visibility="hidden";
oD.style.display="block";
var o=$("custom");
var x=o.offsetWidth;
var y=o.offsetHeight-Math.round(oD.offsetHeight/2)+2;
while(o){
x+=o.offsetLeft;
y+=o.offsetTop;
o=o.offsetParent;
}
oD.style.top=y+"px";
oD.style.left=x+"px";
oD.style.visibility="visible";
oD.style.width="130px";
setTimeout(fn+"setHideCustom()",100);
return false;
};
this.setColour=function(_2b){
if(_2b){
setCookie("colour",_2b);
}else{
clearCookie("colour");
}
if(!_2b&&window.xmlhttprequest){
if($("cssColour")){
$("cssColour").parentNode.removeChild($("cssColour"));
}
}else{
if(!$("cssColour")){
var lnk=document.createElement("LINK");
lnk.type="text/css";
lnk.rel="stylesheet";
lnk.href=_5[_2b].file;
lnk.id="cssColour";
document.getElementsByTagName("HEAD")[0].appendChild(lnk);
}else{
$("cssColour").href=_5[_2b].file;
}
}
return false;
};
this.initColour=function(){
var c=parseInt(INTPL("getCookie","colour"));
if(c){
document.write("<link type=\"text/css\" rel=\"stylesheet\" href=\""+_5[c].file+"\" id=\"cssColour\" />");
}
document.write(unescape("%3Cstyle%20type%3D%22text%2Fcss%22%3E.noJsShow{display:none}\n.noJsHide{display:block}%3C%2Fstyle%3E"));
};
this.setBlack=function(){
document.write("<link type=\"text/css\" rel=\"stylesheet\" href=\""+_6+"\" id=\"cssColour\" />");
document.write(unescape("%3Cstyle%20type%3D%22text%2Fcss%22%3E.noJsShow{display:none}\n.noJsHide{display:block}%3C%2Fstyle%3E"));
};
this.hideCustom=function(){
var d=document;
$("customPanel").style.display="none";
if(d.removeEventListener){
d.removeEventListener("click",_7.hideCustom,false);
}else{
d.detachEvent("onclick",_7.hideCustom);
}
};
this.setHideCustom=function(){
var d=document;
if(d.addEventListener){
d.addEventListener("click",_7.hideCustom,false);
}else{
d.attachEvent("onclick",_7.hideCustom);
}
};
function setCookie(_30,_31,_32){
if(_32){
INTPL("setCookie",_30,_31);
}else{
INTPL("setCookie",_30,_31,_4,"/",location.host);
}
}
function clearCookie(_33,_34){
if(_34){
INTPL("setCookie",_33,"");
}else{
INTPL("setCookie",_33,"",-1,"/",location.host);
}
}
function $(id){
return document.getElementById(id);
}
this.initWeather=function(_36){
_a=_36;
};
function showWeather(_37){
_b=_37;
if(_37!=$("wCity").selectedIndex){
$("wCity").selectedIndex=_37;
}
for(var i=0;i<4;i++){
if(i==0){
img="<img src=\""+_a[_37][i][7]+"\" width=\"119\" height=\"115\" alt=\"\" />";
}else{
img="<img src=\""+_a[_37][i][5]+"\" width=\"48\" height=\"46\" alt=\"\" />";
}
$("weather"+(i+1)).innerHTML=img+"<h4>"+_a[_37][i][1]+"</h4>"+"<p><strong><span class=\"min\">"+parseInt(_a[_37][i][2])+"</span>/<span class=\"max\">"+parseInt(_a[_37][i][3])+"</span>&deg;C</strong>"+"<span class=\"press\">"+parseInt(_a[_37][i][4])+"</span> hPa</p>";
}
$("weatherUrl").href="http://pogoda.interia.pl/miasta?id="+_a[_37][0][0];
$("cityName").innerHTML=$("wCity").options[_37].text;
$("weatherIcon").innerHTML="<em>"+parseInt(_a[_37][0][2])+"</em>&deg;C <img src=\""+_a[_37][0][5]+"\" width=\"13\" height=\"13\" alt=\"\" />";
}
this.setCity=function(_39){
if(_b==_39){
return;
}
showWeather(_39);
setTimeout(fn+"setCityCookie("+_39+")",1);
return false;
};
this.initCity=function(){
var _3a=parseInt(INTPL("getCookie","city"));
if(_3a){
this.setCity(_3a-1);
}
};
this.setCityCookie=function(id){
setCookie("city",id+1);
};
this.showMail=function(o,p){
p=p||false;
if(!p){
document.location.href=addToken(o.href);
}else{
INTPL("openPopup",addToken(o.href),"mail",750,600);
if(-1!=o.parentNode.className.indexOf("new")){
o.parentNode.className=o.parentNode.className.replace("new","");
if($("mailCnt")){
var cnt=parseInt($("mailCnt").innerHTML.substr(1))-1;
$("mailCnt").innerHTML=cnt>0?"("+cnt+")":"";
}
}
}
return false;
};
this.newMail=function(o){
INTPL("openPopup",addToken(o.href),"newmail",750,600);
return false;
};
function addToken(_40){
var t=INTPL("getCookie","inpl_mail_token");
if(t){
return _40+((-1==_40.indexOf("?"))?"?":"&")+"uid="+t;
}else{
return _40;
}
}
this.initMail=function(){
if(logged()){
$("mailLogin").className="hide";
$("mailRegister").className="hide";
$("mailListText").innerHTML="Wczytuję dane, proszę czekać.";
$("mailListText").className="loading";
if(!_c&&(!document.all||window.opera)){
this.attachEvent("onLoad",new Function(fn+"initMail()"));
return;
}
var c=INTPL("getCookie","poczta");
var _43=("html"==c||"nhtml"==c?true:false);
var _44;
switch(c){
case "nowa":
case "new":
_44="p";
break;
case "html":
case "nhtml":
_44="t";
break;
default:
_44="s";
break;
}
initRequest("mail","http://"+_44+".www.interia.pl/"+("t"==_44?"html/":"")+"sg2007/",this.setMail,mailError);
}
};
function Network(){
var _45;
var _46;
var url;
var _48;
var _49;
var _4a=false;
this.fetch=function(_4b,_4c,_4d){
url=_4b;
_48=_4d;
_49=_4c;
_45=document.createElement("SCRIPT");
_45.type="text/javascript";
_45.defer="defer";
_45.src=url;
_46=setTimeout(error,1000*45);
start();
};
function error(){
if(_48){
_48();
}
finish();
}
this.load=function(_4e){
if(_49){
_49(_4e);
}
if(!_4a){
error();
}
finish();
};
function start(){
document.getElementsByTagName("HEAD")[0].appendChild(_45);
}
this.loaded=function(){
_4a=true;
};
function finish(){
if(_45){
document.getElementsByTagName("HEAD")[0].removeChild(_45);
_45=null;
}
if(_46){
clearTimeout(_46);
_46=null;
}
}
this.stop=function(){
_4a=true;
finish();
};
}
function initRequest(_4f,_50,_51,_52){
if(_f[_4f]){
_f[_4f].stop();
}
_f[_4f]=new Network();
_f[_4f].fetch(_50,_51,_52);
}
this.processRequest=function(_53,_54){
if(_f[_54]){
_f[_54].loaded();
_f[_54].load(_53);
_f[_54]=null;
}
};
this.setMail=function(_55){
if(_55&&_55.html){
$("mailList").innerHTML=_55.html;
}
};
function mailError(){
$("mailListText").innerHTML="Informacje są tymczasowo niedostępne.<br /><a href=\"http://poczta.interia.pl/poczta/\">Przejdź na pocztę</a>, by dowiedzieć się więcej.";
$("mailListText").className="error";
}
this.initPersonalPost=function(){
if(logged()){
var as=$("personalTabs").getElementsByTagName("A");
as[1].href="http://poczta.interia.pl/poczta/";
}
};
function logged(){
var m=INTPL("getMail");
if(m&&INTPL("getCookie","VAST")&&INTPL("getCookie","IPLWWWID")){
if(-1!=m.indexOf("@interia.pl")||-1!=m.indexOf("@interia.eu")||-1!=m.indexOf("@poczta.fm")||-1!=m.indexOf("@znajomi.pl")){
return true;
}else{
return false;
}
}else{
return false;
}
}
this.loaded=function(){
_c=true;
fireEvent("onLoad");
};
this.sendError=function(){
INTPL("openPopup","http://bledy.interia.pl/popup/sg2007/?url="+escape(document.location)+"&screen="+screen.width+"x"+screen.height+"x"+screen.colorDepth,"beta_sg2007_error",750,430);
return false;
};
this.attachEvent=function(_58,_59){
if(!isEvent(_58)){
_e[_58]=[];
}
_e[_58][_e[_58].length]=_59;
};
function fireEvent(_5a,_5b){
if(!isEvent(_5a)){
return;
}
for(var i=0;i<_e[_5a].length;i++){
if(_e[_5a][i]){
_e[_5a][i](_5b);
}
}
}
function removeEvent(_5d){
_e[_5d]=null;
}
function isEvent(_5e){
if(!_e[_5e]){
return false;
}else{
return true;
}
}
this.getColour=function(){
return INTPL("getCookie","colour");
};
this.addTab=function(_5f,_60,_61,_62,_63,_64,_65){
var i,li,ds,lis=$(_5f+"Tabs").getElementsByTagName("LI");
var cnt=3;
if(_5f=="seeAlso"){
cnt=5;
}
if(lis.length>cnt){
for(i=cnt;i<lis.length;i++){
lis[i].style.display="none";
}
}
lis[2].className=lis[2].className.replace("last","");
li=document.createElement("LI");
li.className="t4 last"+(_64?" selected":"");
li.innerHTML="<a href=\""+(_61?_61:"#")+"\">"+_60+"</a>";
li.style.visibility="hidden";
ds=$(_5f).getElementsByTagName("DIV");
for(i=0;i<ds.length;i++){
if("tabcontainer"==ds[i].className){
if(_64){
var ods=ds[i].getElementsByTagName("DIV");
for(k=0;k<ods.length;k++){
if(-1!=ods[k].className.indexOf("tab")){
ods[k].className=ods[k].className.replace("selected","");
}
if(k<lis.length){
lis[k].className=lis[k].className.replace("selected","");
}
}
}
var oD=document.createElement("DIV");
oD.className="tab"+(_65?" "+_65:"")+(_64?" selected":"");
oD.id=_5f+"Tab"+lis.length;
if(_62){
oD.innerHTML=_62;
}
oD.style.display="none";
ds[i].appendChild(oD);
$(_5f+"Tabs").appendChild(li);
var oa=li.getElementsByTagName("A")[0];
li.style.visibility="visible";
oD.style.display="";
break;
}
}
};
this.initImages=function(_6e,_6f){
if(!_6e||!_6f||!_6f.length){
return false;
}
var _70=_6e.getElementsByTagName("IMG");
var _71=-1;
while(-1==_70[++_71].src.indexOf("/p.gif")){
}
for(var i=0;i<_6f.length;i++){
if(_6f[i]&&_70[i+_71]){
_70[i+_71].src=_6f[i];
}
}
return true;
};
};
var newsSwI=0;
var newsSwH=new Array();
Inpl.NewsSwitcher=new function(){
var _73;
this.calculated=[];
this.init=function(_74){
_73=document.getElementById(_74).getElementsByTagName("li");
for(var i=0,_76=_73.length;i<_76;i++){
_73[i].onmouseover=new Function("Inpl.NewsSwitcher.rollOver("+i+",'"+_74+"'); return false;");
}
newsSwH[newsSwI]=_74;
newsSwI++;
};
this.rollOver=function(_77,_78){
var tmp=document.getElementById(_78).getElementsByTagName("li");
for(var i=0,_7b=tmp.length;i<_7b;i++){
tmp[i].className=tmp[i].className.replace(/\bselected/g,"");
}
tmp[_77].className+=" selected";
};
};
function tabSwitcher(n,arr,_7e){
this.selfName=_7e;
this.self=this;
this.t=0;
this.initTime=7000;
this.name=n;
this.loop=1;
this.orderArray=arr;
this.modulo=arr.length;
this.iter=0;
this.counter=0;
this.autoSwitchTab=autoSwitchTab;
this.timeCounter=timeCounter;
this.links=$(this.name+"Tabs").getElementsByTagName("LI");
this.t=setTimeout(this.selfName+".timeCounter()",this.initTime);
}
function timeCounter(){
this.initTime=7000;
this.autoSwitchTab();
if(this.loop==1){
this.t=setTimeout(this.selfName+".timeCounter()",this.initTime);
}
}
function autoSwitchTab(){
this.counter=this.iter%this.modulo;
Inpl.Sg7.setTab(this.name,this.orderArray[this.counter],"+(personalized?1:0)+");
this.iter=this.iter+1;
}
var compArr=new Array(1,2,3,4,0);
INTPL("AddOnload",klik);
function klik(){
competitiona=new tabSwitcher("competition",compArr,"competitiona");
for(i=0;i<competitiona.links.length;i++){
competitiona.links[i].onclick=function(){
return stopCount(competitiona);
};
}
}
function stopCount(o){
clearTimeout(o.t);
}
function setCookWZ(id,w){
if(w==1){
INTPL("setCookie","WZ_"+id,"1",43200,"/",location.host);
}else{
INTPL("setCookie","WZ_"+id,"1",-1,"/",location.host);
}
return false;
}
function switchWzLinks(){
pWz="WZ_";
pWt=86400;
var _82=$("seeAlsoTab0").getElementsByTagName("p");
var p_c=INTPL("getCookie",_82[0].id,pWt);
if(p_c!=null){
if($(_82[0].id)&&$("P"+_82[0].id)){
$(_82[0].id).className=$(_82[0].id).className.replace("photo","hide");
$("P"+_82[0].id).className=$("P"+_82[0].id).className.replace("hide","photo");
}
}
var _84=$("seeAlsoList").getElementsByTagName("li");
if(_84){
for(i=0;i<_84.length;i++){
var l_c=INTPL("getCookie",_84[i].id,pWt);
if(l_c!=null){
if($(_84[i].id)&&$("P"+_84[i].id)){
$(_84[i].id).className+=" hide";
$("P"+_84[i].id).className=$("P"+_84[i].id).className.replace("hide","");
}
}
}
}
return false;
}
function timeSpace(){
setTimeout("switchWzLinks()",50);
}
if(window.addEventListener){
window.addEventListener("unload",timeSpace,false);
}


