/*
Includo lo StyleSheet appropriato in base al browser
*/
//alert(navigator.appName);
//alert(navigator.userAgent);
if((navigator.appName.indexOf('Netscape') != -1) && ((navigator.userAgent.indexOf('/4') != -1) || (navigator.userAgent.indexOf('/6') != -1))) {
	//Netscape
	HM_BrowserString="NS4";
} 
if((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('/4') != -1)) {
	//Explorer
	HM_DOM = (document.getElementById) ? true : false;
	HM_BrowserString = HM_DOM ? "DOM" : "IE4";
}
if((navigator.platform.indexOf('Mac') != -1)) {
	//explorer 4.5 e netscape 4.77 per MAC
	if((navigator.userAgent.indexOf('MSIE 4.5') != -1) || (navigator.userAgent.indexOf('4.77') != -1)) {
		HM_BrowserString = MAC;
	}
}
if(navigator.userAgent.indexOf("Safari") != -1) {
	HM_DOM = (document.getElementById) ? true : false;
	HM_BrowserString = HM_DOM ? "DOM" : "IE4";
}
if(navigator.userAgent.indexOf('Mozilla') != -1) {
	HM_DOM = (document.getElementById) ? true : false;
	HM_BrowserString = HM_DOM ? "DOM" : "IE4";
}
document.write("<link rel='stylesheet' href='includes/stile" + HM_BrowserString + ".css' type='text/css'>");
