// JavaScript Document
$(document).ready(function(){
	// mouseOver
	if(currentPage != "home") {
		$("#menuHome").hover(function(){
			$("#menuHomeOver").fadeIn();
		}, function(){
			$("#menuHomeOver").fadeOut();
		});
	}
	if(currentPage != "solar") {
		$("#menuSolar").hover(function(){
			$("#menuSolarOver").fadeIn();
		}, function(){
			$("#menuSolarOver").fadeOut();
		});
	}
	if(currentPage != "house") {
		$("#menuHouse").hover(function(){
			$("#menuHouseOver").fadeIn();
		}, function(){
			$("#menuHouseOver").fadeOut();
		});
	}
	if(currentPage != "winpro") {
		$("#menuWinpro").hover(function(){
			$("#menuWinproOver").fadeIn();
		}, function(){
			$("#menuWinproOver").fadeOut();
		});
	}
	if(currentPage != "news") {
		$("#menuNews").hover(function(){
			$("#menuNewsOver").fadeIn();
		}, function(){
			$("#menuNewsOver").fadeOut();
		});
	}
	if(currentPage != "example") {
		$("#menuExample").hover(function(){
			$("#menuExampleOver").fadeIn();
		}, function(){
			$("#menuExampleOver").fadeOut();
		});
	}
	if(currentPage != "products") {
		$("#menuProducts").hover(function(){
			$("#menuProductsOver").fadeIn();
		}, function(){
			$("#menuProductsOver").fadeOut();
		});
	}
	if(currentPage != "corp") {
		$("#menuCorp").hover(function(){
			$("#menuCorpOver").fadeIn();
		}, function(){
			$("#menuCorpOver").fadeOut();
		});
	}
});

// scroll ANCHOR
function goAnchor(theURL, theAnchor) {
	var callExternal = "pSc";
	var delayExternal= 200;
	location.href = theURL + "?pSc" + theAnchor;
	return false;
}

