// JavaScript Document
/*
Tabs Menu (mouseover)- By Dynamic Drive
For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
This credit MUST stay intact for use
*/

var submenu=new Array()

//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.
 
submenu[0]='<a href="/auckland/">Auckland</a> | <a href="/wellington/">Wellington</a> | <a href="/christchurch/">Christchurch</a> | <a href="/online/">Online Learning</a> | <a href="/overseas/">Overseas</a>'
submenu[1]='<a href="/about/why.php">Why Euroasia</a> | <a href="/about/staff.php">Our Staff</a> | <a href="/about/facilities.php">Locations</a> | <a href="/about/freeSeminars.php">Free Seminars</a> | <a href="/about/testimonials.php">Testimonials</a> | <a href="/about/careers.php">Careers</a>'
submenu[2]='<a href="/courses/classes.php">Rationale</a> | <a href="/courses/skills.php">Language Skills</a> | <a href="/courses/style.php">Euroasia Style</a> | <a href="/courses/options.php">Course Types</a> | <a href="/courses/outcomes.php">Levels / Outcomes</a>'
submenu[3]='<a href="/courses/assessment.php">Level Test</a> | <a href="/courses/needs.php">Needs Test</a> | <a href="/courses/timetable.php">Timetable / Fees</a>'
submenu[4]='<a href="/services/languageClasses.php">Language Classes</a> | <a href="/services/translation.php">Translation</a> | <a href="/services/crossCultural.php">Cross Cultural</a> | <a href="/services/businessServices.php">Business Services</a> | <a href="/services/schools.php">For Schools</a>'
submenu[5]='<a href="http://blog.euroasia.co.nz/">Blog</a> | <a href="/news/">FAQs</a> | <a href="/news/newsletter.php">Newsletter</a> | <a href="/news/media.php">In the News</a> | <a href="/news/events.php">Events</a> | <a href="/news/photos.php">Photos</a> | <a href="/news/links.php">Links</a>'
submenu[6]='<a href="/contact/">Contact Us</a> | <a href="/shop/">Enrolment</a> | <a href="/contact/terms.php">Terms / Conditions</a> | <a href="/contact/sitemap.php">Sitemap</a>'
submenu[7]=''
//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=99
var currentmenu=0

/////No need to edit beyond here

var menuobj=document.getElementById? document.getElementById("subMenu") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""

function showit(which){
clear_delayhide()
thecontent=(which==-1)? submenu[currentmenu] : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}

function initialize(menu){
currentmenu = menu
showit(menu)
}

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}

function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
