	function chg_loc(n){
	if(n==1){
		link_lst="http://jjclib.kiui.ac.jp/cgi-bin/nph-mgwcgi?MGWLPN=F18&RTN=SMALL^PAC521";
		document.getElementById('calinfo').innerHTML='<img src="img/calendar_sc_t.gif" alt="開館時間"/><div id="caltxt"><a href="#" id="cal2" onclick="chg_loc(2)">順正高等看護専門学校はこちら</a><br><img src="img/calendar_attention.gif" width="216" height="11" alt="掲載されている日程は変更される場合があります。"></div>';
	}
	else{
		link_lst="http://jjclib.kiui.ac.jp/cgi-bin/nph-mgwcgi?MGWLPN=F18&RTN=SMALL^PAC521&Kn=2";
		document.getElementById('calinfo').innerHTML='<img src="img/calendar_sc_k.gif" alt="開館時間"/><div id="caltxt"><a href="#" id="cal2" onclick="chg_loc(1)">順正短期大学はこちら</a><br><img src="img/calendar_attention.gif" width="216" height="11" alt="掲載されている日程は変更される場合があります。"></div>';
	}
	fm.location.href=link_lst;
	}


var menu=function(){
	var t=15,z=50,s=2,a;
	function dd(n){this.n=n; this.h=[]; this.c=[]}
	dd.prototype.init=function(p,c){
		a=c; var w=document.getElementById(p), s=w.getElementsByTagName('ul'), l=s.length, i=0;
		for(i;i<l;i++){
			var h=s[i].parentNode; this.h[i]=h; this.c[i]=s[i];
			h.onmouseover=new Function(this.n+'.st('+i+',true)');
			h.onmouseout=new Function(this.n+'.st('+i+')');
		}
	}
	dd.prototype.st=function(x,f){
		var c=this.c[x], h=this.h[x], p=h.getElementsByTagName('a')[0];
		clearInterval(c.t); c.style.overflow='hidden';
		if(f){
			p.className+=' '+a;
			if(!c.mh){c.style.display='block'; c.style.height=''; c.mh=c.offsetHeight; c.style.height=0}
			if(c.mh==c.offsetHeight){c.style.overflow='visible'}
			else{c.style.zIndex=z; z++; c.t=setInterval(function(){sl(c,1)},t)}
		}else{p.className=p.className.replace(a,''); c.t=setInterval(function(){sl(c,-1)},t)}
	}
	function sl(c,f){
		var h=c.offsetHeight;
		if((h<=0&&f!=1)||(h>=c.mh&&f==1)){
			if(f==1){c.style.filter=''; c.style.opacity=1; c.style.overflow='visible'}
			clearInterval(c.t); return
		}
		var d=(f==1)?Math.ceil((c.mh-h)/s):Math.ceil(h/s), o=h/c.mh;
		c.style.opacity=o; c.style.filter='alpha(opacity='+(o*100)+')';
		c.style.height=h+(d*f)+'px'
	}
	return{dd:dd}
}();
//http://www.leigeber.com/2008/11/drop-down-menu/


//ブランク画面最大化
function newWin(url,name){

	w = window.screen.availWidth - 10;
	h = window.screen.availHeight - 180;
	option = "width="+w+",height="+h+",toolbar=yes,menubar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes,left=0px,top=0px"
	subwin = window.open(url,name,option);
}