function printpage(siteURL, pageTitle, theWidth, theHeight) {
  theWidth  = theWidth  == 0 ? 100 : theWidth;
  theHeight = theHeight == 0 ? 100 : theHeight;
  myPopup = window.open(siteURL + '/print/' + pageTitle,'InterviewNotes','width=' + theWidth + ',height=' + theHeight + ',resizable=no,scrollbars=yes,status=no');
}

var searchString = '.png';
var replaceString = '_mo.png';
var menuItems =
{
  showOver: function(element) {
    element.src = element.src.replace(searchString, replaceString);
  },
  setOut: function(element) {
    element.src = element.src.replace(replaceString, searchString);
    element.style.color = "";
    element.style.padding = "";
  }
}
function getElement(el) {
  if (document.getElementById(el)) {
    return document.getElementById(el);
  }
  return null;
}

// Initiate the image count variable
var imageCount = 0;
// create an array to contain the preloaded image files
var preloadImages = new Array();

// Main function to load new image into browser
function preload(imageFile) 
{
  imageCount++;
  preloadImages[imageCount] = new Image(); 
  preloadImages[imageCount].src = imageFile;
}

// Basic function to load the images when the browser has loaded the webpage.
window.onload = function() {
  preload(fullPath + '/images/navigation/home.png');
  preload(fullPath + '/images/navigation/examplejobs.png');
  preload(fullPath + '/images/navigation/register.png');
  preload(fullPath + '/images/navigation/news.png');
  preload(fullPath + '/images/navigation/download.png');
  preload(fullPath + '/images/navigation/links.png');
  preload(fullPath + '/images/navigation/findus.png');
  preload(fullPath + '/images/navigation/contact.png');
  preload(fullPath + '/images/navigation/top.png');
  preload(fullPath + '/images/navigation/bottom.png');
  preload(fullPath + '/images/navigation/home_mo.png');
  preload(fullPath + '/images/navigation/examplejobs_mo.png');
  preload(fullPath + '/images/navigation/register_mo.png');
  preload(fullPath + '/images/navigation/news_mo.png');
  preload(fullPath + '/images/navigation/download_mo.png');
  preload(fullPath + '/images/navigation/links_mo.png');
  preload(fullPath + '/images/navigation/findus_mo.png');
  preload(fullPath + '/images/navigation/contact_mo.png');  
}

sfHover = function()
{
    if (document.getElementById("vertical"))
    {
      	var sfEls = document.getElementById("vertical").getElementsByTagName("LI");
      	
        for (var i = 0; i < sfEls.length; i++)
        {
        		sfEls[i].onmouseover = function()
            {
        			 this.className += " sfhover";
        		}
        		
        		sfEls[i].onmouseout = function()
            {
        			 this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
        		}
      	}
  	}
    else
    {
        ////////////////////////////alert('Can not find V menu');
    }
    
    if (document.getElementById("horizontal1"))
    {
      	var sfElsH1 = document.getElementById("horizontal1").getElementsByTagName("LI");
      	
        for (var i = 0; i < sfElsH1.length; i++)
        {
        		sfElsH1[i].onmouseover = function()
            {
        			 this.className += " sfhover";
        		}
        		
        		sfElsH1[i].onmouseout = function()
            {
        			 this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
        		}
      	}
  	}
    else
    {
        ////////////////////////////alert('Can not find V menu');
    }

    if (document.getElementById("horizontal"))
    {
      	var sfElsH = document.getElementById("horizontal").getElementsByTagName("LI");
      	
        for (var i = 0; i < sfElsH.length; i++)
        {
        		sfElsH[i].onmouseover = function()
            {
        			 this.className += " sfhover";
        		}
        		
        		sfElsH[i].onmouseout = function()
            {
        			 this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
        		}
      	}
  	}
  	else
    {
        // alert('Can not find H menu');
    }
}

if (window.attachEvent) window.attachEvent("onload", sfHover);
