// /js/main.js
function initPage()
{
var nav = document.getElementById("navigation-main");
if (nav)
{
var nodes = nav.getElementsByTagName("li");
for (var i = 0; i < nodes.length; i++)
{
var uls = nodes[i].getElementsByTagName("ul");
if (uls[0])
{
nodes[i]._ul = uls[0];
}
nodes[i].onmouseover = function ()
{
if (this.className.indexOf("hover") == -1)
{
this.className += " hover";
}
}
nodes[i].onmouseout = function ()
{
this.className = this.className.replace(" hover", "");
}
}
}
}
if (window.attachEvent && !window.opera) {
window.attachEvent("onload", initPage);
}
function setInput(obj, default_txt) {
if(obj.value == "") {
obj.value = default_txt;
} else {
if(obj.value == default_txt){
obj.value = "";
}
}
}
function clearInput(obj, default_txt) {
if(obj.value == default_txt){
obj.value = "";
}
}
function resetInput(obj, default_txt) {
if(obj.value == "") {
obj.value = default_txt;
}
}
function clearJSFields()
{
if (document.getElementById("q").value != "") setInput(document.getElementById("q"), "Enter keywords (e.g., nurse, sales)");
if (document.getElementById("cnme").value != "") setInput(document.getElementById("cnme"), "Enter City");
if (document.getElementById("zip").value != "") setInput(document.getElementById("zip"), "Enter Post Code");
var tab1 = document.getElementById("t1");
var tab2 = document.getElementById("t2");
var tab3 = document.getElementById("t3");
if (tab1.className.indexOf("active") == -1)
{
document.getElementById("cnme").value = "";
//added because of the jobsearch module redisign
document.getElementById("radcs").selectedIndex = -1;
if(document.getElementById("sid")) document.getElementById("sid").selectedIndex = -1;
}
else
{
document.getElementById("radcs").name = "rad";
document.getElementById("radzip").selectedIndex = -1;
}
if (tab2.className.indexOf("active") == -1)
{
document.getElementById("zip").value = "";
document.getElementById("radzip").selectedIndex = -1; // might seem that this line is redundant because of last line, but is not, think!
}
else
{
document.getElementById("radzip").name="rad";
document.getElementById("radcs").selectedIndex = -1;
}
if (tab3.className.indexOf("active") == -1)
{
tviewLoc.Menu.Item1.onclick();
}
else
{
document.getElementById("radzip").selectedIndex = -1;
document.getElementById("radcs").selectedIndex=-1;
document.getElementById("rad_units").value = "";
}
if(document.getElementById("rad"))
{
if (document.getElementById("rad").selectedIndex == 0) document.getElementById("rad").selectedIndex = 1;
}
}
function headerBoardFlash() {
var flashvars = {};
flashvars.startDate = "2009,01,10";
flashvars.daysVar = "DAYS";
flashvars.hoursVar = "HRS";
flashvars.minutesVar = "MIN";
flashvars.secondsVar = "SEC";
flashvars.headVar = "The New Monster is coming.";
flashvars.bodyVar = "In 1994, we changed the digital recruiting game. Now, we're taking it to a whole new level. With powerful new tools, revitalised search and match technology, and a fully overhauled site experience, all designed to get more life out of your career.";
var params = {};
params.menu = "false";
params.scale = "noscale";
params.bgcolor = "#DAE0BE";
params.wmode = "transparent";
params.allowscriptaccess = "sameDomain";
var attributes = {};
swfobject.embedSWF(
"/flash/swf/countdown_full.swf",
"HeaderFlashContent",
"960",
"289",
"9.0.0",
false,
flashvars,
params,
attributes);
}
// /js/tabs.js
function initTabs()
{
var sets = document.getElementsByTagName("div");
for (var i = 0; i < sets.length; i++)
{
if (sets[i].className.indexOf("tabset") != -1)
{
var tabs = [];
var links = sets[i].getElementsByTagName("a");
for (var j = 0; j < links.length; j++)
{
if (links[j].className.indexOf("tab") != -1)
{
tabs.push(links[j]);
links[j].tabs = tabs;
if (links[j].className.indexOf("active") != -1)
{
var c = document.getElementById(links[j].href.substr(links[j].href.indexOf("#") + 1));
if (c)
c.style.display = "block";
}
links[j].onclick = function ()
{
var c = document.getElementById(this.href.substr(this.href.indexOf("#") + 1));
if (c)
{
//reset all tabs
for (var i = 0; i < this.tabs.length; i++)
{
document.getElementById(this.tabs[i].href.substr(this.tabs[i].href.indexOf("#") + 1)).style.display = "none";
this.tabs[i].className = this.tabs[i].className.replace("active", "");
}
this.className += " active";
c.style.display = "block";
return false;
}
}
}
}
}
}
}
if (window.addEventListener)
window.addEventListener("load", initTabs, false);
else if (window.attachEvent)
window.attachEvent("onload", initTabs);
// /js/ie-png.js
var transparentImage = "http://media.monster.com/mm/homepage/transparent.gif";
function fixTrans()
{
if (typeof document.body.style.maxHeight == 'undefined') {
var imgs = document.getElementsByTagName("img");
for (i = 0; i < imgs.length; i++)
{
if (imgs[i].src.indexOf(transparentImage) != -1)
{
return;
}
if (imgs[i].src.indexOf(".png") != -1)
{
var src = imgs[i].src;
imgs[i].src = transparentImage;
imgs[i].runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
}
}
}
}
if (document.all && !window.opera)
attachEvent("onload", fixTrans);// /js/swfobject.js
/**
* SWFObject v1.4.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
*
* SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*
* **SWFObject is the SWF embed script formerly known as FlashObject. The name was changed for
* legal reasons.
*/
if(typeof deconcept=="undefined"){var deconcept=new Object();}
if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"detectflash";
this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();
if(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";
this.addParam("quality",q);
this.setAttribute("useExpressInstall",_7);
this.setAttribute("doExpressInstall",false);
var _d=(_9)?_9:window.location;
this.setAttribute("xiRedirectUrl",_d);
this.setAttribute("redirectUrl","");
if(_a){this.setAttribute("redirectUrl",_a);}};
deconcept.SWFObject.prototype={setAttribute:function(_e,_f){
this.attributes[_e]=_f;
},getAttribute:function(_10){
return this.attributes[_10];
},addParam:function(_11,_12){
this.params[_11]=_12;
},getParams:function(){
return this.params;
},addVariable:function(_13,_14){
this.variables[_13]=_14;
},getVariable:function(_15){
return this.variables[_15];
},getVariables:function(){
return this.variables;
},getVariablePairs:function(){
var _16=new Array();
var key;
var _18=this.getVariables();
for(key in _18){_16.push(key+"="+_18[key]);}
return _16;},getSWFHTML:function(){var _19="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","PlugIn");}
_19="