browserName = navigator.appName.substring(0,8);
browserVer = parseFloat(navigator.appVersion);

var Browser = 0;

if (browserName == 'Microsof' && browserVer < 4){Browser = 0;}
if (browserName == 'Microsof' && browserVer >= 4){Browser = 1;}
if (browserName == 'Netscape' && browserVer < 4){Browser = 1;}
if (browserName == 'Netscape' && browserVer >= 4){Browser = 1;}

if(Browser == 1){
img = new Array(22);
for (m=0; m<=22; m++){
img[m] = new Image();
}
img[0].src = 'images/nav/home.gif';
img[1].src = 'images/nav/home_over.gif';
img[2].src = 'images/nav/history.gif';
img[3].src = 'images/nav/history_over.gif';
img[4].src = 'images/nav/drink.gif';
img[5].src = 'images/nav/drink_over.gif';
img[6].src = 'images/nav/etiquette.gif';
img[7].src = 'images/nav/etiquette_over.gif';
img[8].src = 'images/nav/press.gif';
img[9].src = 'images/nav/press_over.gif';
img[10].src = 'images/nav/events.gif';
img[11].src = 'images/nav/events_over.gif';
img[12].src = 'images/nav/cellar.gif';
img[13].src = 'images/nav/cellar_over.gif';
img[14].src = 'images/nav/contact.gif';
img[15].src = 'images/nav/contact_over.gif';
img[16].src = 'images/store.gif';
img[17].src = 'images/store_over.gif';
img[18].src = 'images/open.gif';
img[19].src = 'images/open_over.gif';
img[20].src = 'images/serve.gif';
img[21].src = 'images/serve_over.gif';
}
function m_over(index){
if(Browser == 1){
	if(index == 1){
		setTimeout('document.i1.src = img[1].src',0);
	}
	if(index == 2){
		setTimeout('document.i2.src = img[3].src',0);
	}
	if(index == 3){
		setTimeout('document.i3.src = img[5].src',0);
	}	
	if(index == 4){
		setTimeout('document.i4.src = img[7].src',0);
	}		
	if(index == 5){
		setTimeout('document.i5.src = img[9].src',0);
	}		
	if(index == 6){
		setTimeout('document.i6.src = img[11].src',0);
	}	
	if(index == 7){
		setTimeout('document.i7.src = img[13].src',0);
	}
	if(index == 8){
		setTimeout('document.i8.src = img[15].src',0);
	}
	if(index == 9){
		setTimeout('document.i9.src = img[17].src',0);
	}
	if(index == 10){
		setTimeout('document.i10.src = img[19].src',0);
	}
	if(index == 11){
		setTimeout('document.i11.src = img[21].src',0);
	}	
  }
}
function m_out(index){
if(Browser == 1){
	if(index == 1){
		setTimeout('document.i1.src = img[0].src',0);
	}
	if(index == 2){
		setTimeout('document.i2.src = img[2].src',0);
	}
	if(index == 3){
		setTimeout('document.i3.src = img[4].src',0);
	}	
	if(index == 4){
		setTimeout('document.i4.src = img[6].src',0);
	}	
	if(index == 5){
		setTimeout('document.i5.src = img[8].src',0);
	}		
	if(index == 6){
		setTimeout('document.i6.src = img[10].src',0);
	}	
	if(index == 7){
		setTimeout('document.i7.src = img[12].src',0);
	}	
	if(index == 8){
		setTimeout('document.i8.src = img[14].src',0);
	}	
	if(index == 9){
		setTimeout('document.i9.src = img[16].src',0);
	}	
	if(index == 10){
		setTimeout('document.i10.src = img[18].src',0);
	}	
	if(index == 11){
		setTimeout('document.i11.src = img[20].src',0);
	}		
  }
}
if (browserName == 'Microsof'){
	document.write("<link href='css/structure.css' rel='stylesheet' type='text/css'>");
	document.write("<link href='css/style.css' rel='stylesheet' type='text/css'>");
}else{
	document.write("<link href='css/styleMoz.css' rel='stylesheet' type='text/css'>");
	document.write("<link href='css/structureMoz.css' rel='stylesheet' type='text/css'>");
}