/**********************************************************
pageScroll
--------
ページをスムーズにスクロール（ href属性値が#で始まるものが対象 ）
@param / @return
**********************************************************/
/*
function pageScroll() {
	$("a[href*=#]").click(function() {
		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
			var $target = $(this.hash);
			$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
			if ($target.length) {
				var targetOffset = $target.offset().top;
				$('html,body').animate({scrollTop: targetOffset}, 500);
				return false;
			}
		}
	});
}
*/
/**********************************************************
実行処理
**********************************************************/
/*$(document).ready(pageScroll);
*/



/**********************************************************
ホスト名によるパスの設定
**********************************************************/
hostname_w = window.location.hostname;
if (hostname_w == "demo1.colletomo.com"){ //プレビューサーバー
	from_rootpath = "/yamano-bc_2011_93";
}else if (hostname_w == ""){
	from_rootpath = "/制作データ/yamano-bc.jp（山野美容専門学校）/最新public_htmlファイル/public_html";
}else{ //本番サーバー
	from_rootpath = "";
}


function vspam(im,domain) {
  var maddress = "mailto:" + im + "@" + domain;
  window.location.href = maddress;
}

function backToTop() {
	//この処理はエラー表示対策のために残すこと
}


/**********************************************************
ポップアップ
**********************************************************/
/*swf内から呼び出し*/
function disp(url){
	window.opener.location.href = url;
	window.close();
}


function closeWindow(){
	window.close();
}

function closeWin(){
	window.close();
}

/*Flash上からUserAgent変更*/
function getUserAgent() {
	uAgent = "";
	uAgent = navigator.userAgent;
	if((uAgent.indexOf("Safari") != -1)||(uAgent.indexOf("Opera") != -1)){
	uAgent = 1;
	}
	return uAgent;
}


/*WindowOPEN*/
function openWin(theURL,winName,features) { 
	var newwin=window.open(theURL,winName,features);
	newwin.focus();
}


/*オープンキャンパスPRページ　通常*/
/*20120125イベントページへ変更*/
function oc1Win(){
	st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;
	var wy = 770;
	x = (screen.width  - wx) / 2;
	y = ((screen.height - wy) / 2) - 30;
	newwin = window.open(from_rootpath+"/other/event.html","newWinOpen","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
	/*ocFormWin();*/
}

/*オープンキャンパス（ヘッダボタン導線）*/
function oc2Win(){
	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.yamano.jp/cgi-bin/ybc/cgi-bin/opencampus/index.cgi","newWinOpenForm","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}
/*2012年1月19日リンク変更
function oc2Win(){
	st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;
	var wy = 770;
	x = (screen.width  - wx) / 2;
	y = ((screen.height - wy) / 2) - 30;
	newwin = window.open(from_rootpath+"/other/open.html","newWinOpen","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}
*/

/*2011年度*/
function oc2011Win(){
	st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;
	var wy = 770;
	x = (screen.width  - wx) / 2+20;
	y = ((screen.height - wy) / 2) - 50;
	newwin = window.open(from_rootpath+"/other/open2011.html","newWinOpen2011","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
	/*ocFormWin();*/
}


/*2012年度*/
function oc2012Win(){
	st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;
	var wy = 770;
	x = (screen.width  - wx) / 2+20;
	y = ((screen.height - wy) / 2) - 50;
	newwin = window.open(from_rootpath+"/other/open.html","newWinOpen2012","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
	/*ocFormWin();*/
}




/*イベント情報*/
function eventWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 838;
	var wy = 770;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/other/open.html","newWinOpen","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 = 620;
	var wy = 500;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/extra/shinsai.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*震災2*/
function shienWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 720;
	var wy = 700;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/extra/shien.html","newshienWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*震災2.5*/
function shienWin02() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 720;
	var wy = 700;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/extra/shien2.html","newshienWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*震災3*/
function shienareaWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 720;
	var wy = 700;
	var x = ((screen.width  - wx) / 2) + 50;
	var y = ((screen.height - wy) / 2) - 50;
	var newwin = window.open(from_rootpath+"/extra/shien_area.html","newareaWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}



/*オープンキャンパスPRページ　予告*/
/*
function oc102Win(){

	var st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 998;
	var wy = screen.height - (screen.height*0.15);
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/other/open.html#notification","newWinOpen","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}
*/


/*オープンキャンパス フォーム*/
function ocFormWin(){
	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.yamano.jp/cgi-bin/ybc/cgi-bin/opencampus/index.cgi","newWinOpenForm","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function ocFormWin2010(){
	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.yamano.jp/cgi-bin/ybc/cgi-bin/opencampus/index.cgi","newWinOpenForm","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}



/*学校見学申込フォーム*/
function kengakuWin(){
	
	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.yamano.jp/cgi-bin/ybc/cgi-bin/kengaku/index.cgi","newWinKengakuForm","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();

}

/*資料請求フォーム*/
function shiryoWin(){
	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.yamano.jp/cgi-bin/ybc/cgi-bin/shiryou/index.cgi","newWinSiryoForm","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*作品紹介*/
function workWin() { 
	var wx = 850;
	var wy = 680;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/extra/work.html","newWinWork","left="+x+",top="+y+",width="+wx+",height="+wy);
	newwin.focus();
}

/*在校生紹介*/
function studentWin() { 
	var wx = 850;
	var wy = 680;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/course/course-spe-s.html","newWinStudent","left="+x+",top="+y+",width="+wx+",height="+wy);
	newwin.focus();
}


/*教師紹介*/
function teacherWin() { 
	var wx = 850;
	var wy = 680;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/teacher.html","newWinTeacher","left="+x+",top="+y+",width="+wx+",height="+wy);
	newwin.focus();
}


/*試験日程*/
function shikenWin() { 
	var st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 1217;
	var wy = screen.height - (screen.height*0.15);
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/entry/exam-schedule.html","newWinSche","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*初めての方へ*/
function firstWin() { 
	var st = "scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 950;
	var wy = screen.height - (screen.height*0.15);
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/first.html","newWinFirst","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*ウェブキャンパスツアー*/
function campusWin() { 
	var st = "scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 996;
	var wy = 660;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/sinfo/newcampus/swf.html","newWinCampus","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*山野ホール*/
function hallWin() { 
	var st = "scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 1116;
	var wy = 730;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/sinfo/newcampus/qtvr.html","newWinHall","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*動画で見るYAMANO*/
function movieWin() { 
	var wx = 470;
	var wy = 320;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/extra/movie/movie01.html","newWinMovie","left="+x+",top="+y+",width="+wx+",height="+wy);
	newwin.focus();
}

/*地域別卒業生*/
function fromWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 910;
	var wy = 680;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/from.html","newWinFrom","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*卒業生の方へ日程表*/
function scheduleWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 730;
	var wy = 680;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/schedule.html","newWinSchedule","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*卒業生の活躍*/
function gradWin(fname) { 
	//var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var st = "scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/"+fname,"newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*卒業生の活躍*/
function gradIndexWin() { 
	//var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var st = "scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/index.html","newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*入学願書受付中バナー*/
function entryWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 450;
	var wy = 406;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/entry_info.html","newWinEntry","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function entry02Win() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 450;
	var wy = 386;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/entry_info02.html","newWinEntry","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}



/*入学願書受付中バナー
function entryWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 390;
	var wy = 330;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/entry_info.html","newWinEntry","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}
*/

/*先輩たちの声*/
function adultWin(fname) { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 770;
	var wy = screen.height - (screen.height*0.15);
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(fname,"newWinAdVoice","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*COMING SOON */
function comingWin(){

	var st = "scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 780;
	var wy = 540;
	//ieとffだと左右が若干ずれるため分岐。
	//ie用
	if(navigator.systemLanguage) {
		var x = ((screen.width  - wx) / 2) - 14;
	//ffなど
	}else {
		var x = ((screen.width  - wx) / 2) - 11;
	}
	var y = ((screen.height - wy) / 2) + 60;
	var newwin = window.open("coming_soon.html","newWinComing","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();

}

/*only one*/
function onlyWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 717;
	var wy = 680;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/onlyone.html","newWinOnly","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function PromiseWin() { 
	var st = "scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 700;
	var wy = 530;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/promise.html","newWinPromise","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}




/*カリキュラム動画*/
function movie_curriculumWin() { 
	var wx = 720;
	var wy = 480;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/extra/movie/curriculum_you.html","newWinCurriculumMovie","left="+x+",top="+y+",width="+wx+",height="+wy);
	newwin.focus();
}

/*カリキュラム動画　クローズ時の動作無し版*/
function movie_curriculumWin2() { 
	var wx = 720;
	var wy = 480;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/extra/movie/curriculum_you2.html","newWinCurriculumMovie2","left="+x+",top="+y+",width="+wx+",height="+wy);
	newwin.focus();
}

/*カリキュラム動画*/
function movie_curriculum_liveWin() { 
	var wx = 720;
	var wy = 480;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/extra/movie/curriculum_live.html","newWinCurriculumMovie","left="+x+",top="+y+",width="+wx+",height="+wy);
	newwin.focus();
}


/*indexFlashから呼び出し*/
function gradWin0() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/acc-grad32.html","newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function gradWin1() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/acc-grad01.html","newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function gradWin2() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/acc-grad25.html","newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function gradWin3() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/acc-grad09.html","newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function gradWin4() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/acc-grad11.html","newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function gradWin5() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/acc-grad21.html","newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function gradWin6() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/acc-grad06.html","newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function gradWin7() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/acc-grad30.html","newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function gradWin8() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/acc-grad23.html","newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function gradWin9() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/acc-grad07.html","newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function gradWin10() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/acc-grad29.html","newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();

}


/*カリキュラム追加*/
function curri_new(){
	var st = "scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 818;
	var wy = 599;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/course/new_curriculum.html","newWinCurri","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


function welfareLink(){
	window.opener.location.href = from_rootpath+"/course/course-spe.html#beautyClass";
	window.close();
}

/*杉田*/
function jobWin0() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/acc-grad25.html","newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*室岡*/
function jobWin1() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/acc-grad09.html","newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
}

/*松下*/
function jobWin2() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/acc-grad06.html","newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*野田*/
function jobWin3() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/acc-grad36.html","newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*佐藤*/
function jobWin4() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/acc-grad29.html","newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*菊池*/
function jobWin5() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 915;
	var wy = 675;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) - 30;
	var newwin = window.open(from_rootpath+"/accession/acc_grad/acc-grad05.html","newWinGrad","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*学費サポート*/
function OricoWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=yes,directories=yes,location=yes,menubar=yes,status=yes";
	var wx = 860;
	var wy = 620;//720
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2) -30;
	var newwin = window.open(from_rootpath+"/other/orico.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function JaccsWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=yes,directories=yes,location=yes,menubar=yes,status=yes";
	var wx = 860;
	var wy = 620;//720
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2)-30 ;
	var newwin = window.open(from_rootpath+"/other/jaccs.html","newWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*ジョブインデックス*/
function jobIndexWin() { 
	var st = "scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 800;
	var wy = 300;//720
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2)-30 ;
	var newwin = window.open(from_rootpath+"/extra/job.html","newjobWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


function jobSupportWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 900;
	var wy = 680;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2)-30 ;
	var newwin = window.open(from_rootpath+"/extra/career.html","careerWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*20110617*/
function yakanVistWin() { 
	var st = "scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 720;
	var wy = 565;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2)-30 ;
	var newwin = window.open(from_rootpath+"/extra/night_tour.html","visitWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}


/*2011/8/2　AO入学前プログラム*/
function aoProgWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 900;
	var wy = 680;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2)-30 ;
	var newwin = window.open(from_rootpath+"/extra/ao_program.html","aoWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

function aoLink(){
	window.opener.location.href = from_rootpath+"/ao.html";
	window.close();
}

/*AOバナー入れ替え*/
function changeMapImage(imgPath,TG) {
  document.getElementById(TG).src = imgPath;
}


/*2011/9/9　山野祭*/
function yamanofesWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;
	var wy = 680;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2)-30 ;
	var newwin = window.open(from_rootpath+"/other/yamano_fes.html","fesWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*特待生制度*/
function tokutaiWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 770;
	var wy = 680;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2)-30 ;
	var newwin = window.open(from_rootpath+"/extra/past_exam.html","examWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}




/*専門課程カリキュラム*/
function movie_youWin(){
}

/*高等課程カリキュラム*/
function movie_liveWin(){
	
}


/*2011/8/23 在校生Flashから起動*/
/*オープンキャンパスPRページ*/
function ocFromfl(){
	st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 817;
	var wy = 770;
	x = (screen.width  - wx) / 2;
	y = ((screen.height - wy) / 2) - 30;
	newwin = window.open(from_rootpath+"/other/open.html","newWinOc","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
	window.close();
}

/*カリキュラム*/
function curriLink(){
	window.opener.location.href = from_rootpath+"/course/course-spe.html";
	window.close();
}

/*編入*/
function hennyuLink(){
	window.opener.location.href = from_rootpath+"/accession/acc-uni.html";
	window.close();
}


/*2011/11/25*/
function livepopWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 917;
	var wy = 770;
	var x = (screen.width  - wx) / 2;
	var y = ((screen.height - wy) / 2)-30 ;
	var newwin = window.open(from_rootpath+"/extra/live_popup.html","liveWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}

/*カリキュラムへのリンク*/
function liveLink(){
	if(window.opener==null){//直接開いた場合
	location.href = from_rootpath+"/course/course-high.html";
	}
	else if(window.opener.name=='liveWin'){//2重ポップアップ
		window.opener.opener.location.href = from_rootpath+"/course/course-high.html";
		window.opener.close();
		window.close();		
	}else{//直接ポップアップ
	window.opener.location.href = from_rootpath+"/course/course-high.html";
	window.close();
	}
}


/*インタビュー*/
function intpopWin() { 
	var st = "scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no";
	var wx = 917;
	var wy = 770;
	var x = (screen.width  - wx) / 2+30;
	var y = ((screen.height - wy) / 2)-50 ;
	var newwin = window.open(from_rootpath+"/extra/live_interview.html","intWin","left="+x+",top="+y+",width="+wx+",height="+wy+","+st);
	newwin.focus();
}



/*フローティングバナー消す*/
/*
function delswf(){
	Element.remove("floating");
}*/


