
//ロールオーバー

function ROfunction(){
	var imgNum=document.getElementsByTagName("img");
	var inputNum=document.getElementsByTagName("input");
	overNum=new Array;
	for(i=0;i<imgNum.length;i++){overNum[i]=imgNum[i];}
	for(i=0;i<inputNum.length;i++){overNum[i+imgNum.length]=inputNum[i];}
	for(i=0;i<overNum.length;i++){
		if(overNum[i].className.indexOf("Rover")!=-1){
			overNum[i].overimg=new Image();
			if(overNum[i].className.indexOf(":")!=-1){
				Replace=overNum[i].className.split(":");
				Replace=Replace[1].split(" ");
				overNum[i].overimg.src=Replace[0];
			}else{
				Replace = overNum[i].src.length;
				overNum[i].overimg.src=overNum[i].src.substring(0,Replace-4)+"_o"+overNum[i].src.substring(Replace-4,Replace);
			}
			overNum[i].setAttribute("out",overNum[i].src);
			overNum[i].onmouseover=new Function('this.src=this.overimg.src;');
			overNum[i].onmouseout=new Function('this.src=this.getAttribute("out");');
		}
	}
}
window.onload=ROfunction;



//ウィンドウオープン

function ow(url) {
  WO = window.open("/fischer/conserv/index.html",'r_s','width=600,height=800,scrollbars=auto,resizable=yes');
  WO.focus();
}



//フラッシュ

var swfVersion="8";
var swfDirectory="./"

var VBflash="ShockwaveFlash.ShockwaveFlash."+swfVersion;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin){
	plugin = parseInt(plugin.description.match(/\d+\.\d+/)) >= swfVersion;
}else{
	document.write('<script language=VBScript>\n');
	document.write('on error resume next\n');
	document.write('plugin=(IsObject(CreateObject(VBflash)))\n');
	document.write('</script\>');
}

function showSwf(){
	if (plugin){
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+swfWidth+'" height="'+swfHeight+'">');
		document.write('<param name="movie" value="'+ swf +'" /><param name="loop" value="true" /><param name="quality" value="high" /><param name="base" value="'+swfDirectory+'">');
		document.write('<embed src="'+ swf +'" base="'+swfDirectory+'" loop="true" quality="high" swLiveConnect="false" width="'+swfWidth+'" height="'+swfHeight+'" type="application/x-shockwave-flash"></embed>');
		document.write('</object>');
	}else{
		document.write('<p style="width:950px; height:458px; text-align:center; margin:0 auto"><a href="/fischer/products/alpine/"><img src="/fischer/images/top_main.jpg" width="950" height="458" alt="" /></a></p>');
	}
}





//タブメニュー

	function TABfunction(Num,Length){
		for(i=1; i<=Length ; i++){
			menuobj=getID('tabMenuA'+i);
			layobj=getID('tabBlockA'+i);
			if(i==Num){
				//メニューオーバー値を設定
				menuobj.backgroundPosition ="0px top";
				layobj.display='block';
			}else{
				//メニューデフォルト値を設定
				menuobj.backgroundPosition ="0px bottom";
				layobj.display='none';
			}
		}
	}
	function getID(layName){
		if(document.getElementById)return document.getElementById(layName).style;
		if(document.layers)return document.layers[layName];
		if(document.all)return document.all(layName).style;
	}

