//==============================================================================
// 親ウィンドウ名
//==============================================================================
window.name = "cbs";
focus();

function exwin() {
 num = Math.floor(Math.random()*1000);
 ex = 'newwin'+num;
 window.name = ex;
}


//==============================================================================
//	ロールオーバーの設定
//==============================================================================
function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

//プリロード
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_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 openWin(url,myWidth,myHeight){
	num = Math.floor(Math.random()*1000);
	newwin = 'newwin'+num;
    win = window.open(url,newwin,'toolbar=1,location=1,status=1,menubar=1,scrollbars=yes,resizable=1,width='+myWidth+',height='+myHeight+'');
    win.focus();}
	
//==============================================================================
//	別ウィンドウ（スタッフ）
//==============================================================================
function openStaffWin(url){
	num = Math.floor(Math.random()*1000);
	newwin = 'newwin'+num;
    win = window.open(url,newwin,'toolbar=1,location=0,status=1,menubar=0,scrollbars=yes,resizable=1,width=690,height=600');
    win.focus();}
	
	
	
	
	////////////////////////////////////////////////////////////
//共通

// =================================================================================================
// HEADER
// =================================================================================================
function Header(Flr) {
	if(Flr==0) {
document.write('<div class="HeaderL"><h1><a href="../index.html"><img src="../common/img/common_img_rogo.jpg" alt="中央大学ビジネススクール" width="358" height="73"></a></h1></div><div class="HeaderR"><ul><li><a href="../sitemap/index.html"><img src="../common/img/common_btn_sitemap.jpg" alt="サイトマップ" width="77" height="15"></a></li><li><a href="../index.html"><img src="../common/img/common_btn_gotoTop.jpg" alt="トップページに戻る" width="113" height="15"></a></li></ul></div><div class="ClearFloat"></div>');
		}
}

// =================================================================================================
// FOOTER
// =================================================================================================
function Footer(Flr) {
	if(Flr==0) {
document.write('Copyright 2008 Chuo University. All Rights Reserved.');
		}
}


// =================================================================================================
// SIDEBANNER
// =================================================================================================
function SideBanner(Flr) {
	if(Flr==0) {
document.write('<ul class=""><li><a href="http://www.chuo-u.ac.jp/chuo-u/lawschool/index_j.html" target="_blank"><img src="../common/img/common_bnr_cgsa.jpg" width="125" height="32" alt="中央大学法科大学院"></a></li><li><a href="http://www.chuo-u.ac.jp/chuo-u/cgsa/index_j.html" target="_blank"><img src="../common/img/common_bnr_beginners.jpg" alt="CGSA アカウンティングスクール" width="125" height="32"></a></li><li><a href="http://www2.chuo-u.ac.jp/cbs/ac/index.html" target="_blank"><img src="../common/img/common_bnr_academy.jpg" alt="戦略経営アカデミー" width="125" height="32"></a></li></ul><ul class="mt15"><li><a href="../advice/index.html"><img src="../common/img/common_bar_message.jpg" alt="在学生メッセージ" width="125" height="73"></a></li><li><a href="../column/index.html"><img src="../common/img/common_bar_colum.jpg" alt="コラム 戦略経営入門" width="125" height="73"></a></li><li><a href="http://www2.chuo-u.ac.jp/cbs/news/koukaikouza.html"><img src="../common/img/common_bar_consult.jpg" alt="公開講座・進学相談会" width="125" height="73"></a></li></ul>');
		}
}
