if (document.images) {
		
		img6on = new Image();           // The onmouseover image
		img6on.src = "img/btnv3_1_over.jpg";  	
		img6off = new Image();          // The normally seen image
		img6off.src = "img/btnv3_1.jpg"; 
		
		img7on = new Image();           // The onmouseover image
		img7on.src = "img/btnv3_2_over.jpg";  	
		img7off = new Image();          // The normally seen image
		img7off.src = "img/btnv3_2.jpg"; 
		
		img8on = new Image();           // The onmouseover image
		img8on.src = "img/btnv3_3_over.jpg";  	
		img8off = new Image();          // The normally seen image
		img8off.src = "img/btnv3_3.jpg"; 
		
		// ---
		img9on = new Image();           // The onmouseover image
		img9on.src = "img/btnv4_1_over.jpg";  		
		img9off = new Image();          // The normally seen image
		img9off.src = "img/btnv4_1.jpg";
		
		img10on = new Image();           // The onmouseover image
		img10on.src = "img/btnv4_2_over.jpg";  		
		img10off = new Image();          // The normally seen image
		img10off.src = "img/btnv4_2.jpg";
		
		img11on = new Image();           // The onmouseover image
		img11on.src = "img/btnv4_3_over.jpg";  		
		img11off = new Image();          // The normally seen image
		img11off.src = "img/btnv4_3.jpg";
		
		img12on = new Image();           // The onmouseover image
		img12on.src = "img/btnv4_4_over.jpg";  		
		img12off = new Image();          // The normally seen image
		img12off.src = "img/btnv4_4.jpg";
		
	  }				  //This function changes the image when over.
	    function imgOn(imgName) {
	            if (document.images) {
	            document[imgName].src = eval(imgName + "on.src");
	            }
	    }				   //This function changes the image back when off.
	    function imgOff(imgName) {
	            if (document.images) {
	            document[imgName].src = eval(imgName + "off.src");        
	            }
	    }
			
		
		 function bg0On(id) {
	            document.getElementById(id).style.background='url(img/button0_over.jpg)';
				document.getElementById(id).style.backgroundRepeat='no-repeat';
	    }				   //This function changes the image back when off.
	    function bg0Off(id) {
	             document.getElementById(id).style.background='url(img/button0.jpg)';
				 document.getElementById(id).style.backgroundRepeat='no-repeat';
	    }
		
	  			  //This function changes the image when over.
	    function bgOn(id) {
	            document.getElementById(id).style.background='url(img/button_v2_over.jpg)';
	    }				   //This function changes the image back when off.
	    function bgOff(id) {
	             document.getElementById(id).style.background='url(img/button_v2.jpg)';
	    }
		
				  //This function changes the image when over.
	    function bg2On(id) {
	            document.getElementById(id).style.background='url(img/button_v2_w_over.jpg)';
	    }				   //This function changes the image back when off.
	    function bg2Off(id) {
	             document.getElementById(id).style.background='url(img/button_v2_w.jpg)';
	    }
		
		//Buttony dla podgladu/ sciagniecia rpezentacji
	    function bg3On(id) {
	            document.getElementById(id).style.background='url(img/button_v3_over.jpg)';
	    }				   //This function changes the image back when off.
	    function bg3Off(id) {
	             document.getElementById(id).style.background='url(img/button_v3.jpg)';
	    }
		
		