// ナビゲーション処理
// イメージリスト new Image(幅 ,高さ)
  if (document.images) {
  navi01on = new Image(180 ,18); navi01on.src = "/imgs/navi01on.gif";
  navi02on = new Image(180 ,18); navi02on.src = "/imgs/navi02on.gif";
  navi03on = new Image(180 ,18); navi03on.src = "/imgs/navi03on.gif";
  navi04on = new Image(180 ,18); navi04on.src = "/imgs/navi04on.gif";
  navi05on = new Image(180 ,18); navi05on.src = "/imgs/navi05on.gif";
  navi06on = new Image(180 ,18); navi06on.src = "/imgs/navi06on.gif";
  navi07on = new Image(180 ,18); navi07on.src = "/imgs/navi07on.gif";
  navi08on = new Image(180 ,18); navi08on.src = "/imgs/navi08on.gif";
  navi09on = new Image(180 ,18); navi09on.src = "/imgs/navi09on.gif";
  navi10on = new Image(180 ,18); navi10on.src = "/imgs/navi10on.gif";
  navi11on = new Image(180 ,18); navi11on.src = "/imgs/navi11on.gif";
  navi12on = new Image(180 ,18); navi12on.src = "/imgs/navi12on.gif";
  navi13on = new Image(180 ,18); navi13on.src = "/imgs/navi13on.gif";
  thumbon = new Image(90 ,13); thumbon.src = "/imgs/thumbon.gif";
    }


function setnav(obj,on,off,idx){
	if(document.getElementById){
		document.getElementById(obj).style.display=='none' ? document.getElementById(obj).style.display='': document.getElementById(obj).style.display='none';
		document.getElementById(obj+"i").src.indexOf(idx) > 0 ? document.getElementById(obj+"i").src=on : document.getElementById(obj+"i").src=off
	}
	else if(document.all){
		document.all(obj).style.display=='none' ? document.all(obj).style.display='' : document.all(obj).style.display='none';
		document.all(obj+"i").src.indexOf(idx)>0 ? document.all(obj+"i").src=on : document.all(obj+"i").src=off}
	else if(document.layers){
		document.layers[obj].display=='none' ? document.layers[obj].display='' : document.layers[obj].display='none';
		document.layers[obj+"i"].src.indexOf(idx)>0 ? document.layers[obj+"i"].src=on : document.layers[obj+"i"].src=off}
}





// ナビゲーション処理
//ヘッダーナビ
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];}
}
//-->


//openwind
function MM_openBrWindow(theURL,winName,features) { //v2.0
  newwin = window.open(theURL,winName,features);
	newwin.focus();
}

/*OBOG学園祭告知ポップ*/
function festaObOg() { 
	wx = 500;
	wy = 750;
	x = (screen.width  - wx) / 2;
	y = (screen.height - wy) / 2;
	st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	newwin = window.open("extra/festa_info_obog.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*シブヤプロダクツポップ*/
function shibuyaWin(directory) { 
	wx = 860;
	wy = 750;
	x = (screen.width  - wx) / 2;
	y = (screen.height - wy) / 2;
	st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	newwin = window.open(directory + "shibuyaproducts/index.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function shibuya02Win(directory) { 
	wx = 860;
	wy = 750;
	x = (screen.width  - wx) / 2;
	y = (screen.height - wy) / 2;
	st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	newwin = window.open(directory + "../shibuyaproducts/index.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}



/*オリコポップアップ*/
function oricoWin(directory) { 
	wx = 680;
	wy = 700;
	x = (screen.width  - wx) / 2;
	y = (screen.height - wy) / 2;
	st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	newwin = window.open(directory + "orico.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*卒業作品展ポップ*/
function exhibitionWin(directory) { 
	wx = 900;
	wy = 800;
	x = (screen.width  - wx) / 2;
	y = (screen.height - wy) / 2;
	st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	newwin = window.open("http://www.ndg.ac.jp/exhibition.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*イラストレーターズポップ*/
function illustratorsWin(directory) { 
	wx = 1050;
	wy = 600;
	x = (screen.width  - wx) / 2;
	y = (screen.height - wy) / 2;
	st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	newwin = window.open(directory + "illustrators/index.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*swf内から呼び出し*/
function disp(url){
	if(!window.opener || window.opener.closed){ // メインウィンドウの存在をチェック
		location.href=url;
	}
	else{
	window.opener.location.href = url;
	window.close();
	}
}
