var bwr=navigator.appName;
var ver=parseInt(navigator.appVersion, 10);
NS4=(bwr=="Netscape" && ver==4) ? 1:0;
NS6=(bwr=="Netscape" && ver==6) ? 1:0;
IE4=(bwr=="Microsoft Internet Explorer" && ver==4) ? 1:0;
IE5=(bwr=="Microsoft Internet Explorer" && ver==5) ? 1:0;
IE6=(bwr=="Microsoft Internet Explorer" && ver==6) ? 1:0;
ver4=(NS4 || IE4 || NS6 || IE5) ? 1:0;
isMac=(navigator.appVersion.indexOf("Mac") !=-1) ? 1:0;
isDynamic=(NS4 || (IE4 && !isMac) || NS6 || IE5) ? 1:0;
	if (NS4 || NS6) {
	 doc="document";
	 styl="";
	}
	else if (IE4 || IE5) {
	 doc="document.all";
	 styl=".style";
	}
function changeProp(layerName,theProp,theValue) {
	var usedLyr = eval(doc + '["' + layerName + '"]' + styl);
	 if ((theProp == "visible") || (theProp == "visibility")) {
		if (NS4) {
		 theProp = "visible";
		 }
		 else if (IE4 || IE5 || IE6 || NS6 || NS7) {
		  theProp = "visibility";
		}
	 }
		 eval('usedLyr.' + theProp + '="' + theValue + '"');
		}
var browser_name = navigator.appName; //тип броузера
//если броузер IE тогда подключаем таблицу стилей для експлорера
if (browser_name == "Microsoft Internet Explorer"){
	document.styleSheets(0).href = "/arttrans_msie.css";	
} 
//else document.styleSheets(0).href = "/arttrans_moz.css";