function popupDodatki(path,res,pics,image,hbx) {
var dodatki=window.open('','','toolbar=no,scrollbars=no,directories=no,status=no,menubar=no,resizable=no,width=380,height=440,left=0,top=0,titlebar=no')
dodatki.document.write('<html>\n'+
'<head>\n'+
'<title>Nokia - Akcesoria</title>\n'+
'<meta http-equiv="content-type" content="text/html; charset=iso-8859-2">\n'+
'<link href="'+res+'" rel="stylesheet" type="text/css">\n'+
'</head>\n'+
'<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">\n'+((hbx!=null&&hbx!='null'&&hbx!='')?(
'<!--WEBSIDESTORY CODE HBX1.0 (Universal)-->\n'+
'<!--COPYRIGHT 1997-2004 WEBSIDESTORY,INC. ALL RIGHTS RESERVED. U.S.PATENT No. 6,393,479B1. MORE INFO:http://websidestory.com/privacy-->\n'+
'<script type="text/javascript">\n'+
'var _hbEC=0,_hbE=new Array;function _hbEvent(a,b){b=_hbE[_hbEC++]=new Object();b._N=a;b._C=0;return b;}\n'+
'var hbx=_hbEvent("pv");hbx.vpc="HBX0100u";hbx.gn="ehg-nokiafin.hitbox.com";\n'+
'hbx.acct="DM540928J9NC";hbx.pn="'+(hbx.replace(/\s/g,'+'))+'";hbx.mlc="/PopUps/";\n'+
'hbx.pndef="title";hbx.ctdef="full";\n'+
'hbx.fv="";hbx.lt="none";hbx.dlf="n";hbx.dft="n";hbx.elf="n";\n'+
'hbx.seg="";hbx.fnl="";\n'+
'hbx.cmp="";hbx.cmpn="";hbx.dcmp="";hbx.dcmpn="";hbx.dcmpe="";hbx.dcmpre="";hbx.hra="";hbx.hqsr="";hbx.hqsp="";hbx.hlt="";hbx.hla="";hbx.gp="";hbx.gpn="";hbx.hcn="";hbx.hcv="";hbx.cp="null";hbx.cpd="";\n'+
'hbx.ci="";hbx.hc1="";hbx.hc2="";hbx.hc3="";hbx.hc4="";hbx.hrf="";hbx.pec="";\n'+
'</script><script type="text/javascript" language="javascript1.1" defer="defer" src="'+path+'shared/hitbox/hbx.js"><\/script>\n'+
'<!--END WEBSIDESTORY CODE-->\n'):'')+
'<table cellspacing="0" cellpadding="0" border="0">\n'+
'<tr>\n'+
'<td>\n'+
'	<table cellspacing="0" cellpadding="0" border="0">\n'+
'	<tr>\n'+
'	<td valign="top"><img src="'+pics+'common/spacer.gif" width="10" height="10" border="0"></td>\n'+
'	</tr>\n'+
'	<tr>\n'+
'	<td valign="top"><img src="'+pics+'common/spacer.gif" with="10" height="1" border="0" align="left"><img src="'+pics+'common/logo_nokia.gif" width="116" height="32" border="0"></td>\n'+
'	</tr>\n'+
'	<tr>\n'+
'	<td valign="top"><img src="'+pics+'common/spacer.gif" width="10" height="10" border="0"></td>\n'+
'	</tr>\n'+
'	</table>\n'+
'</td>\n'+
'</tr>\n'+
'<tr>\n'+
'<td>\n'+
'	<table cellspacing="0" cellpadding="0" border="0" width="380">\n'+
'	<tr>\n'+
'	<td align="left" valign="top" width="380" height="10"><img src="'+pics+'common/spacer.gif" alt="" width="1" height="10" border="0"></td>\n'+
'	</tr>\n'+
'	<tr>\n'+
'	<td align="left" valign="top" width="380" height="1" bgcolor="#999999"><img src="'+pics+'common/spacer.gif" alt="" width="380" height="1" border="0"></td>\n'+
'	</tr>\n'+
'	<tr>\n'+
'	<td valign="top" align="center"><img src="'+image+'" width="350" height="303" border="0"></td>\n'+
'	</tr>\n'+
'	<tr>\n'+
'	<td align="left" valign="top" width="380" height="1" bgcolor="#999999"><img src="'+pics+'common/spacer.gif" alt="" width="380" height="1" border="0"></td>\n'+
'	</tr>\n'+
'	<tr><td align="left" valign="top" width="380" height="5"><img src="'+pics+'common/spacer.gif" alt="" width="1" height="5" border="0"></td>\n'+
'	</tr>\n'+
'	</table>\n'+
'</td>\n'+
'</tr>\n'+
'<tr><td valign="top" align="center"><img src="'+pics+'common/spacer.gif" width="1" height="6" alt=""></td></tr>\n'+
'<tr>\n'+
'<td valign="top" align="center" class="footer"><a href="javascript:self.close()"><img src="'+pics+'common/btn_close.gif" width="52" height="14" border="0"></a><br>\n'+
'<img src="'+pics+'common/spacer.gif" border="0" width="10" height="10"><br>\n'+
'<span class="copyright">&copy; Nokia 2007.</span> <a href="javascript:void(window.opener.location=\''+path+'id641.html\')" class="footer">Warunki korzystania z witryny</a> | <a href="javascript:void(window.opener.location=\''+path+'id642.html\')" class="footer">Zasady ochrony prywatno\u015Bci</a>\n'+
'</td>\n'+
'</tr>\n'+
'</table>\n'+
'</body>\n'+
'</html>\n')
dodatki.document.close()
}

function popupStandard(path,w,h,r){
    var pop=window.open(path,'','toolbar=no,scrollbars=yes,directories=no,status=no,menubar=no,resizable='+~~r+',width='+w+',height='+h+',left=0,top=0,titlebar=no')
}

function popup(path,title,param){
    var pop=window.open(path,title,param)
}

function valDL(f){
    if (f.select10.options[f.select10.selectedIndex].value=='none') {alert('Wybierz telefon'); return false}
    if (f.select11.options[f.select11.selectedIndex].value=='none') {alert('Wybierz miasto'); return false}
    return true;
}

function valSearch(f){
    if (f.q.value!='') return true
    alert('Nie mo\u017Cna wykona\u0107 wyszukiwania. Wprowad\u017A wyszukiwany tekst.')
    return false
}

function valRedir(v){
    (V=v.options[v.selectedIndex].value)!='/cgi-bin/redir.pl' ? void(top.location.href=V) : void(0); return false
}

function valRedirPop(v){
    (V=v.options[v.selectedIndex].value)!='/cgi-bin/redir.pl' ? window.open(V) : void(0); return false
}

function valRedirEval(v){
    (V=v.options[v.selectedIndex].value)!='/cgi-bin/redir.pl' ? eval(V) : void(0); return false
}

function valSelect(f){
    if (f.elements[0].options[f.elements[0].selectedIndex].value=='/cgi-bin/redir.pl') return false
    return true
}

function reloader(){
    var I=document.images;for(var i=0;i<I.length;i++)if(!I[i].complete)I[i].src=I[i].src
}

function Cookies(){
    this.read=Function("n","var c=document.cookie;var r=new RegExp('.*(;|)'+n+'=([^;]*)(;|).*');return r.test(c)?unescape(c.replace(r,'$2')):null")
    this.save=Function("n","v","d","document.cookie=n+'='+v+(d?'; expires='+(new Date(new Date()-(-d*86400000))).toGMTString():'')+'; path=/'")
    this.erase=Function("n","this.save(n,'',-1)")
    this.test=Function("var n='v'+Math.round(Math.random()*1000);var R=false;this.save(n,n,1);if(this.read(n)==n)R=true;this.erase(n);return R")
}

function flash(f){d=document
    if(~navigator.userAgent.indexOf('Win')&&d.all&&!window.opera){
        f2=f3=f4=f5=f6=f7=f8=f9=f10=0
        d.writeln('<script language=VBScript\>')
        d.writeln('on error resume next')
        for(i=2;i<11;i++)d.writeln('f'+i+'=IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+i+'"))')
        d.writeln('<\/script>')
        f=f10?10:f9?9:f8?8:f7?7:f6?6:f5?5:f4?4:f3?3:f2?2:0
    }else if(navigator.plugins){
        f=navigator.plugins['Shockwave Flash']
        f=f?parseInt(f.description.split(' ')[2]):0
    }else{f=0}
    return f
}

function flashDetectHTML(f,n,v){v=flash()>=v;document.write(v?f:n)}

function flashCreateHTML(s,w,h,p,v){
    var o='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+(v?v:8)+',0,0,0" width="'+w+'" height="'+h+'">\n<param name="movie" value="'+s+'"/>\n'
    for(n in p)o+='<param name="'+n+'" value="'+p[n]+'"/>\n'
    o+='<embed src="'+s+'" width="'+w+'" height="'+h+'"'
    for(n in p)o+=' '+n+'="'+p[n]+'"'
    o+=' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>\n</object>\n'
    return o
}

function flashCreate(s,w,h,p,v){document.write(flashCreateHTML(s,w,h,p,v))}

function s2f_popup(msg,url){popupStandard(url+'?Msg='+msg,500,450);}
function s2f_nokia(msg){s2f_popup(msg,'/cgi-bin/s2f/s2f_nokia.pl');}
function s2f_clubnokia(msg){s2f_popup(msg,'/cgi-bin/s2f/s2f_clubnokia.pl');}
function s2f(msg){var p=document.location.pathname+'';p.match(/^\/nokia\/clubnokia/) ? s2f_clubnokia(msg) : s2f_nokia(msg);}
