// JavaScript Document

/*
Text Link/Image Map Tooltip Script- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, and 100's more DHTML scripts
Visit http://www.dynamicdrive.com
*/

if (!document.layers&&!document.all&&!document.getElementById)
event="test"

function showtip(current,e,text)
{
if (document.all||document.getElementById){
thetitle=text.split('<br>')
if (thetitle.length>1){
thetitles=''
for (i=0;i<thetitle.length;i++)
thetitles+=thetitle[i]
current.title=thetitles
}
else
current.title=text
}

/*else if (document.layers){
document.tooltip.document.write('<layer bgColor="white" style="border:1px solid black;font-size:12px;">'+text+'</layer>')
document.tooltip.document.close()
document.tooltip.left=e.pageX+5
document.tooltip.top=e.pageY+5
document.tooltip.visibility="show"

}*/
}
function hidetip(){
if (document.layers)
document.tooltip.visibility="hidden"
}

function previousPage()
{
var strPara=getURLParam("year")
if (strPara==""){
var p1="http://www.careers.wustl.edu/ugr_students/freshmen.html"
var p2="http://www.careers.wustl.edu/ugr_students/sophomores.html"
var p3="http://www.careers.wustl.edu/ugr_students/juniors.html"
var p4="http://www.careers.wustl.edu/ugr_students/seniors.html"
var r=document.referrer
switch(r.toLowerCase())
{
 case p1: {document.write('>><a href="Freshmen.html" class="crumb">Freshmen</a>'); break}
 case p2: {document.write('>><a href="Sophomores.html" class="crumb">Sophomores</a>'); break}
 case p3: {document.write('>><a href="Juniors.html" class="crumb">Juniors</a>'); break}
 case p4: {document.write('>><a href="Seniors.html" class="crumb">Seniors</a>'); break}
 default: {document.write(''); break}
}
}
else
document.write('>><a href="'+strPara+'.html" class="crumb">'+strPara+'</a>')
}

function Content(strPage)
{
var strPara=getURLParam("year")
if (strPara==""){
var p1="http://www.careers.wustl.edu/ugr_students/freshmen.html"
var p2="http://www.careers.wustl.edu/ugr_students/sophomores.html"
var p3="http://www.careers.wustl.edu/ugr_students/juniors.html"
var p4="http://www.careers.wustl.edu/ugr_students/seniors.html"
var r=document.referrer
switch(r.toLowerCase())
{
 case p1: {document.write('<area shape="rect" href="'+strPage+'.html?year=Freshmen" '); break}
 case p2: {document.write('<area shape="rect" href="'+strPage+'.html?year=Sophomores" '); break}
 case p3: {document.write('<area shape="rect" href="'+strPage+'.html?year=Juniors" '); break}
 case p4: {document.write('<area shape="rect" href="'+strPage+'.html?year=Seniors" '); break}
 default: {document.write('<area shape="rect" href="'+strPage+'.html" '); break}
}
}
else
{document.write('<area shape="rect" href="'+strPage+'.html?year='+strPara+'"')}

switch(strPage.toLowerCase())
{
	case "jobsearch":{document.write('coords="0,205,175,247" alt="Start my Job Search">'); break}
	case "resume":{document.write('coords="0,72,175,116"  alt="Write a Resume and Cover letter">'); break}
	case "interviews":{document.write('coords="1,245,176,288"  alt="Prepare for an Interview">'); break}
	case "internship":{document.write('coords="0,117,174,161"  alt="Start Internship Search">'); break}
	case "co-op": {document.write('coords="0,160, 176, 204"  alt="Start My Co-op Search">'); break}
	case "links": {document.write('coords="0,380,176,427"  alt="Web links">'); break}
	default:{document.write('>')}
}
}

function goback()
{
document.history.go(-1)
}

function getURLParam(strParamName){
  var strReturn = "";
  var strHref = window.location.href;
  if ( strHref.indexOf("?") > -1 ){
    var strQueryString = strHref.substr(strHref.indexOf("?"));
    var aQueryString = strQueryString.split("&");
    for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
      if (aQueryString[iParam].indexOf(strParamName + "=") > -1 ){
        var aParam = aQueryString[iParam].split("=");
        strReturn = aParam[1];
        break;
      }
    }
  }
  return strReturn;
}


function popupCC(URL) 
{
window.open(URL,
			'career_center',
			'toolbar=0,scrollbars=1,location=0,width=600,height=500,statusbar=0,menubar=1,resizable=1,left=5,top=5'
			);
}

