//<script type="text/javascript">


//funkcja losująca obrazek wstawiany pod menu

function randomiseMenuBottom(type,range) {
   var tmp;
   var tmpDate;
   
   tmpDate = new Date();
   
   tmp = ( tmpDate.getDate() % range ) + 1;
   
   document.getElementById("MBExt2").style.backgroundImage = "url(pic/" + type + "_sotp_0" + tmp + ".jpg)";
}


//funkcja wyswietlajaca wlasciwy blinkspace nad menu

function on(who) {
   document.getElementById("Ext2").style.backgroundImage = "url(img/menu_" + who + ".gif)";
}


//funkcja resetujaca blinkspace nad menu

function out(who) {
   document.getElementById("Ext2").style.backgroundImage = "url(img/menu_init.gif)";  
}


//funkcja odpowiadajaca za pobranie kompletu grafiki menu (plynnosc menu)

function preload() {

   pre_menu_init = new Image;
   pre_menu_init.src = "img/menu_init.gif";
   
   pre_menu_1 = new Image;
   pre_menu_1.src = "img/menu_1.gif";
   
   pre_menu_2 = new Image;
   pre_menu_2.src = "img/menu_2.gif";
   
   pre_menu_3 = new Image;
   pre_menu_3.src = "img/menu_3.gif";
   
   pre_menu_4 = new Image;
   pre_menu_4.src = "img/menu_4.gif";
   
   pre_menu_5 = new Image;
   pre_menu_5.src = "img/menu_5.gif";
   
   pre_menu_6 = new Image;
   pre_menu_6.src = "img/menu_6.gif";
   
   pre_menu_7 = new Image;
   pre_menu_7.src = "img/menu_7.gif";
   
   pre_menu_8 = new Image;
   pre_menu_8.src = "img/menu_8.gif";
   
   pre_menu_9 = new Image;
   pre_menu_9.src = "img/menu_9.gif";
   
   pre_menu_0 = new Image;
   pre_menu_0.src = "img/menu_0.gif";
   
   pre_readmeNav_0 = new Image;
   pre_readmeNav_0.src = "img/readme_list.png"
   
   pre_readmeNav_1 = new Image;
   pre_readmeNav_1.src = "img/readme_list_v.png"  
}
