/***********************************************  
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)  
* This notice MUST stay intact for legal use  
* Visit http://www.dynamicdrive.com/ for full source code  
***********************************************/  
  
//Contents for submenu 1
var menu31=new Array()   
menu31[0]='<p><a href="http://www.takachiho.jp/entrance/message.html">学長メッセージ</a></p>'
menu31[1]='<p><a href="http://www.takachiho.jp/examination/exam_view.html">入試制度一覧</a></p>'
menu31[2]='<p><a href="http://www.takachiho.jp/examination/tuition_u.html">入学検定料・学費・奨学金制度</a></p>'
menu31[3]='<p><a href="http://daigaku.shingakunavi.jp/p/school/pamphlet/pamphlet.aspx?scl_no=7520500&cid=sp0200070501" target="_blank" class="external">Smartパンフ</a></p>'
menu31[4]='<p><a href="http://www.takachiho.jp/faculty/index.html">学部情報</a></p>'
menu31[5]='<p><a href="http://www.takachiho.jp/outline/index.html">大学案内</a></p>'
menu31[6]='<p><a href="http://www.takachiho.jp/campus/index.html">キャンパス情報</a></p>'
menu31[7]='<p><a href="http://www.takachiho.jp/entrance/schoollife.html">入学から卒業まで</a></p>'
menu31[8]='<p><a href="https://secure02.blue.shared-server.net/www.takachiho.jp/contact/contact/index.php">お問い合わせ</a></p>'

//Contents for submenu 2
var menu32=new Array()   
menu32[0]='<p><a href="http://www.takachiho.jp/campus/schedule.html">年間スケジュール</a></p>'
menu32[1]='<p><a href="http://www.takachiho.jp/campus/study.html">学習サポート</a></p>'
menu32[2]='<p><a href="http://www.takachiho.jp/campus/support.html">学生生活サポート</a></p>'
menu32[3]='<p><a href="http://www.takachiho.jp/employment/index.html">就職・進路情報</a></p>'
menu32[4]='<p><a href="http://www.takachiho.jp/student/cancel.html">休講情報</a></p>'
menu32[5]='<p><a href="http://www.takachiho.jp/student/lecture_date.html">教員出講日について</a></p>'
menu32[6]='<p><a href="http://www.takachiho.jp/student/examination.html">試験情報</a></p>'
menu32[7]='<p><a href="http://www.takachiho.jp/campus/campusmap.html">利用可能な施設について</a></p>'
menu32[8]='<p><a href="http://www.takachiho.jp/campus/lib/index.html">図書館</a></p>'
menu32[9]='<p><a href="http://www.takachiho.ac.jp/center/index.html" target="_blank" class="external">情報メディアセンター</a></p>'
menu32[10]='<p><a href="http://www.takachiho.ac.jp/gakuyukai/main.html" target="_blank" class="external">学友会</a></p>'
menu32[11]='<p><a href="http://www.takachiho.jp/procedure/index.html">各種手続きについて</a></p>'
menu32[12]='<p><a href="https://secure02.blue.shared-server.net/www.takachiho.jp/contact/contact/index.php">お問い合わせ</a></p>'
menu32[13]='<p><a href="http://www.takachiho.jp/student/faq.html">FAQ</a></p>'

//Contents for submenu 3
var menu33=new Array()   
menu33[0]='<p><a href="http://www.takachiho.jp/graduate/greeting.html">同窓会について</a></p>'
menu33[1]='<p><a href="http://www.takachiho.jp/campus/seminarhouse.html">白根セミナーハウスについて</a></p>'
menu33[2]='<p><a href="http://www.takachiho.jp/campus/lib/index.html">図書館</a></p>'
menu33[3]='<p><a href="http://www.takachiho.jp/procedure/index.html">各種手続きについて</a></p>'
menu33[4]='<p><a href="https://secure02.blue.shared-server.net/www.takachiho.jp/contact/contact/index.php">お問い合わせ</a></p>'

//Contents for submenu 4
var menu34=new Array()   
menu34[0]='<p><a href="http://www.takachiho.jp/parents/meeting.html">父母の会について</a></p>'
menu34[1]='<p><a href="http://www.takachiho.jp/outline/index.html">大学案内</a></p>'
menu34[2]='<p><a href="http://www.takachiho.jp/campus/index.html">キャンパス情報</a></p>'
menu34[3]='<p><a href="https://secure02.blue.shared-server.net/www.takachiho.jp/contact/contact/index.php">お問い合わせ</a></p>'


var menuwidth='165px' //default menu width   
var menubgcolor='no'  //menu bgcolor   
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)   
var hidemenu_onclick="no" //hide menu when user clicks within menu?   
  
/////No further editting needed   
  
var ie4=document.all   
var ns6=document.getElementById&&!document.all   
  
if (ie4||ns6)   
document.write('<div id="dropSubmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')   
  
function getposOffset(what, offsettype){   
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;   
var parentEl=what.offsetParent;   
while (parentEl!=null){   
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;   
parentEl=parentEl.offsetParent;   
}   
return totaloffset;   
}   
  
  
function showhide(obj, e, visible, hidden, menuwidth){   
if (ie4||ns6)   
dropmenuobj.style.left=dropmenuobj.style.top="-500px"  
if (menuwidth!=""){   
dropmenuobj.widthobj=dropmenuobj.style   
dropmenuobj.widthobj.width=menuwidth   
}   
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")   
obj.visibility=visible   
else if (e.type=="click")   
obj.visibility=hidden   
}   
  
function iecompattest(){   
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body   
}   
  
function clearbrowseredge(obj, whichedge){   
var edgeoffset=0   
if (whichedge=="rightedge"){   
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15   
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth   
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)   
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth   
}   
else{   
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset   
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18   
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight   
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?   
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight   
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?   
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge   
}   
}   
return edgeoffset   
}   
  
function populatemenu(what){   
if (ie4||ns6)   
dropmenuobj.innerHTML=what.join("")   
}   
  
  
function dropdownsubmenu(obj, e, menucontents, menuwidth){   
if (window.event) event.cancelBubble=true  
else if (e.stopPropagation) e.stopPropagation()   
clearhidemenu()   
dropmenuobj=document.getElementById? document.getElementById("dropSubmenudiv") : dropSubmenudiv   
populatemenu(menucontents)   
  
if (ie4||ns6){   
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)   
dropmenuobj.x=getposOffset(obj, "left")   
dropmenuobj.y=getposOffset(obj, "top")   
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"  
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"  
}   
  
return clickreturnvalue()   
}   
  
function clickreturnvalue(){   
if (ie4||ns6) return false  
else return true  
}   
  
function contains_ns6(a, b) {   
while (b.parentNode)   
if ((b = b.parentNode) == a)   
return true;   
return false;   
}   
  
function dynamichide(e){   
if (ie4&&!dropmenuobj.contains(e.toElement))   
delayhidesubmenu()   
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))   
delayhidesubmenu()   
}   
  
function hidemenu(e){   
if (typeof dropmenuobj!="undefined"){   
if (ie4||ns6)   
dropmenuobj.style.visibility="hidden"  
}   
}   
  
function delayhidesubmenu(){   
if (ie4||ns6)   
delayhide=setTimeout("hidemenu()",disappeardelay)   
}   
  
function clearhidemenu(){   
if (typeof delayhide!="undefined")   
clearTimeout(delayhide)   
}   
  
if (hidemenu_onclick=="yes")   
document.onclick=hidemenu   
