﻿/* --- スタイル設定 --- */
/*

css_path = '/css/';
if (navigator.appVersion.indexOf("Win") >= 0){
	if (navigator.userAgent.indexOf("MSIE")>=0) {
		css_file = '';
	} else {
		css_file = 'win_nn.css';//alert('win nn')
	}
} else {
	if (navigator.userAgent.indexOf("MSIE")>=0) {
		css_file = 'mac_ie.css';//alert('mac ie')
	} else {
		css_file = 'mac_nn.css';//alert('mac nn')
	}
}
if (css_file.length>0) { 
	document.write('<link href="' + css_path + css_file + '" rel="stylesheet" type="text/css">');
	//alert(css_path + css_file)
}

*/


/* --- MM共通function --- */



/* --- Layer関係function ---

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

--- */

function makeMenu() {
	document.write(' <table width="560" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">' );
	document.write(' <tr>' );
	document.write(' <td align="center"><a href="../index.html" onmouseover="MM_swapImage(\'image00\',\'\',\'../images/2nd-head_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="../images/2nd-head.gif" alt="エコドライブ" name="image00" width="560" height="130" border="0" id="image00" /></a><br />' );
	document.write(' <a href="../about/index.html" onmouseover="MM_swapImage(\'m01\',\'\',\'../images/menu01_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="../images/menu01.gif" alt="エコドライブとは？" name="m01" width="114" height="34" border="0" id="m01" /></a><a href="../tm6idea/index.html" onmouseover="MM_swapImage(\'m02\',\'\',\'../images/menu02_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="../images/menu02.gif" alt="チーム・マイナス６％が考えるエコドライブ" name="m02" width="110" height="34" border="0" id="m02" /></a><a href="../10recommendation/index.html" onmouseover="MM_swapImage(\'m03\',\'\',\'../images/menu03_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="../images/menu03.gif" alt="エコドライブ10のススメ" name="m03" width="110" height="34" border="0" id="m03" /></a><a href="../estart/index.html" onmouseover="MM_swapImage(\'m04\',\'\',\'../images/menu04_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="../images/menu04.gif" alt="ふんわりアクセル「eスタート」とは？" name="m04" width="110" height="34" border="0" id="m04" /></a><a href="../commission/index.html" onmouseover="MM_swapImage(\'m05\',\'\',\'../images/menu05_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="../images/menu05.gif" alt="エコドライブ普及連絡会" name="m05" width="116" height="34" border="0" id="m05" /></a><a href="javascript:;" onmouseover="MM_swapImage(\'m06\',\'\',\'../images/menu06_on.gif\',1)" onmouseout="MM_swapImgRestore()"><br />' );
	document.write(' </a>' );
	document.write(' <table width="560" border="0" cellspacing="0" cellpadding="0">' );
	document.write(' <tr>' );
	document.write(' <td width="224"><a href="../topics/index.html" onmouseover="MM_swapImage(\'m06\',\'\',\'../images/menu06_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="../images/menu06.gif" alt="エコドライブニュース" name="m06" width="114" height="34" border="0" id="m06" /></a><a href="../challenge/index.html" onmouseover="MM_swapImage(\'m07\',\'\',\'../images/menu07_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="../images/menu07.gif" alt="「エコ・チャレンジ」レポート" name="m07" width="110" height="34" border="0" id="m07" /></a></td>' );
	document.write(' <td width="336"><span class="header-b2"><img src="../images/menu_net_a.gif" alt="エコドライブネットワーク" width="336" height="17" /><br />' );
	document.write(' <img src="../images/menu_net_b.gif" width="13" height="17" /><a href="../network/index.html" onmouseover="MM_swapImage(\'sm01\',\'\',\'../images/menu_net01_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="../images/menu_net01.gif" alt="省庁" name="sm01" width="40" height="17" border="0" id="sm01" /></a><a href="../network/index02.html" onmouseover="MM_swapImage(\'sm02\',\'\',\'../images/menu_net02_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="../images/menu_net02.gif" alt="地方公共団体" name="sm02" width="78" height="17" border="0" id="sm02" /></a><a href="../network/index03.html" onmouseover="MM_swapImage(\'sm03\',\'\',\'../images/menu_net03_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="../images/menu_net03.gif" alt="公益法人等" name="sm03" width="69" height="17" border="0" id="sm03" /></a><a href="../network/index04.html" onmouseover="MM_swapImage(\'sm04\',\'\',\'../images/menu_net04_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="../images/menu_net04.gif" alt="民間企業" name="sm04" width="59" height="17" border="0" id="sm04" /></a><a href="../network/index05.html" onmouseover="MM_swapImage(\'sm05\',\'\',\'../images/menu_net05_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="../images/menu_net05.gif" alt="メーカー" name="sm05" width="59" height="17" border="0" id="sm05" /></a><img src="../images/menu_net_c.gif" width="18" height="17" /></span></td>' );
	document.write(' </tr>' );
	document.write(' </table></td>' );
	document.write(' </tr>' );
	document.write(' </table>' );
}




function makeWMP (fname, w, h) {

	document.write('<object id="MediaPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version= 6,4,5,715" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" width="'+w+'" height="'+h+'"><param name="FileName" value="' + fname + '"><param name="AutoStart" value="TRUE"><param name="ShowControls" value="TRUE"><param name="ShowPositionControls" value="FALSE"><param name="EnableContextMenu" value="0"><param name="AutoSize" value="0"><param name="DisplaySize" value="0"><param name="ShowStatusBar" value="1"><embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&" src="' + fname + '" AutoStart=1 ShowControls=1 ShowPositionControls=0 width='+w+' height='+h+' ShowStatusBar=1 AutoSize=0 DisplaySize=0 vspace=0 hspace=0 nojava=1></embed></object>');

}

function makeQT (fname, w, h) {

	document.write('<embed src="' + fname + '" width="' + w + '" height="' + h + '" PLUGINSPAGE="http://quicktime.apple.com/" AUTOPLAY="true" CONTROLLER="true" cache="true" type="video/quicktime"></embed>');


}

