var isMsie=(navigator.appVersion.indexOf("MSIE") == -1) ? false : true;

function addfav() {
       if(isMsie) {
              window.external.AddFavorite(this.location.href, "PRZECISK -  Sławomir Jasek - przeciski pod drogami, torami itp.");
       } 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.przecisk.pl","PRZECISK -  Sławomir Jasek")

//              this.setHomePage('http://www.przecisk.pl'); 
//this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.przecisk.pl');
       } else {
              alert("Aby ustawić stronę \""+this.document.title+"\" jako startową\nwybierz w menu \"Edit > Preferences > Navigator\"\nopcję \"Use Current Page\"");
       };
       return false;
};

// 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;
}


