var exec_flg = 0;

function StartMove() {
	var nWidth = 768;
	var pWidth;
	var wWidth;
	//NNの場合
	if (navigator.appName=="Netscape")	{
		//真中を計算
//		nWinWidth = window.innerWidth/2;
		//幅を取得
		if (window.innerWidth > nWidth) {
			wWidth = (window.innerWidth - nWidth)/2;
			pWidth = 2;
		}
		else {
			wWidth = 10;
		}
		//NN4
		if(document.layers)	{
			//レイヤーの幅と高さから真中を固定し表示
			document.Layer1.left = wWidth +4;
			document.Layer2.left = wWidth +128;
			document.Layer3.left = wWidth +212;
			document.Layer4.left = wWidth +318;
			document.Layer6.left = wWidth +529;
			document.Layer7.left = wWidth +634;
		}
		//NN6
		else {
			document.getElementById("Layer1").style.left = wWidth +pWidth +4;
			document.getElementById("Layer2").style.left = wWidth +pWidth +128;
			document.getElementById("Layer3").style.left = wWidth +pWidth +212;
			document.getElementById("Layer4").style.left = wWidth +pWidth +318;
			document.getElementById("Layer6").style.left = wWidth +pWidth +529;
			document.getElementById("Layer7").style.left = wWidth +pWidth +634;
		}
	}
	//IEの場合
	if (document.all) {
		//真中を計算
		//nWinWidth = window.document.body.clientWidth/2;
		//幅を取得
		if (window.document.body.clientWidth > nWidth) {
			wWidth = (window.document.body.clientWidth - nWidth)/2 +10;
		}
		else {
			wWidth = 10;
		}
		//レイヤーの幅と高さから真中を固定し表示
		Layer1.style.left = wWidth +4;
		Layer2.style.left = wWidth +128;
		Layer3.style.left = wWidth +212;
		Layer4.style.left = wWidth +318;
		Layer6.style.left = wWidth +529;
		Layer7.style.left = wWidth +634;
	}
}

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_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_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_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;
	if ( exec_flg == 1 ) {
	  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 subWin(wURL,wName,wOption){
	window.open(wURL,wName,wOption);
}

function wclose(){
	window.close();
}
