SURL = ""

function overImage(imgName) {
	document.images[imgName].src = SURL + "http://www.nexeninc.com/images/rollover/" + imgName + "_on.gif";
}

function offImage(imgName) {
	document.images[imgName].src = SURL + "http://www.nexeninc.com/images/rollover/" + imgName + ".gif";
}

function calEventLink (eventURL) {
	newURL = eventURL.slice(0,(eventURL.indexOf("(",0)-1));
        openWindow('calEvent',newURL);
}

function openWindow(windowName,newURL) {
	switch(windowName) {
	  case 'student':
	    window.open(SURL + "http://www.nexeninc.com/Careers/campus_Recruiting/student_online_application.asp","student","width=700,height=600,status=yes,scrollbars=yes,resizable=yes");
	    break;
	  case 'feedback':
	    window.open(SURL + "http://www.nexeninc.com/feedback.asp","feedback","width=450,height=440,status=yes");
	    break;
	  case 'calEvent':
	    window.open(newURL,windowName,"width=555,height=500,status=yes");
	    break;
	  case 'legal':
	    window.open(SURL + "http://www.nexeninc.com/legal.asp",windowName,"width=555,height=500,status=yes,scrollbars=yes,resizable=yes");
	    break;
	  case 'contact':
	    window.open(SURL + "http://www.nexeninc.com/Contact_Us.asp","contact","width=555,height=500,status=yes,scrollbars=yes,resizable=yes");
	    break;
	  case 'privacy':
	    window.open(SURL + "http://www.nexeninc.com/privacy.asp","privacy","width=555,height=500,status=yes,scrollbars=yes,resizable=yes");
	    break;
          default:
            break;
 }
}

function closeWindow(windowName) {
	window.close(windowName);
}


var name = navigator.appName
if (name == "Microsoft Internet Explorer")
   style_to_use=("style.css");
else
   style_to_use=("nsstyle.css")
   document.write('<link rel=stylesheet href="http://works.workopolis.com/customers/nexen/' + style_to_use + '" type="text/css">');
