﻿// JavaScript File
var globalImageRoot = "/images/"; //Path to global image directory

function show(id, display)
{
    //Find element to show
    var element = document.getElementById(id);
    if (element)
    {
        //Check for display type
        if (!display)
        {
            display = "inline";
        }
        element.style.display = display;
    }
}

function hide(id)
{
    //Find element to show
    var element = document.getElementById(id);
    if (element)
    {
        element.style.display = "none";
    }
}

function swapCSS(id, css) {
		var obj = document.getElementById(id);
		obj.className = css;
}

function swapImage(id, path) {
    var obj = document.getElementById(id);
    if (obj){obj.src = path;}
}

function initPage() {
    var p = globalImageRoot;
    //Mouse over images
    //img1 = new Image();
    //img1.src = p + "btn_contactus_roll.jpg";
	//img2 = new Image();
    //img2.src = p + "btn_contactus.jpg";
}
