function setFlash2(name,width,height,bgcolor,wmode,page){
strWord = "";
strWord +='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" WIDTH="'+width+'" HEIGHT="'+height+'" page="'+name+'" ALIGN="">';
strWord +='<PARAM NAME=movie VALUE="'+name+'.swf?page='+ page+'&mode='+mode+'">';
strWord +='<PARAM NAME=quality VALUE=high>';
strWord +='<PARAM NAME=bgcolor VALUE=#'+bgcolor+'>';
//strWord +='<PARAM NAME=wmode VALUE='+wmode+'>';
strWord +='<EMBED src="'+name+'.swf?page='+ page+'&mode='+mode+'" quality=high bgcolor=#'+bgcolor+' WIDTH="'+width+'" HEIGHT="'+height+'" NAME="'+name+'" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>';
strWord +='</OBJECT>';
document.write(strWord);

}


function setFlash(name,width,height,bgcolor,wmode,page){
strWord = "";
strWord +='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" WIDTH="'+width+'" HEIGHT="'+height+'" page="'+name+'" ALIGN="">';
strWord +='<PARAM NAME=movie VALUE="'+name+'.swf?page='+ page+'">';
strWord +='<PARAM NAME=quality VALUE=high>';
strWord +='<PARAM NAME=bgcolor VALUE=#'+bgcolor+'>';
strWord +='<PARAM NAME=wmode VALUE='+wmode+'>';
strWord +='<EMBED src="'+name+'.swf?page='+ page+'" quality=high wmode='+wmode+' bgcolor=#'+bgcolor+' WIDTH="'+width+'" HEIGHT="'+height+'" NAME="'+name+'" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>';
strWord +='</OBJECT>';

document.write(strWord);

}


//ロールオーバー
/*------------------------------------------------------------
	Standards Compliant Rollover Script
	Author : Daniel Nolan
	http://www.bleedingego.co.uk/webdev.php
 *------------------------------------------------------------
 * マウスオーバー時の画像切り替え
 * ロールオーバーを設定する画像にクラス名「ele」を指定
 * ロールオーバー時に表示するための画像ファイル名後ろに「_2」をつける
/*------------------------------------------------------------*/


function initRollovers() {
	if (!document.getElementById) return
	
	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');

	for (var i = 0; i < aImages.length; i++) {		
		if (aImages[i].className == 'ele') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_2'+ftype);

			aImages[i].setAttribute('hsrc', hsrc);
			
			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;
			
			aImages[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}	
			
			aImages[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace 
('_2'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}

window.onload = initRollovers;

 var nWin;
function MM_openBrWindow(theURL,winName,features) { //v2.0
  nWin = window.open(theURL,winName,features);
  nWin.focus();
}




function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}




function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


var nWin;
function xOpenWin1(sURL,sName,nWidth,nHeight)
{
	nWin = window.open("code.html","mobileaccess","scrollbars=yes,location=yes,resizable=yes,width=270,height=620");
	nWin.focus();
}


var nWin;
function xOpenWin2(sURL,sName,nWidth,nHeight)
{
	nWin = window.open("code.html","mobileaccess","scrollbars=yes,location=yes,resizable=yes,width=270,height=620");
	nWin.focus();
}


var nWin;
function openChild_fumi001()
{
	nWin = window.open("code.html","mobileaccess","scrollbars=yes,location=yes,resizable=yes,width=270,height=620");
	nWin.focus();
}



