function FoglioStile(strRelativePathFoglioStile) {
	var relativePath = "";	
	if (!(strRelativePathFoglioStile == "" || strRelativePathFoglioStile == null)){
		var lastPos = strRelativePathFoglioStile.lastIndexOf('/');
		if (!(lastPos == -1))
			relativePath = strRelativePathFoglioStile.substring(0,(parseInt(lastPos)+1));
	}
{
	if (((screen.width < 800 || screen.width == 800) && (screen.height < 600 || screen.height == 600))||(navigator.appName == "Microsoft Internet Explorer" && navigator.platform == "MacPPC"))
		document.write("<style type=\"text/css\" media=\"screen\">@import url("+relativePath+"global2.css);</style>");
	 else 
		document.write("<style type=\"text/css\" media=\"screen\">@import url("+relativePath+"global.css);</style>");
}

}
