function flash(filename,w,h,kolor) { 

		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 + '" id="intro_blue" align="middle" bgcolor="' + kolor + '">'
		+ '<param name="allowScriptAccess" value="sameDomain" />'
		+ '<param name="movie" value="' + filename + '" /><param name="quality" value="high" /><param name="scale" value="noscale" /><embed src="' + filename + '" quality="high" scale="noscale" width="' + w + '" height="' + h + '" name="xxx" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" bgcolor="' + kolor + '" /><param name=bgcolor value="' + kolor + '" />'
		+ '</object>';

		majorVersion=8;
		minorVersion=8;
		installinfo='<div style="margin-top: 170px; text-align: center;"><style>body { background: #ffffff; }</style><a href="https://www.macromedia.com/go/getflashplayer" target="_blank" style="font-family: Tahoma; color: #000000; text-decoration: none; font-size: 11px;">Strona wymaga zainstalowanego pluginu<br /><b>Flash Player</b> w wersji 8 lub wyższej.<br/><br/><img src="images/get_flash.jpg" alt="pobierz Flash Playera" border="0" /><br/><br/>Pobierz wtyczkę <strong>Flash Player</strong></a><br /><br /><br />'; 
		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 showDiv(id) {
 if (document.getElementById)
    current=(document.getElementById(id).style.display == 'none') ? 'block' : 'none';
    document.getElementById(id).style.display = current;
}

function ukrywanie(id) {
 if (document.getElementById)
 current=(document.getElementById(id).style.display == 'none') ? 'block' : 'none';
    document.getElementById(id).style.display = current;
}



        function setHomePage(){
                                            if ( document.all ){
                                                 sd.setHomePage('http://www.pf.pl/');
                                            } else {

                                                if (  navigator.appName.indexOf( 'Netscape' ) != -1 ){
                                                    var win = window.open( "Pages?where=dodstart","OpenWindow",
                                                        'width=535,height=569,resizable=0,status=0,scrollbars=0,menubar=no');
                                                    win.focus();
                                                }
                                            }
                                            return false;
                                        }
                                        function addFavorite(){
                                            if ( document.all ){
                                                window.external.AddFavorite('http://www.pf.pl/', 'Panorama Firm');
                                            }
                                            return false;
                                        }

function branza(url) {
        url="branza.php";
        width=550;
        height=400;
        width1=width/2;
        height1=height/2;
        x=screen.availWidth/2-width1;
        y=screen.availHeight/2-height1;
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes, menubar=no, left='+x+', top='+y );
        Win.resizeTo(width, height);
        Win.focus();
};

function branze(url) {
        url="branze.php";
        width=550;
        height=400;
        width1=width/2;
        height1=height/2;
        x=screen.availWidth/2-width1;
        y=screen.availHeight/2-height1;
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes, menubar=no, left='+x+', top='+y );
        Win.resizeTo(width, height);
        Win.focus();
};

function miasta(url) {
        url="miasta.php";
        width=550;
        height=400;
        width1=width/2;
        height1=height/2;
        x=screen.availWidth/2-width1;
        y=screen.availHeight/2-height1;
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes, menubar=no, left='+x+', top='+y );
        Win.resizeTo(width, height);
        Win.focus();
};

function miasto(url) {
        url="miasto.php";
        width=550;
        height=400;
        width1=width/2;
        height1=height/2;
        x=screen.availWidth/2-width1;
        y=screen.availHeight/2-height1;
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes, menubar=no, left='+x+', top='+y );
        Win.resizeTo(width, height);
        Win.focus();
};


function menu(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function menugl(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function prel() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=prel.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function swap() {
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function find(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=find(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function sw() {
  var i,j=0,x,a=sw.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=find(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function log_out()
{
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
        if (confirm('Czy chcesz się zakończyć pracę?'))
        {
                return true;
        }
        else
        {
                ht[0].style.filter = "";
                return false;
        }
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
