/* Apple Design Style Sheet 2002 */

canUseHiragino=false;
isSafari=false;
if ((navigator.userAgent.indexOf('MSIE 5.12') != -1) ||(navigator.userAgent.indexOf('MSIE 5.2') != -1) || ((navigator.userAgent.indexOf('Mozilla') != -1) && (navigator.userAgent.indexOf('Mac OS X') != -1))) {
	canUseHiragino=true;
	if (navigator.userAgent.indexOf('AppleWebKit') != -1){
		isSafari=true;
	}
}

if(navigator.userAgent.indexOf('MSIE 5.14') != -1){
	if (navigator.plugins) {
		for (i=0; i < navigator.plugins.length; i++ ) {
			if (navigator.plugins[i].name.indexOf("QuickTime") >= 0 && navigator.plugins[i].filename.indexOf('.plugin')!=-1){
				canUseHiragino=true;
			}
		}
	}
}


if(canUseHiragino){
	document.writeln('<style type="text/css">');
	document.writeln('<!--');
	if (isSafari){
	document.writeln('.KB14O, .KB14G, .KB18B, .KB18W { font-family: "Hiragino Kaku Gothic Pro"; font-weight: bold; }');
	document.writeln('.R10, .R10R, .R12, .R12BB, .R12B, .R12G, .R12O, .RB12O, .R14, .R14P { font-family: "Hiragino Maru Gothic Pro"; font-weight: normal; }');
	} else {
	document.writeln('.KB14O, .KB14G, .KB18B, .KB18W { font-family: "?q???M?m?p?S Pro W6"; font-weight: normal; }');
	document.writeln('.R10, .R10R, .R12, .R12BB, .R12B, .R12G, .R12O, .RB12O, .R14, .R14P { font-family: "?q???M?m?ۃS Pro W4"; font-weight: normal; }');
	}
	document.writeln('-->');
	document.writeln('</style>');
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function OpenWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");

		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}

if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}
