var openedMenu = null;
var submenuTimer;

//画像メニューにポインタがきた時
function menuOvr(id){

	// 開いているメニューと違うメニューであれば隠す。
	if (openedMenu && openedMenu != id){
		CloseMenu(id);
	}

	// サブウィンドウの表示
	OpenMenu(id);
}

//レイヤメニューの表示
function OpenMenu(id){ 

	if ( document.getElementById ){
		document.getElementById( id ).style.visibility = 'visible';
	}else if ( document.all ){
		document.all( id ).style.visibility = 'visible';
	}else if ( document.layers ){
		document.layers[ id ].visibility = 'show';
	}

	clearTimeout(submenuTimer);

	openedMenu = id;

}

//レイヤメニューの削除
function CloseMenu(){ 

	if ( document.getElementById ){
		document.getElementById( openedMenu ).style.visibility = 'hidden';
	}else if ( document.all ){
		document.all( openedMenu ).style.visibility = 'hidden';
	}else if ( document.layers ){
		document.layers[ openedMenu ].visibility = 'hide';
	}

	openedMenu = null;

}


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_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_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 changeImage1(){
document.myimg1.src="../img/frame_buttan1_f2.jpg";}
function changeImage2(){
document.myimg1.src="../img/frame_buttan1.jpg";}

function changeImage3(){
document.myimg2.src="../img/frame_buttan2_f2.jpg";}
function changeImage4(){
document.myimg2.src="../img/frame_buttan2.jpg";}

function changeImage5(){
document.myimg3.src="../img/frame_buttan3_f2.jpg";}
function changeImage6(){
document.myimg3.src="../img/frame_buttan3.jpg";}

function changeImage7(){
document.myimg4.src="../img/frame_buttan4_f2.jpg";}
function changeImage8(){
document.myimg4.src="../img/frame_buttan4.jpg";}

function changeImage9(){
document.myimg5.src="../img/frame_buttan5_f2.jpg";}
function changeImage10(){
document.myimg5.src="../img/frame_buttan5.jpg";}

function changeImage11(){
document.myimg6.src="../img/frame_buttan6_f2.jpg";}
function changeImage12(){
document.myimg6.src="../img/frame_buttan6.jpg";}

function changeImage13(){
document.myimg7.src="../img/frame_buttan7_f2.jpg";}
function changeImage14(){
document.myimg7.src="../img/frame_buttan7.jpg";}

function changeImage15(){
document.myimg8.src="../img/frame_buttan8_f2.gif";}
function changeImage16(){
document.myimg8.src="../img/frame_buttan8.gif";}


function Open01()
{window.open("../service/blank/blank_1.html","open01","toolber=0,location=0,directories=0,status=0,menuber=0,resizeble=no,scrollbars=yes,width=700,height=600");}
function Open02()
{window.open("../service/blank/blank_2.html","open02","toolber=0,location=0,directories=0,status=0,menuber=0,resizeble=no,scrollbars=yes,width=760,height=600");}