﻿//受験生サイトのグローバルメニューでのロールオーバー処理に使用します。
//Yuuki
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];}
}


/*スパム対策*/
<!--
function vspam(im,domain) {
  maddress = "mailto:" + im + "@" + domain;
  window.location.href = maddress;
}
// -->


/*ページスクロール*/
function SmoothScroll(targetID){
  if( !document.getElementById ) {return true;}
  var step=1;  //初速度
  var max=200;  //最高速度
  var accel=1;  //加速度
  var interval=1;  //加速インターバル
  var current_y = document.body.scrollTop  || document.documentElement.scrollTop;
  var element=document.getElementById(targetID);
  if (!element){return true;}
  var target_y = 0;
  for (i = element;i.offsetParent;i=i.offsetParent ){
    target_y += i.offsetTop;
  }
  var count=0;
  if ( current_y > target_y ){ step = -(step); accel = -(accel);}
  var timerid = setInterval( function(){
    if (step<max) step += (count*accel);
    if ( Math.abs(current_y-target_y) < Math.abs(step) ){
      window.scrollTo((document.body.scrollTop  || document.documentElement.scrollTop),target_y);
      clearInterval(timerid);
      return false;
    }else{
      window.scrollBy(0,step);
      current_y += step;
      count++;
    }
  },interval);
  return false;
}



/*ポップアップスクリプト
---------------------------------*/

/*ホスト名によるパスの設定*/
hostname_w = window.location.hostname;
if (hostname_w == "demo2.colletomo.com"){ //プレビューサーバー
	from_rootpath = "/yca2012_prev08";
}else if (hostname_w == ""){//ローカル環境時
	from_rootpath = "/制作データ/yamano.ac.jp（山野美容芸術短期大学）/【2009】public_html";
}else{ //本番サーバー
	from_rootpath = "";
}


/*Flash上からUserAgent変更*/
function getUserAgent() {
	uAgent = "";
	uAgent = navigator.userAgent;
	if((uAgent.indexOf("Opera") != -1)){
	uAgent = 1;
	}
	return uAgent;
}



/*20120126追記
---------------------*/

/**********************************************************
navAct
--------
ロールオーバーのアクティブ処理
@param / @return
**********************************************************/
function navAct() {
	var bodyIdName = $("body").attr('id');
	if(bodyIdName == "about"){
	$("li#g_nav1 a img").attr("src",from_rootpath +"/common/imgs/shared/g_nav01_o.png");
	$("li#g_nav1 a img").removeClass("imgover");
	}else if(bodyIdName == "faculty"){
	$("li#g_nav2 a img").attr("src",from_rootpath +"/common/imgs/shared/g_nav02_o.png");
	$("li#g_nav2 a img").removeClass("imgover");
	}else if(bodyIdName == "employment"){
	$("li#g_nav3 a img").attr("src",from_rootpath +"/common/imgs/shared/g_nav03_o.png");
	$("li#g_nav3 a img").removeClass("imgover");
	}else if(bodyIdName == "career"){
	$("li#g_nav4 a img").attr("src",from_rootpath +"/common/imgs/shared/g_nav04_o.png");
	$("li#g_nav4 a img").removeClass("imgover");
	}else if(bodyIdName == "international"){
	$("li#g_nav5 a img").attr("src",from_rootpath +"/common/imgs/shared/g_nav05_o.png");
	$("li#g_nav5 a img").removeClass("imgover");
	}else if(bodyIdName == "c-life"){
	$("li#g_nav6 a img").attr("src",from_rootpath +"/common/imgs/shared/g_nav06_o.png");
	$("li#g_nav6 a img").removeClass("imgover");
	}else if(bodyIdName == "guide"){
	$("li#g_nav7 a img").attr("src",from_rootpath +"/common/imgs/shared/g_nav07_o.png");
	$("li#g_nav7 a img").removeClass("imgover");
	}	
}


/**********************************************************
実行処理
**********************************************************/
$(document).ready(navAct);
$(document).ready(initRollOvers);

/*オープンキャンパス*/
function ocWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 827;//windowの横幅
	var wy = 800;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/opencampus/index.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function ocWinshingaku() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 857;//windowの横幅
	var wy = 800;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/opencampus/index.html#shingaku","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*ワークショップ*/
function ocWorkshop() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;//windowの横幅
	var wy = 800;//windowの高さ
	var x = (screen.width  - wx) / 2+20;
	var y = ((screen.height - wy) / 2) - 50;
	var newwin = window.open("workshop.html","newWinWork","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*オープンキャンパス*/
function ocFes() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 1000;//windowの横幅
	var wy = 650;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/opencampus/fes.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*オープンキャンパス トワイライト*/
function ocEveningWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 1000;//windowの横幅
	var wy = 650;//windowの高さ
	var x = (screen.width  - wx) / 2+10;
	var y = ((screen.height - wy) / 2) - 40;
	var newwin = window.open(from_rootpath+"/opencampus/index.html#evening","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*オープンキャンパス フェス*/
function ocFesWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 1000;//windowの横幅
	var wy = 650;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/opencampus/index.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*オープンキャンパス*/
/*2010_11_18変更
function ocTea() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;//windowの横幅
	var wy = 800;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/opencampus/index.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}*/


/*使ってない！*/
function ocTea() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 820;//windowの横幅
	var wy = 660;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/opencampus/application.html","newWinWork","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*greentea*/
function greentea() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 900;//windowの横幅
	var wy = 600;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"greentea.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*20110511追加交通アクセスポップアップ*/
function showMap(){
	window.opener.location.href =from_rootpath+"/map.html" ;
	window.opener.focus();
}


/*詳細日程ポップアップ*/
function oc0219() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;//windowの横幅
	var wy = 700;//windowの高さ
	var x = (screen.width  - wx) / 2+20;
	var y = ((screen.height - wy) / 2) - 50;
	var newwin = window.open("2012/date0219.html","newWin04","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function oc0318() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;//windowの横幅
	var wy = 700;//windowの高さ
	var x = (screen.width  - wx) / 2+20;
	var y = ((screen.height - wy) / 2) - 50;
	var newwin = window.open("2012/date0318.html","newWin04","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


function oc0324() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;//windowの横幅
	var wy = 700;//windowの高さ
	var x = (screen.width  - wx) / 2+20;
	var y = ((screen.height - wy) / 2) - 50;
	var newwin = window.open("2012/date0324.html","newWin04","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function oc0401() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;//windowの横幅
	var wy = 700;//windowの高さ
	var x = (screen.width  - wx) / 2+20;
	var y = ((screen.height - wy) / 2) - 50;
	var newwin = window.open("2012/date0401.html","newWin04","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function oc0415() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;//windowの横幅
	var wy = 700;//windowの高さ
	var x = (screen.width  - wx) / 2+20;
	var y = ((screen.height - wy) / 2) - 50;
	var newwin = window.open("2012/date0415.html","newWin04","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function oc0428() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;//windowの横幅
	var wy = 700;//windowの高さ
	var x = (screen.width  - wx) / 2+20;
	var y = ((screen.height - wy) / 2) - 50;
	var newwin = window.open("2012/date0428.html","newWin04","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}





/*出願直前*/
function ocApplication() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;//windowの横幅
	var wy = 660;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open("application.html","newWinWork","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}



/*キャリア支援*/
function careerWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 1000;//windowの横幅
	var wy = 650;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/career.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*新設*/
function newcWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 1040;//windowの横幅
	var wy = 768;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/new.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*講師紹介*/
function instructorWin() { 
	var st = "scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 900;//windowの横幅
	var wy = 640;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/faculty/instructor/sp.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*茶室*/
function aizianWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 920;//windowの横幅
	var wy = 650;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/about/facilities/aizian_sp.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*ギャラリー*/
function galWin() { 
	var st = "scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 920;//windowの横幅
	var wy = 600;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/juken/gallery/index.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*例*/
function exWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 620;//windowの横幅
	var wy = 720;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open("../exsample.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*単位互換制度*/
function unitWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 620;//windowの横幅
	var wy = 720;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open("unit03_02.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*資料請求*/
function requireWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 750;//windowの横幅
	var wy = 650;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open("http://www.postin-net.com/yamano/","reqWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*体入フォーム*/
function openWin(){
	var st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 650;
	var wy = 680;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open("https://www.postin-svr.com/entry/yamano/opc/index.asp","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*体入フォーム*/
function openWin02(){
	var st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 800;
	var wy = 680;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open("https://www.postin-svr.com/entry/yamano/opc/index.asp","newWin03","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*体入フォーム*/
function openWin03(){
	var st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 800;
	var wy = 680;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open("https://www.postin-svr.com/entry/yamano/opc/index.asp","newWinocForm","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*AOフォーム*/
function aoWin(){
	var st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 750;
	var wy = 680;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open("https://www.yamano.jp/cgi-bin/yca/cgi-bin/ao_entry/index.cgi","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*震災*/
function shinsaiWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 630;//windowの横幅
	var wy = 510;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/info/shinsai.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*震災316*/
function shinsai316Win() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 630;//windowの横幅
	var wy = 510;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/info/shinsai_316.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*見学会*/
function ocVistWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 800;//windowの横幅
	var wy = 730;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/opencampus/visit.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


function nyugakushikiWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 630;//windowの横幅
	var wy = 530;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/info/nyugakushiki.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


function visit0615Win() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 800;//windowの横幅
	var wy = 730;//windowの高さ
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/opencampus/visit.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}



/*サマースクール*/
function summer2011() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;//windowの横幅
	var wy = 740;//windowの高さ
	var x = (screen.width  - wx) / 2+20;
	var y = ((screen.height - wy) / 2) - 50;
	var newwin = window.open(from_rootpath+"/opencampus/summer_2011.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*サマースクールプログラム*/
function summer2011sche(anc) { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 857;//windowの横幅
	var wy = 740;//windowの高さ
	var x = (screen.width  - wx) / 2+80;
	var y = ((screen.height - wy) / 2) - 80;
	var newwin = window.open(from_rootpath+"/opencampus/summer_2011_timetable.html#"+anc,"newWintable","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}



/*国の修学サポート*/
function support() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 800;//windowの横幅
	var wy = 740;//windowの高さ
	var x = (screen.width  - wx) / 2+20;
	var y = ((screen.height - wy) / 2) - 50;
	var newwin = window.open(from_rootpath+"/faculty/beautywelfare/support.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}





/*Indexフラッシュ用
---------------------------------------*/
// クッキーの書き込み
function saveCookie(n) {
  cName = "yamanoac_cscount="; // クッキー名
  cDays = 1; // データの保存日数
  setPre = new Date();
  setPre.setTime(setPre.getTime() + (cDays*1000*24*3600));
  prd = setPre.toGMTString();
  document.cookie = cName + n + ";expires=" + prd;
}


//初回訪問の場合はカミングスーンのPOPUPを強制表示
function first_commingsoon() {
	cName = "yamanoac_cscount="; // クッキー名
	cCookie = document.cookie+";";
	str = cCookie.indexOf(cName);
	if(str != -1) { //2回目以降の訪問の場合
		document.getElementById("flash_area-second").style.display = "block";
		return true;
		} else { //初めての訪問の場合
		saveCookie(2); //クッキーの書き込み
		document.getElementById("flash_area").style.display = "block";
		return false;
	}
}


/*教師紹介用のリンク*/
function Link_art(){//芸術
	window.opener.location.href = from_rootpath+"/faculty/instructor/art.html";
	window.close();
}

function Link_hel(){//保健
	window.opener.location.href = from_rootpath+"/faculty/instructor/health.html";
	window.close();
}

function Link_wel(){//福祉
	window.opener.location.href = from_rootpath+"/faculty/instructor/welfare.html";
	window.close();
}


/*アクセスマップ・ポップアップ*/
function openExpGuide(code){
	var newwin = window.open("http://welcomenavi.jp/route/mrnavi.cgi?content=w1f8mkqfpl&landmp=35/37/04.602,139/20/44.053&style=cmj&landmk="+code, "keirowindow","width=800,height=600,toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes");
	newwin.focus();
}


/*2011 11 17ジャックス*/
function jaccs() { 
	var st = "scrollbars=yes,resizable=yes,toolbar=yes,directories=yes,location=yes,menubar=yes,status=yes";
	var wx = 860;//windowの横幅
	var wy = 700;//windowの高さ
	var x = (screen.width  - wx) / 2+20;
	var y = ((screen.height - wy) / 2) - 50;
	var newwin = window.open(from_rootpath+"/expenses/jaccs.html","jaccsWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}



/*メーラー*/
/*
$(function() {
    var ua = navigator.userAgent.toUpperCase();
    if (ua.indexOf("MAC") >= 0) {
        $('a#mlink').get(0).href = 'mailto:koho@yamano.ac.jp?body=お名前：%0D参加希望番号：&subject=サマースクール参加申込';
    }
});
*/


/*springschoolポップアップ*/
function ss2012() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;//windowの横幅
	var wy = 800;//windowの高さ
	var x = (screen.width  - wx) / 2+20;
	var y = ((screen.height - wy) / 2) - 50;
	var newwin = window.open(from_rootpath+"/opencampus/springschool/index.html","newWinss","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function oc0326() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;//windowの横幅
	var wy = 700;//windowの高さ
	var x = (screen.width  - wx) / 2+20;
	var y = ((screen.height - wy) / 2) - 50;
	var newwin = window.open("date0326.html","newWin04","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function oc0327() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;//windowの横幅
	var wy = 700;//windowの高さ
	var x = (screen.width  - wx) / 2+20;
	var y = ((screen.height - wy) / 2) - 50;
	var newwin = window.open("date0327.html","newWin04","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


function oc0328() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;//windowの横幅
	var wy = 700;//windowの高さ
	var x = (screen.width  - wx) / 2+20;
	var y = ((screen.height - wy) / 2) - 50;
	var newwin = window.open("date0328.html","newWin04","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

