browser_name = navigator.appName; 
browser_version = parseFloat(navigator.appVersion); 

if (browser_name == "Netscape" && browser_version >= 3.0) { roll = 'true'; } 
else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 3.0) { roll = 'true'; } 
else { roll = 'false'; } 

function over(img,ref) { if (roll == 'true') { document.images[img].src = ref; } } 
function out(img,ref)  { if (roll == 'true') { document.images[img].src = ref; } } 

if (roll == 'true') 
{ 

    a1=new Image; a1.src="http://fastiv.com.ua/templates/Fastiv/images/header.jpg";
    a2=new Image; a2.src="http://fastiv.com.ua/templates/Fastiv/images/header_1.jpg";
    a3=new Image; a3.src="http://fastiv.com.ua/templates/Fastiv/images/header_2.jpg";
    a4=new Image; a4.src="http://fastiv.com.ua/templates/Fastiv/images/header_3.jpg";
    a5=new Image; a5.src="http://fastiv.com.ua/templates/Fastiv/images/header_4.jpg";
	    a6=new Image; a6.src="http://fastiv.com.ua/templates/Fastiv/images/header_5.jpg";
		    a7=new Image; a7.src="http://fastiv.com.ua/templates/Fastiv/images/header_6.jpg";
			    a8=new Image; a8.src="http://fastiv.com.ua/templates/Fastiv/images/header_7.jpg";
				    a9=new Image; a9.src="http://fastiv.com.ua/templates/Fastiv/images/header_8.jpg";
					    a10=new Image; a10.src="http://fastiv.com.ua/templates/Fastiv/images/header_9.jpg";
					    a11=new Image; a11.src="http://fastiv.com.ua/templates/Fastiv/images/header_10.jpg";

} 

///////////////////////////////////////////////


  var howMany = 10
  var quote = new Array(howMany+1)
  quote[0]=""
  quote[1]="1"
  quote[2]="2"
  quote[3]="3"
  quote[4]="4"
  quote[5]="5"
  quote[6]="6"
  quote[7]="7"
  quote[8]="8"  
  quote[9]="9"  
  quote[10]="10"
  
  function rndnumber(){
        var randscript = -1
        while (randscript < 0 || randscript > howMany || isNaN(randscript)){
                randscript = parseInt(Math.random()*(howMany+1))
        }
        return randscript
}
     quo = rndnumber()
     quox = quote[quo]
//document.write('<div id="header-r'+quox+'">')




