function copyright(){   
 today=new Date();
 update=copyright.getFullYear();
 document.write("Copyright &copy; 2006 - "+ y0 + "&nbsp;by&nbsp;<a class=\"stopka\" href=\"http://www.avertis.pl\" target=\"_blank\">AVERTIS</a><br />All rights reserved. ISO-8859-2");
}

var isMsie=(navigator.appVersion.indexOf("MSIE") == -1) ? false : true;

function addfav() {
       if(isMsie) {
              window.external.AddFavorite(this.location.href, "MID Sp. z o.o. - sprzęt turystyczny i sportowy.");
       } else {
              alert("Aby dodać \""+this.document.title+"\" do ulubonych\nwciśnij klawisze \"Ctrl-D\"");              
       };
       return false;
};

function asstart() {
       if(isMsie) {
//              this.style.behavior='url(#default#homepage)';
//              this.setHomePage(this.location.href); 
              window.external.setHomePage("http://www.trekker.wroclaw.pl","MID Sp. z o.o. - sprzęt turystyczny i sportowy.")

//              this.setHomePage('http://www.trekker.wroclaw.pl'); 
//this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.trekker.wroclaw.pl');
       } else {
              alert("Aby ustawić stronę \""+this.document.title+"\" jako startową\nwybierz w menu \"Edit > Preferences > Navigator\"\nopcję \"Use Current Page\"");
       };
       return false;
};


function reapply(){
setTimeout("slideit()",15000)
return true
}
window.onerror=reapply

var image1=new Image()
image1.src="grafika/index_crop/33-22.jpg"
var image2=new Image()
image2.src="grafika/index_crop/33-22.1.jpg"
var image3=new Image()
image3.src="grafika/index_crop/33-22.jpg"


// 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 displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no' );
}

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;}

