function copyright(){   
 copyright=new Date();
 update=copyright.getYear();
 document.write("Copyright &copy; 2003-"+ update + "&nbsp;by&nbsp;&nbsp;&nbsp;<a class=\"stopka\" href=\"http://www.avertis.pl\" target=\"blank\">\"P.H.U. AVERTIS\"</a><br>\"CHYZ U BACY\"&nbsp;&nbsp;Soblówka - Młada Hora 291, 34-371 Ujsoły,&nbsp;&nbsp;Beskid Żywiecki<br>tel. +48&nbsp;(0)&nbsp;602&nbsp;248&nbsp;071&nbsp;&nbsp;&nbsp;+48&nbsp;(0)&nbsp;604&nbsp;692&nbsp;997&nbsp;&nbsp;<br>Wszelkie prawa zastrzeżone.&nbsp;&nbsp;&nbsp;ISO-8859-2");
}

// rozpoczyna ściganie obrazka
var Imgi = new Array(); // Tablica obrazków                           
function preload(url) {                                               
   if (document.images) {                                             
      var i = Imgi.length;                                            
      Imgi[i] = new Image();                                          
//      Imgi[i].onerror = preloadOnError;
      Imgi[i].src = url;                                              
   }                                                                  
}

function move_in(img_name,img_nazwa) {
document[img_name].src=img_nazwa;
}
function move_out(img_name,img_nazwa) {
document[img_name].src=img_nazwa;
}

function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
       newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
       newWindow.document.open();
       newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF"  topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()"><A HREF="javascript:void(0);" onClick="window.close()">');
       if (imageType == "swf"){
       newWindow.document.write('<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=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
       newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
       newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
       newWindow.document.write('</embed></object>');       }else{
       newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\" border="0">');        }
       newWindow.document.write('</A></body></html>');
       newWindow.document.close();
       newWindow.focus();}
function findObj(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=findObj(n,d.layers[i].document); if(!x && document.getElementById) x=document.getElementById(n); return x; } 
function showLay() { var i,p,v,obj,args=showLay.arguments; for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2]; if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; } obj.visibility=v; } }
function popOn(name) { hidePops(); showLay(name,'','show'); }
function popOff(name) { showLay(name,'','hide'); }
function hidePops() { popOff('pop1');popOff('pop2');popOff('pop3');popOff('pop4');popOff('pop5');popOff('pop6'); }
function imgOn() { var i,j=0,x,a=imgOn.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} }
function imgOff() { var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; }
function okno(theURL,winName,features) { window.open(theURL,winName,features); }
function wojOff(name) { showLay(name,'','hide'); }
function wojOn(name) { showLay(name,'','show'); }
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;}
function loadtwo(page2, page3) {parent.leftFrame.location.href=page2;  parent.mainFrame.location.href=page3;}


