
var currentdiv = null;
var timerID = null;
ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;
W3C = document.getElementById ? 1 : 0;

var currentdiv = null;
var timerID = null;
var prog = null;
var elig = null;
var appl = null;
var cont = null;
ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;
W3C = document.getElementById ? 1 : 0;

function hideAll(){
 timerID = setTimeout('hideAll2()',3000)
} 

function hideAll4(){
 timerID = setTimeout('hideAll2()',10)
} 

function clearAll(){
 clearTimeout(timerID)
} 

function hideAll2(){
	 if (ns4) {
		eval("document."+currentdiv+".visibility = 'hide'");
	} else if (ie4) {
		eval("document.all."+currentdiv+".style.visibility = 'hidden'");
	} else if (W3C) {
		eval("document.getElementById('"+currentdiv+"').style.visibility = 'hidden'");
	}
} 

function hideAll3(){
clearTimeout(timerID);
  if (currentdiv != null){
	 if (ns4) {
		eval("document."+currentdiv+".visibility = 'hide'");
	} else if (ie4) {
		eval("document.all."+currentdiv+".style.visibility = 'hidden'");
	} else if (W3C) {
		eval("document.getElementById('"+currentdiv+"').style.visibility = 'hidden'");
	}
  }
} 

function showObject(div) {
clearTimeout(timerID);
	 if (ns4) {
		eval("document."+div+".visibility = 'show'");
	} else if (ie4) {
		eval("document.all."+div+".style.visibility = 'visible'");
	} else if (W3C) {
		eval("document.getElementById('"+div+"').style.visibility = 'visible'");
	}
currentdiv = div;
}


function WriteStyles(level) {

if (level=='level1') {
folderpath = "";
}else if (level=='level2') {
folderpath = "../";
}else if (level=='level3') {
folderpath = "../../";
}else if (level=='level4') {
folderpath = "../../../";
}else if (level=='level5') {
folderpath = "../../../../";
}else if (level=='level6') {
folderpath = "../../../../../";
}
document.write('<link rel="stylesheet" href="'+folderpath+'navscripts/navstyle.css" type="text/css">');
}


function WriteNav(level) {

toppix=115;
if (level=='level1') {
folderpath = "";
toppix=156;
}else if (level=='level2') {
folderpath = "../";
}else if (level=='level3') {
folderpath = "../../";
}else if (level=='level4') {
folderpath = "../../../";
}else if (level=='level5') {
folderpath = "../../../../";
}else if (level=='level6') {
folderpath = "../../../../../";
}

if (ns4) {
endItemDiv = '</LAYER>';
} else {
endItemDiv = '</DIV>';
}

//WRITE CATALOG DIV
if (ns4) {
startItemDiv = '<LAYER ID="cat" left=160 top='+toppix+' visibility=hide z-index=3 onmouseover="clearAll()" onmouseout="hideAll4()">';
} else {
startItemDiv = '<DIV ID="cat" style="position:absolute;left:160px;top:'+toppix+'px; visibility: hidden; z-index : 3;" onmouseover="clearAll()" onmouseout="hideAll4()">';
}
document.write(startItemDiv);
document.write('<table bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" border="0"><tr><td bgcolor="F6BC09"><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="1" border="0"></td><td><img src="'+folderpath+'webdev/image/spacer.gif" width="6" height="1" border="0"></td><td><p><span class=menu> <br><a href="'+folderpath+'courses/outline.asp?CategoryID=2" class=menu>Management and Administration</a><br><a href="'+folderpath+'courses/outline.asp?CategoryID=1" class=menu>Career Development</a><br><a href="'+folderpath+'courses/outline.asp?CategoryID=3" class=menu>Yale Employee Specific</a><br><a href="'+folderpath+'courses/outline.asp?CategoryID=21" class=menu>WorkLife Series</a><br><a href="'+folderpath+'webdev/html/ittraining.htm" class=menu>Computer Training</a><br><a href="'+folderpath+'webdev/html/oracle.htm" class=menu>Business Applications and Oracle Training</a><br><a href="'+folderpath+'courses/outline.asp?CategoryID=30" class=menu>Compliance Training</a><br><a href="'+folderpath+'Series/SpecSeries.htm" class=menu>Institutes and Series</a><br><a href="'+folderpath+'webdev/html/other.htm" class=menu>Other Learning</a><br><a href="'+folderpath+'webdev/html/catalog.asp" class=menu>And more...</a><br><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="6" border="0"> </span></p></td><td><img src="'+folderpath+'webdev/image/spacer.gif" width="6" height="1" border="0"></td><td bgcolor="F6BC09"><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="1" border="0"></td></tr><tr><td colspan=5 bgcolor="#F6BC09"><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="1" border="0"></td></tr></table>');
document.write(endItemDiv);

//WRITE OD DIV
if (ns4) {
startItemDiv = '<LAYER ID="con" left=256 top='+toppix+' visibility=hide z-index=3 onmouseover="clearAll()" onmouseout="hideAll4()">';
} else {
startItemDiv = '<div id="con" style="position:absolute; left:256; top:'+toppix+'; z-index:3; visibility:hidden" onmouseover="clearAll()" onmouseout="hideAll4()">';
}
document.write(startItemDiv);
document.write('<table bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" border="0"><tr><td bgcolor="#6B7DFF"><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="1" border="0"></td><td><img src="'+folderpath+'webdev/image/spacer.gif" width="6" height="1" border="0"></td><td><span class=menu><br><a href="'+folderpath+'webdev/html/odservices.htm" class=menu>What Is OD?</a><br><a href="'+folderpath+'webdev/html/howtouse.htm" class=menu>How To Use Our Services</a><br><a href="'+folderpath+'webdev/html/consref.htm" class=menu>Find an External OD Consultant</a><br><a href="'+folderpath+'focus" class=menu>FOCUS (Yale\'s Performance Management System)</a><br><a href="http://www.yale.edu/worklife/" class=menu>Worklife Program at Yale</a><br><a href="'+folderpath+'csi/default.htm" class=menu>Customer Service Institute</a><br><a href="'+folderpath+'Series/mti.htm" class=menu>Management Training Institute</a><br><a href="'+folderpath+'webdev/html/consultation.htm" class=menu>And more...</a><br><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="6" border="0"></span></td><td><img src="'+folderpath+'webdev/image/spacer.gif" width="6" height="1" border="0"></td><td bgcolor="6B7DFF"><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="1" border="0"></td></tr><tr><td colspan=5 bgcolor="#6B7DFF"><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="1" border="0"></td></tr></table>');
document.write(endItemDiv);

//WRITE EMPLOYEE DIV
if (ns4) {
startItemDiv = '<LAYER ID="emp" left=370 top='+toppix+' visibility=hide z-index=3 onmouseover="clearAll()" onmouseout="hideAll4()">';
} else {
startItemDiv = '<div id="emp" style="position:absolute; left:370; top:'+toppix+'; z-index:3; visibility:hidden" onmouseover="clearAll()" onmouseout="hideAll4()">';
}
document.write(startItemDiv);
document.write('<table bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" border="0"><tr><td bgcolor="#336633"><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="1" border="0"></td><td><img src="'+folderpath+'webdev/image/spacer.gif" width="6" height="1" border="0"></td><td><span class=menu> <br><a href="'+folderpath+'neo/default.htm" class=menu>Overview</a><br><a href="'+folderpath+'neo/orientation.htm" class=menu>Orientation Program</a><br><a href="'+folderpath+'neo/yale.htm" class=menu>About Yale University</a><br><a href="'+folderpath+'neo/start.htm" class=menu>Getting Started @ Yale</a><br><a href="'+folderpath+'neo/newhaven.htm" class=menu>About Greater New Haven</a><br><a href="'+folderpath+'neo/supervisor.htm" class=menu>For Supervisors</a><br><a href="'+folderpath+'neoenroll/login.asp" class=menu>New Employee Registration</a><br><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="6" border="0"> </span></td><td><img src="'+folderpath+'webdev/image/spacer.gif" width="6" height="1" border="0"></td><td bgcolor="336633"><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="1" border="0"></td></tr><tr><td colspan=5 bgcolor="#336633"><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="1" border="0"></td></tr></table>');
document.write(endItemDiv);

//WRITE OTHER SERVICES DIV
if (ns4) {
startItemDiv = '<LAYER ID="oth" left=490 top='+toppix+' visibility=hide z-index=3 onmouseover="clearAll()" onmouseout="hideAll4()">';
} else {
startItemDiv = '<div id="oth" style="position:absolute; left:490; top:'+toppix+'; z-index:3; visibility:hidden" onmouseover="clearAll()" onmouseout="hideAll4()">';
}
document.write(startItemDiv);
document.write('<table bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" border="0"><tr><td bgcolor="#003366"><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="1" border="0"></td><td><img src="'+folderpath+'webdev/image/spacer.gif" width="6" height="1" border="0"></td><td><span class=menu><br><a href="'+folderpath+'webdev/html/otherservices.htm#EAP" class=menu>Employee Assistance Program (EAP)</a><br><a href="'+folderpath+'webdev/html/transcert.htm" class=menu>Transcripts and Certificates</a><br><a href="'+folderpath+'webdev/html/educservices.htm" class=menu>Educational Assistance Programs</a><br><a href="http://www.yale.edu/daycare" class=menu>Early Childhood Education & Child Care</a><br><a href="'+folderpath+'webdev/html/otherservices.htm" class=menu>Learning Center Library</a><br><a href="'+folderpath+'webdev/html/consref.htm" class=menu>Consultant Referral Program</a><br><a href="http://www.yale.edu/eli" class=menu>English as a Second Language</a><br><a href="http://www.yale.edu/worklife/" class=menu>Worklife Program at Yale</a><br><a href="'+folderpath+'webdev/html/otherservices.htm" class=menu>And more...</a><br><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="6" border="0"></span></td><td><img src="'+folderpath+'webdev/image/spacer.gif" width="6" height="1" border="0"></td><td bgcolor="003366"><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="1" border="0"></td></tr><tr><td colspan=5 bgcolor="#003366"><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="1" border="0"></td></tr></table>');
document.write(endItemDiv);

//WRITE INFO DIV
if (ns4) {
startItemDiv = '<LAYER ID="cen" left=608 top='+toppix+' visibility=hide z-index=3 onmouseover="clearAll()" onmouseout="hideAll4()">';
} else {
startItemDiv = '<div id="cen" style="position:absolute; left:608; top:'+toppix+'; z-index:3; visibility:hidden" onmouseover="clearAll()" onmouseout="hideAll4()">';
}
document.write(startItemDiv);
document.write('<table bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" border="0"><tr><td bgcolor="#9C9C9C"><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="1" border="0"></td><td><img src="'+folderpath+'webdev/image/spacer.gif" width="6" height="1" border="0"></td><td><span class=menu><br><a href="'+folderpath+'webdev/html/staff.htm" class=menu>Learning Center Staff</a><br><a href="'+folderpath+'webdev/html/mission.htm" class=menu>Learning Center Mission</a><br><a href="'+folderpath+'webdev/html/infoservices.htm" class=menu>Overview of Services</a><br><a href="'+folderpath+'webdev/html/values.htm" class=menu>The Learning Center\'s Values</a><br><a href="'+folderpath+'webdev/html/funding.htm" class=menu>How We Are Funded</a><br><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="6" border="0"></span></td><td><img src="'+folderpath+'webdev/image/spacer.gif" width="6" height="1" border="0"></td><td bgcolor="9C9C9C"><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="1" border="0"></td></tr><tr><td colspan=5 bgcolor="#9C9C9C"><img src="'+folderpath+'webdev/image/spacer.gif" width="1" height="1" border="0"></td></tr></table>');
document.write(endItemDiv);

//WRITE MENUBAR ICONS
document.write('<a href="'+folderpath+'default.htm" ONMOUSEOVER="hideAll3();return true;"><img height="50" width="125" src="'+folderpath+'webdev/image/home.gif" border="0"></a><a href="'+folderpath+'webdev/html/catalog.asp" ONMOUSEOVER="hideAll3();showObject(\'cat\');return true;" ONMOUSEOUT="hideAll();return true;"><img height="50" width="110" src="'+folderpath+'webdev/image/nav_cat.gif" border="0"></a><a href="'+folderpath+'webdev/html/consultation.htm" ONMOUSEOVER="hideAll3();showObject(\'con\');return true;" ONMOUSEOUT="hideAll();return true;"><img height="50" width="110" src="'+folderpath+'webdev/image/nav_od.gif" border="0"></a><a href="'+folderpath+'neo/default.htm" ONMOUSEOVER="hideAll3();showObject(\'emp\');return true;" ONMOUSEOUT="hideAll();return true;"><img height="50" width="110" src="'+folderpath+'webdev/image/nav_emp.gif" border="0"></a><a href="'+folderpath+'webdev/html/otherservices.htm" ONMOUSEOVER="hideAll3();showObject(\'oth\');return true;" ONMOUSEOUT="hideAll();return true;"><img height="50" width="110" src="'+folderpath+'webdev/image/nav_oth.gif" border="0"></a><a href="'+folderpath+'webdev/html/info.htm" ONMOUSEOVER="hideAll3();showObject(\'cen\');return true;" ONMOUSEOUT="hideAll();return true;"><img height="50" width="110" src="'+folderpath+'webdev/image/nav_cen.gif" border="0"></a><a href="mailto:learning@yale.edu" ONMOUSEOVER="hideAll3();return true;"><img height="50" width="125" src="'+folderpath+'webdev/image/emailtop.gif" border="0"></a><br>');
}
