function loadPage(jPageName) {
	window.location = jPageName;
}

$(document).ready(function() {

	$.preloadImages(['images/hdr-btn-gallery-ind-mo.png', 'images/hdr-btn-gallery-equip-mo.png', 'images/hdr-btn-gallery.png', 'images/hdr-btn-gallery-mo.png']);
	
	/*
	$("#ist-form-wrapper").cornerz({radius:10, background: "#E5E4E4"});
	$("#about-mechanical-wrapper").cornerz({radius:10, background: "#E5E4E4"});
	*/
	$("#btn-main-nav-about").hover(function() {
		$(this).css("cursor", "pointer");
		$(this).attr("src", "images/hdr-btn-about-mo.png");
	}, function() {
		$(this).css("cursor", "pointer");
		$(this).attr("src", "images/hdr-btn-about.png");
	});
	
	$("#btn-main-nav-services").hover(function() {
		$(this).css("cursor", "pointer");
		$(this).attr("src", "images/hdr-btn-services-mo.png");
	}, function() {
		$(this).css("cursor", "pointer");
		$(this).attr("src", "images/hdr-btn-services.png");
	});
	
	$("#btn-main-nav-qa").hover(function() {
		$(this).css("cursor", "pointer");
		$(this).attr("src", "images/hdr-btn-qa-mo.png");
	}, function() {
		$(this).css("cursor", "pointer");
		$(this).attr("src", "images/hdr-btn-qa.png");
	});
	

	/* Gallery button Mouseover functions */

	$("#map_btn_gallery_c").mouseover(function() {
		$("#btn-main-nav-gallery").css("cursor", "pointer");
		$("#btn-main-nav-gallery").attr("src", "images/hdr-btn-gallery-mo.png");
	});
	
	$("#map_btn_gallery_b").mouseover(function() {
		$("#btn-main-nav-gallery").css("cursor", "pointer");
		$("#btn-main-nav-gallery").attr("src", "images/hdr-btn-gallery-ind-mo.png");
	});
	
	$("#map_btn_gallery_a").mouseover(function() {
		$("#btn-main-nav-gallery").css("cursor", "pointer");
		$("#btn-main-nav-gallery").attr("src", "images/hdr-btn-gallery-equip-mo.png");
	});
	
	$("map#map_btn_gallery").mouseout(function() {
		$("#btn-main-nav-gallery").attr("src", "images/hdr-btn-gallery.png");
	});
	
	
	/* Gallery button Click functions */

	$("area#map_btn_gallery_c").click(function() {
		document.location = 'http://thelynchco.com/sitetools/portfolio.php';
		return false;
	});
	
	$("area#map_btn_gallery_b").click(function() {
		document.location = 'http://thelynchco.com/sitetools/portfolio.php/view/results/cat/2';
		return false;
	});
	
	$("area#map_btn_gallery_a").click(function() {
		document.location = 'http://thelynchco.com/sitetools/portfolio.php/view/detail/cat/1';
		return false;
	});


	$('#lynch-mechanical-btn').mouseover(function() {
		$(this).css("cursor", "pointer");
	}, function() {
		$(this).css("cursor", "default");
	});

	$('#lynch-mechanical-btn').click(function() {
		document.location = 'lynch-mechanical/';
		return false;
	});

});