// JavaScript Document

function openNewWin(url, name, w, h) {
	var newWin;
	var options = "toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=yes";
	newWin = window.open(url, name,"width=" + w + ",height=" + h + options);
	newWin.focus();
}

function openFixWin(url, name, w, h) {
	var newWin;
	var options = "toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no";
	newWin = window.open(url, name,"width=" + w + ",height=" + h + options);
	newWin.focus();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



function FlashMulti(swfUrl, movW, movH, ver) {//FlashPlayer_ver6以外のときはverの所に値を入れる
if(!ver || ver == ""){
ver = 8;
}
     document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+ver+",0,0,0" width="'+movW+'" height="'+movH+'" align="middle">\n');  //引数より幅と高さを差込。
     document.write('<param name="movie" value="'+swfUrl+'">\n');  //引数よりファイル名を差込
     document.write('<param name="quality" value="high">\n');
     document.write('<param name="bgcolor" value="#ffffff">\n');
     document.write('<embed src="'+swfUrl+'" quality="high" bgcolor="#ffffff"  width="'+movW+'" height="'+movH+'" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\n');  //引数よりファイル名・幅と高さを差込
     document.write('</embed>\n');
     document.write('</object>\n');
}


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);
}


var clear="/images/spacer.gif"; //path to clear.gif

document.write('<script type="text/javascript" id="ct" defer="defer" src="javascript:void(0)"><\/script>');var ct=document.getElementById("ct");ct.onreadystatechange=function(){pngfix()};pngfix=function(){var els=document.getElementsByTagName('*'),ip=/\.png/i,al="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='",i=els.length,uels=new Array(),c=0;while(i-->0){if(els[i].className.match(/unitPng/)){uels[c]=els[i];c++;}}if(uels.length==0)pfx(els);else pfx(uels);function pfx(els){i=els.length;while(i-->0){var el=els[i],es=el.style,elc=el.currentStyle,elb=elc.backgroundImage;if(el.src&&el.src.match(ip)&&!es.filter){es.height=el.height;es.width=el.width;es.filter=al+el.src+"',sizingMethod='crop')";el.src=clear;}else{if(elb.match(ip)){var path=elb.split('"'),rep=(elc.backgroundRepeat=='no-repeat')?'crop':'scale',elkids=el.getElementsByTagName('*'),j=elkids.length;es.filter=al+path[1]+"',sizingMethod='"+rep+"')";es.height=el.clientHeight+'px';es.backgroundImage='none';if(j!=0){if(elc.position!="absolute")es.position='static';while(j-->0)if(!elkids[j].style.position)elkids[j].style.position="relative";}}}}};};