var C = 0;
var str = '';
var ops = navigator.userAgent;
if(navigator.appName.charAt(0) == "M"){
	if(navigator.appVersion.charAt(0) < 4){
		location.href = "./error.html";
	}else{
		var appv = navigator.appVersion;
		if(appv.indexOf("MSIE")){
			var va = appv.charAt(appv.indexOf("MSIE") + 5);
			if(va == 4){ location.href = "./error.html"; }
			if(navigator.platform.substr(0,3) != "Mac"){
				if(va == 5){ str += "div.mainpht a{ width:auto; height:auto; }\n";
					str += "div.mainmenu li a{ padding-left:2px; font-size:1px; text-indent:0; }\n"; }
				if(va < 7){
					str += "div.header div.topmenu li a{ width:77px; }\ndiv.header div.topmenu li.sitemap a{ width:95px; }\n";
					str += "dl.tecdl dt{ width:313px; }\n";
				}
			}
		}
	}
}else{
	str += "input{ line-height:100%; }\n";
}
if(navigator.platform.substr(0,3) == "Mac"){
	if(ops.indexOf("MSIE") == -1){
		if(ops.indexOf("Safari") == -1){
			str += "body{ font-size:92%; }\r\n";
		}else{
			str += "body{ font-size:80%; }\r\n";
		}
	}
}
if(str != ""){
	document.write("<style type='text/css'><!--\n" + str + "-->\n</style>\r\n");
}

var bpht1 = new Array();
for(var i=1;i<=5;i++){
	bpht1[i] = new Image();
	bpht1[i].src = "./img/r" + i + ".gif";
}

function colChg(nmb,ptn){
	var nam = "bt" + nmb;
	if(ptn == 1){
		document.getElementById(nam).style.backgroundImage = "url(" + bpht1[nmb].src + ")";
	}else{
		document.getElementById(nam).style.backgroundImage = "url(./img/nasi.gif)";
	}
}
