<!--

// Generic function to open a new window
function openAWindow( pageToLoad, winName, width, height, center) {
    xposition=0; yposition=0;
    if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
        xposition = (screen.width - width) / 2;
        yposition = (screen.height - height) / 2;
    }
    args = "width=" + width + "," 
    + "height=" + height + "," 
    + "location=0," 
    + "menubar=0,"
    + "resizable=0,"
    + "scrollbars=1,"
    + "status=0," 
    + "titlebar=0,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only
    window.open( pageToLoad,winName,args );
}

// canManipulateImages - check if the browser we're using can do
// clever stuff with document images.

function canManipulateImages() {
	if (document.images)
		return true;
	else
		return false;
}

// preLoadImage - pre-create and pre-load an image so that it's ready
// when we want to use it.

function preLoadImage(imageURL) {
	if (gImageCapableBrowser) {
		image = new Image();
		image.src = imageURL;
		return image;
	}
}

function changeButtonImage(buttonName,sourceImage) {
	if (gImageCapableBrowser) {
		document.images[buttonName].src = sourceImage.src;
		return true;
	}
}

gImageCapableBrowser = canManipulateImages();

home_off = preLoadImage("images/ui_components/home_off.gif");
home_on = preLoadImage("images/ui_components/home_on.gif");
about_off = preLoadImage("images/ui_components/about_off.gif");
about_on = preLoadImage("images/ui_components/about_on.gif");
services_off = preLoadImage("images/ui_components/services_off.gif");
services_on = preLoadImage("images/ui_components/services_on.gif");
portfolio_off = preLoadImage("images/ui_components/portfolio_off.gif");
portfolio_on = preLoadImage("images/ui_components/portfolio_on.gif");
news_off = preLoadImage("images/ui_components/news_off.gif");
news_on = preLoadImage("images/ui_components/news_on.gif");
careers_off = preLoadImage("images/ui_components/careers_off.gif");
careers_on = preLoadImage("images/ui_components/careers_on.gif");
contact_off = preLoadImage("images/ui_components/contact_off.gif");
contact_on = preLoadImage("images/ui_components/contact_on.gif");

//-->
