//browser check and css write

document.writeln('<style type="text/css"><!--');

if(navigator.appVersion.indexOf("Mac") != -1){
	if(navigator.appName.charAt(0) == "M"){
	// Mac IE
		document.writeln('.s1 { font-size:10px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:130%; }');
		document.writeln('.s2 { font-size:12px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:150%; }');
		document.writeln('.s3 { font-size:14px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:150%; }');
		document.writeln('.s4 { font-size:17px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:150%; }');
	}
	else if(navigator.appName.charAt(0) == "N"){
	// Mac NN
		document.writeln('.s1 { font-size:10px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:130%; }');
		document.writeln('.s2 { font-size:12px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:150%; }');
		document.writeln('.s3 { font-size:14px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:150%; }');
		document.writeln('.s4 { font-size:18px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:150%; }');
	}
}
else if(navigator.appVersion.indexOf("Win") != -1){
	if(navigator.appName.charAt(0) == "M"){
	// Win IE
		document.writeln('.s1 { font-size:11px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:130%; }');
		document.writeln('.s2 { font-size:13px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:150%; }');
		document.writeln('.s3 { font-size:15px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:150%; }');
		document.writeln('.s4 { font-size:16px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:150%; }');
	}
	else if(navigator.appName.charAt(0) == "N"){
	// Win NN
		document.writeln('.s1 { font-size:11px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:130%; }');
		document.writeln('.s2 { font-size:13px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:150%; }');
		document.writeln('.s3 { font-size:15px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:150%; }');
		document.writeln('.s4 { font-size:16px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:150%; }');
	}
}
else{
// Other
	document.writeln('.s1 { font-size:11px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:130%; }');
	document.writeln('.s2 { font-size:13px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:150%; }');
	document.writeln('.s3 { font-size:15px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:150%; }');
	document.writeln('.s4 { font-size:16px; font-family:‚l‚r ‚oƒSƒVƒbƒN,MS UI Gothic, Osaka; line-height:150%; }');
}

document.writeln('--></style>');

function selLink(form, sel){
	url = sel.options[sel.selectedIndex].value;
	if (url != "#") window.open(url,'_self');
}

function chBttn(name,num){
	if(document.images)document.images[name].src = imgCh[num].src;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function randomImg () {
	var imgArray = new Array("images/indeximage1.jpg", "images/indeximage2.jpg", "images/indeximage3.jpg", "images/indeximage4.jpg");
	var imageFile = imgArray[Math.floor(Math.random()*4)];
	document.write("<img src = \"", imageFile , "\" width=\"525\" height=\"169\" alt=\"\">");
}