//**** crossroad to CSS files ***************************
var vnum = navigator.appVersion.substring(0,1)
mac = false;
var n4 = (document.layers)? true:false;
var e4 = (document.all)? true:false;
var n6 = (document.getElementById)? true:false;
if (e4) n6=false;

//==== for Macintosh
if(navigator.userAgent.indexOf('Mac') != -1) {
	document.write('<LINK REL="stylesheet" TYPE="text/Css" HREF="../CSS/mac.css" TITLE="Css for MAC-NN">');

}

//==== for Windows
else {
	if(n4){
		document.write('<LINK REL="stylesheet" TYPE="text/Css" HREF="../CSS/win_nn.css" TITLE="Css for WIN-NN">');
		document.close();
	}
	if(e4){
		document.write('<LINK REL="stylesheet" TYPE="text/Css" HREF="../CSS/win_ie.css" TITLE="Css for WIN-IE">');	
	}
	if(n6){
		document.write('<LINK REL="stylesheet" TYPE="text/Css" HREF="../CSS/win_nn.css" TITLE="Css for WIN-NN">');
	}
	onerror = errorhandle;
}

function errorhandle() {
	return true
}

//**** CSS protection for Netscape **********************
if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4) {
	widthCheck = window.innerWidth
	heightCheck = window.innerHeight
	window.onResize = resizeFix
}
function resizeFix() {
	if (widthCheck != window.innerWidth || heightCheck != window.innerHeight)
	document.location.href = document.location.href
}

