function urlwindow(url,w,h){
window.open(url,'JavaScript','toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=yes,directories=no,status=no,resizable=no,top=0,width='+w+',height='+h+'');
}

function selecturl(s){
var gourl = s.options[s.selectedIndex].value;
window.top.location.href = gourl;
}

function popup(pic,title,pos){ 
img = window.open('',title,pos); 
img.document.open();
img.document.write("<head><title>"+title+"</title></head><body leftmargin=0 topmargin=0><IMG src="+pic+"></body>");
img.document.close(); 
img.focus(); 
}


function flash(filename,w,h,color) { 
var oeTags = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + w + '" height="' + h + '" align="middle" bgcolor="' + color + '">'
+ '<param name="allowScriptAccess" value="sameDomain" />'
+ '<param name="movie" value="' + filename + '" /><param name="wmode" value="transparent" /><param name="quality" wmode="transparent" value="high" /><param name="scale" value="noscale" /><embed src="' + filename + '" quality="high" wmode="transparent" scale="noscale" width="' + w + '" height="' + h + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" bgcolor="' + color + '" /><param name=bgcolor value="' + color + '" />'
+ '</object>';

majorVersion=8;
minorVersion=8;
installinfo='<a href="https://www.macromedia.com/go/getflashplayer" target="blank">Strona wymaga zainstalowanego pluginu <b>Flash Player</b> w wersji 8 lub wyższej.'; 
if(navigator.product=='Gecko' || navigator.userAgent.indexOf('Opera')!=-1) {
 if(plugin=navigator.plugins["Shockwave Flash"]) {
  if(majorVersion > parseInt(plugin.description.substr(plugin.description.indexOf(".")-1, 1))
  || minorVersion > parseInt(plugin.description.substr(plugin.description.length-2)) )
document.write(installinfo);
  else document.write(oeTags);
 } else {
document.write(installinfo); 
 }
}
else document.write(oeTags);
//-->
}

function change(op_now){
var op1a = new Array("(wszędzie)", "dolnośląskie","kujawsko-pomorskie","lubelskie", "lubuskie", "łódzkie", "małopolskie", "mazowieckie", "opolskie", "podkarpackie", "podlaskie", "pomorskie", "śląskie", "świętokrzyskie", "warmińsko-mazurskie", "wielkopolskie", "zachodniopomorskie");
var op1b = new Array("kobiety","mężczyźni");
var op1c = new Array("(wszędzie)", "Plotki", "Wydarzenia");
if(op_now == "op1c"){
var len = op1c.length-1;
document.form.elements.op2.options.length = op1c.length;
for(var i=0; i<= len; i++){
document.form.op2.options[i] = new Option(op1c[i]);
document.form.op2.options[i].value = i;
}}
if(op_now == "op1b"){
var len = op1b.length-1;
document.form.elements.op2.options.length = op1b.length;
for(var i=0; i<= len; i++){
document.form.op2.options[i] = new Option(op1b[i]);
document.form.op2.options[i].value = i;
}}
if(op_now == "op1a"){
var len = op1a.length-1;
document.form.elements.op2.options.length = op1a.length;
for(var i=0; i<= len; i++){
document.form.op2.options[i] = new Option(op1a[i]);
document.form.op2.options[i].value = i;
}}
}


var last2 = '';
function hide(id){ document.getElementById(id).style.display='none'; }
function show(id){
if(last2)
hide(last2)
last2 = id;
document.getElementById(id).style.display='block';
}
var last = '';
function hide2(id){ document.getElementById(id).style.display='none'; }
function show2(id){
if(last)
hide2(last)
last = id;
document.getElementById(id).style.display='block';
}
