//Main Navigation
// Create image objects and preload all active and inactive images
if (document.images) { 
    // Five image objects for the active images
    var img1on = new Image();   
    img1on.src = "images/nav/hhome.jpg"; 
    var img2on = new Image();         
    img2on.src = "images/nav/hservices.jpg";
    var img3on = new Image();
    img3on.src = "images/nav/hcontact.jpg";
    var img4on = new Image();
    img4on.src = "images/nav/hfaq.jpg";
    var img5on = new Image();
    img5on.src = "images/nav/habout.jpg";
	    
    // Five image objects for the inactive images
    var img1off = new Image();         
    img1off.src = "images/nav/home.jpg";
    var img2off = new Image();         
    img2off.src = "images/nav/services.jpg";
    var img3off = new Image();
    img3off.src = "images/nav/contact.jpg";
    var img4off = new Image();
    img4off.src = "images/nav/faq.jpg";
    var img5off = new Image();
    img5off.src = "images/nav/about.jpg";
    }
	
	// Function to activate an image
function imgon(imgName) {
    if (document.images) {
        document.images[imgName].src = eval(imgName + "on.src");
    }
}

// Function to deactivate an image
function imgoff(imgName) {          
    if (document.images) {
        document.images[imgName].src = eval(imgName + "off.src");
    }
}

//>>>>>><<<<<<<<<

/*Javascript used to open window to display EXTERNAL LINKS */
/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

//>>>>>>>>>>>>>>>>>>>>>

/* Javascript used for Opening New browser window in a new window using an image*/

function openWindow (url) { window.open(url, "newWindow","width= 900, height=650,scrollbars=yes,resizable=yes,status=yes");
}