// JavaScript Document

/* ロールオーバー*/

/*
	Standards Compliant Rollover Script
	Author : Daniel Nolan
	http://www.bleedingego.co.uk/webdev.php
*/

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 == 'imgover') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_o'+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('_o'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}

window.onload = initRollovers;




function mmLoadMenus() {
  if (window.mm_menu_0713164717_0) return;
            window.mm_menu_0713164717_0 = new Menu("root",166,21,"ＭＳ Ｐゴシック, Osaka, ヒラギノ角ゴ Pro W3",11,"#999999","#000000","#E7E7E7","#E7E7E7","left","middle",5,1,500,-5,7,true,true,true,5,true,true);
  mm_menu_0713164717_0.addMenuItem("1950〜60年代","location='development1950.html'");
  mm_menu_0713164717_0.addMenuItem("1980年代","location='development1980.html'");
  mm_menu_0713164717_0.addMenuItem("1990年代","location='development1990.html'");
  mm_menu_0713164717_0.addMenuItem("2000年代","location='development2000.html'");
  mm_menu_0713164717_0.addMenuItem("第40回東京モーターショー","popUpWindow('development_show04.html')");
  mm_menu_0713164717_0.addMenuItem("モーターショーバックナンバー","location='development_show00.html'");
   mm_menu_0713164717_0.hideOnMouseOut=true;
   mm_menu_0713164717_0.bgColor='#ffffff';
   mm_menu_0713164717_0.menuBorder=0;
   mm_menu_0713164717_0.menuLitebgColor='#ffffff';
   mm_menu_0713164717_0.menuBorderBgColor='#CCCCCC';
window.mm_menu_0713173837_0 = new Menu("root",103,21,"ＭＳ Ｐゴシック, Osaka, ヒラギノ角ゴ Pro W3",11,"#999999","#000000","#E7E7E7","#E7E7E7","left","middle",5,1,500,-5,7,true,true,true,5,true,true);
  mm_menu_0713173837_0.addMenuItem("1950〜60年代","location='trd1950.html'");
  mm_menu_0713173837_0.addMenuItem("1970〜80年代","location='trd1970.html'");
  mm_menu_0713173837_0.addMenuItem("1990年代","location='trd1990.html'");
  mm_menu_0713173837_0.addMenuItem("2000年代","location='trd2000.html'");
   mm_menu_0713173837_0.hideOnMouseOut=true;
   mm_menu_0713173837_0.bgColor='#ffffff';
   mm_menu_0713173837_0.menuBorder=0;
   mm_menu_0713173837_0.menuLitebgColor='#ffffff';
   mm_menu_0713173837_0.menuBorderBgColor='#CCCCCC';
window.mm_menu_0713174623_0 = new Menu("root",103,21,"ＭＳ Ｐゴシック, Osaka, ヒラギノ角ゴ Pro W3",11,"#999999","#000000","#E7E7E7","#E7E7E7","left","middle",5,1,500,-5,7,true,true,true,5,true,true);
  mm_menu_0713174623_0.addMenuItem("1950〜60年代","location='service1950.html'");
  mm_menu_0713174623_0.addMenuItem("1970年代","location='service1970.html'");
  mm_menu_0713174623_0.addMenuItem("1980〜90年代","location='service1980.html'");
  mm_menu_0713174623_0.addMenuItem("2000年代","location='service2000.html'");
   mm_menu_0713174623_0.hideOnMouseOut=true;
   mm_menu_0713174623_0.bgColor='#ffffff';
   mm_menu_0713174623_0.menuBorder=0;
   mm_menu_0713174623_0.menuLitebgColor='#ffffff';
   mm_menu_0713174623_0.menuBorderBgColor='#CCCCCC';

    window.mm_menu_0717111758_0 = new Menu("root",141,17,"ＭＳ Ｐゴシック, Osaka, ヒラギノ角ゴ Pro W3",11,"#999999","#000000","#E7E7E7","#E7E7E7","left","middle",5,1,500,-5,7,true,true,true,5,true,true);
  mm_menu_0717111758_0.addMenuItem("国内モータースポーツ","location='/trd/index.html'");
  mm_menu_0717111758_0.addMenuItem("海外モータースポーツ","location='/business/motorsports02.html'");
  mm_menu_0717111758_0.addMenuItem("グラスルーツ","location='/business/motorsports03.html'");
   mm_menu_0717111758_0.hideOnMouseOut=true;
   mm_menu_0717111758_0.bgColor='#ffffff';
   mm_menu_0717111758_0.menuBorder=0;
   mm_menu_0717111758_0.menuLitebgColor='#ffffff';
   mm_menu_0717111758_0.menuBorderBgColor='#CCCCCC';
			
    window.mm_menu_0717111759_0 = new Menu("root",141,17,"ＭＳ Ｐゴシック, Osaka, ヒラギノ角ゴ Pro W3",11,"#999999","#000000","#E7E7E7","#E7E7E7","left","middle",5,1,500,-5,7,true,true,true,5,true,true);
  mm_menu_0717111759_0.addMenuItem("国内モータースポーツ","location='index.html'");
  mm_menu_0717111759_0.addMenuItem("海外モータースポーツ","location='../business/motorsports02.html'");
  mm_menu_0717111759_0.addMenuItem("グラスルーツ","location='../business/motorsports03.html'");
   mm_menu_0717111759_0.hideOnMouseOut=true;
   mm_menu_0717111759_0.bgColor='#ffffff';
   mm_menu_0717111759_0.menuBorder=0;
   mm_menu_0717111759_0.menuLitebgColor='#ffffff';
   mm_menu_0717111759_0.menuBorderBgColor='#CCCCCC';

  window.mm_menu_0717113251_0 = new Menu("root",113,17,"ＭＳ Ｐゴシック, Osaka, ヒラギノ角ゴ Pro W3",11,"#999999","#000000","#E7E7E7","#E7E7E7","left","middle",5,1,500,-5,7,true,true,true,5,true,true);
  mm_menu_0717113251_0.addMenuItem("TRDカスタマイズ","location='trd.html'");
  mm_menu_0717113251_0.addMenuItem("コンプリートカー","location='complete.html'");
   mm_menu_0717113251_0.hideOnMouseOut=true;
   mm_menu_0717113251_0.bgColor='#ffffff';
   mm_menu_0717113251_0.menuBorder=0;
   mm_menu_0717113251_0.menuLitebgColor='#ffffff';
   mm_menu_0717113251_0.menuBorderBgColor='#CCCCCC';
			
  window.mm_menu_0717113252_0 = new Menu("root",113,17,"ＭＳ Ｐゴシック, Osaka, ヒラギノ角ゴ Pro W3",11,"#999999","#000000","#E7E7E7","#E7E7E7","left","middle",5,1,500,-5,7,true,true,true,5,true,true);
  mm_menu_0717113252_0.addMenuItem("TRDカスタマイズ","location='../business/trd.html'");
  mm_menu_0717113252_0.addMenuItem("コンプリートカー","location='../business/complete.html'");
   mm_menu_0717113252_0.hideOnMouseOut=true;
   mm_menu_0717113252_0.bgColor='#ffffff';
   mm_menu_0717113252_0.menuBorder=0;
   mm_menu_0717113252_0.menuLitebgColor='#ffffff';
   mm_menu_0717113252_0.menuBorderBgColor='#CCCCCC';

window.mm_menu_0919170517_0 = new Menu("root",120,21,"ＭＳ Ｐゴシック, Osaka, ヒラギノ角ゴ Pro W3",11,"#999999","#000000","#E7E7E7","#E7E7E7","left","middle",5,1,500,-5,7,true,true,true,5,true,true);
  mm_menu_0919170517_0.addMenuItem("経営理念","location='../company/rinen.html'");
  mm_menu_0919170517_0.addMenuItem("事業紹介","location='../business/index.html'");
  //mm_menu_0919170517_0.addMenuItem("スペシャルムービー","location='../movie/index.html'");
  mm_menu_0919170517_0.addMenuItem("Message From TTC","location='message.html'");
  mm_menu_0919170517_0.addMenuItem("採用情報","location='newgrad.html'");
  mm_menu_0919170517_0.addMenuItem("FAQ","location='faq.html'");
   mm_menu_0919170517_0.hideOnMouseOut=true;
   mm_menu_0919170517_0.bgColor='#ffffff';
   mm_menu_0919170517_0.menuBorder=0;
   mm_menu_0919170517_0.menuLiteBgColor='#999999';
   mm_menu_0919170517_0.menuBorderBgColor='#CCCCCC';

mm_menu_0717113251_0.writeMenus();
} // mmLoadMenus()

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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];}
}



