<!--
var ji = 1;
function insertSwf(plik, width, height,border,transparent){
 rnd = width+height+ji;
 ji++;

 document.write('<div id="f'+rnd+'" style="width:'+width+';height:'+height+'px"></div>');
 
 document.getElementById('f'+rnd).innerHTML = (
	'<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="' + width + '" HEIGHT="' + height + '"><PARAM NAME=movie VALUE="' + plik + '">'+(transparent ? '<PARAM NAME=quality VALUE=high><PARAM NAME=wmode VALUE=transparent>' : (border ? '' : '<PARAM NAME=quality VALUE=high><PARAM NAME=wmode VALUE=opaque>')+'<PARAM NAME=bgcolor VALUE='+(border ? border : '#FFFFFF')+'>')+'<EMBED src="' + plik + '" '+(transparent ? 'wmode="transparent"' : (border ? "" : 'wmode="opaque"'))+' quality=high bgcolor='+(border ? border : '#FFFFFF')+' WIDTH="' + width + '" HEIGHT="'
         + height
         + '" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>');
}

var bImage_i = 1;
var bImage = "";
var bImage_obj = "gImage";
function blendImages(){
   	if (bImage[bImage_i].indexOf("#")!=0){ 
		Blend(bImage[bImage_i]);
	}
	if( bImage_i == (bImage.length-1) ){
		bImage_i = 0;
	} else {
		bImage_i = bImage_i+1;
	}
	self.setTimeout('blendImages()', 5000);
}
function Blend(newsrc){		
	document.getElementById("fade1").src = document.getElementById("fade2").src;
	var fade = $('#fade2');
    	
    if (fade.is(':animated')) {
	 	fade.stop().fadeTo(0, 1);
    } 
    fade.fadeOut(0);
	document.getElementById("fade2").src = newsrc;
	fade.fadeIn(500);  
	
}
function blending(){
    bImage = blending.arguments;
	self.setTimeout('blendImages()', 5000);
}
function getcheck(a, b){
   if( a.checked )
     hideall("block", b);
   else
     hideall("none", b);
}
function hideall(all, b) {
                        var Nodes = document.getElementsByTagName('table')
                        var max = Nodes.length
                        for(var i=0;i<max;i++) {
                                var nodeObj = Nodes.item(i);                                
                                if(nodeObj.id.indexOf(b)!=-1) {
                                   nodeObj.style.display = all;                                
                                }
                        }
}       
function hideallt(all, ids, tag) {
                        var Nodes = document.getElementsByTagName(tag)
                        var max = Nodes.length
                        for(var i=0;i<max;i++) {
                                var nodeObj = Nodes.item(i);                                
                                if(nodeObj.id.indexOf(ids)!=-1) {
                                   nodeObj.style.display = all;                                
                                }
                        }
}
function czysc( o ){
    for (var i = 0; i < o.length; i++){
        if (o[i].type!='hidden' && o[i].type!='submit' && o[i].type!='button'){
            o[i].value="";
        }
    }
}
function go( url ){
    document.location.href=url;
}
function go_form( f, url ){
    f.action=url;
    f.submit();
}
function selecturl( s ){
    var gourl = s.options[s.selectedIndex].value;
    document.location.href=gourl;
}
function otworz( url, tytul, szer, wys ){
    if (parseInt(szer) > 800 || parseInt(wys) > 800){
        NoweOkienko=window.open(url, tytul);
    } else{
        config='left=100,top=100,width='+szer+',height='+wys+',innerheight='+wys+',innerwidth='+szer+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no';
        NoweOkienko=window.open('', tytul, config);
        NoweOkienko.document.open();
        NoweOkienko.document.write('<HTML>');
        NoweOkienko.document.write('<HEAD>');
        NoweOkienko.document.write('<TITLE>'+tytul+'</TITLE>');
        NoweOkienko.document.write('</HEAD>');
        NoweOkienko.document.write('<BODY BGCOLOR=white LEFTMARGIN=0 TOPMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH=0>');
        NoweOkienko.document.write('<A HREF=# onclick="javascript:self.close();"><IMG SRC="'+url+'" BORDER=0 ALT="Zamknij"></A>');
        NoweOkienko.document.write('</BODY>');
        NoweOkienko.document.write('</HTML>');
        NoweOkienko.document.close();
        NoweOkienko.focus();
    }
}
function otworz_url( url, tytul, szer, wys ){
    config='left=100,top=100,width='+szer+',height='+wys+',innerheight='+wys+',innerwidth='+szer+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no';
    NoweOkienko=window.open(url, tytul, config);
}
function MM_reloadPage( init ){ //reloads the window if Nav4 resized
    if (init==true) with (navigator){
        if ((appName=="Netscape") && (parseInt(appVersion)==4)){
            document.MM_pgW=innerWidth;
            document.MM_pgH=innerHeight;
            onresize=MM_reloadPage;
        }
    }
    else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function zaplataSelect(){
	document.zamow.action = location.href+"&nc=1";
	document.zamow.submit();
}
// -->  

