
/*
var i=0;

function heightChecking(){var pageHeight=document.documentElement.clientHeight;var content=document.getElementById('body');var contentHeight=content.clientHeight;(contentHeight < pageHeight-30)?content.style.top=(pageHeight-contentHeight)/2+'px':content.style.top='0px';var keepChecking=setTimeout('heightChecking()','100')}

function checkEmail(EmailId) {
    sEmail=document.getElementById(EmailId).value;
    {
		var validChars = "\[^\\s\\(\\)<>@,;:\\\\\\\"\\.\\[\\]\]+"
		var quotedUser = "(\"[^\"]*\")"
		var atom = validChars
		var word = "(" + atom + "|" + quotedUser + ")"
		var userPat = new RegExp("^" + word + "(\\." + word + ")*$")
		var domainPat = new RegExp("^" + atom + "(\\." + atom +")*$")
		var emailPat = /^(.+)@(.+)$/
		var matchArray = sEmail.match(emailPat)
		if (matchArray == null) {
			return "Your Email Address seems incorrect (check @ AND .'s)"
		}
		var user = matchArray[1]
		var domain = matchArray[2]
		if (user.match(userPat) == null) {
			return "Your Email Address doesn't seem to be valid."
		}
		var ipDomainPat = /^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/
		var IPArray = domain.match(ipDomainPat)
		if (IPArray != null) {
			for (var i=1;i<=4;i++) {
				if (IPArray[i] > 255) {
					return "Destination IP address is invalid."
				}
			}
			return ""
		}
		var domainArray = domain.match(domainPat)
		if (domainArray == null) {
			 return "The domain name doesn't seem to be valid."
		}
		var atomPat = new RegExp(atom,"g")
		var domArr = domain.match(atomPat)
		var len = domArr.length
		if (domArr[domArr.length-1].length<2 || domArr[domArr.length-1].length>3) {
			return "The address must end in a three-letter domain, or two letter country."
		}
		if (len<2) {
			return "This address is missing a hostname."
		}
	}
	return ""
}

function chckEmailVal(EmailValId, formId) {
    if(document.getElementById(EmailValId).innerHTML=="") return true;
    else return false;
}
        
$(document).ready(function(){

heightChecking();

$("#menu > ul > li").hover(function(){$(this).children("ul").slideDown(200)}, function(){$(this).children("ul").slideUp(200)});
$("#menu > ul > li").hover(function(){$(this).children("div").show(200)}, function(){$(this).children("div").hide(200)});
$("#menu > ul > li").hover(function(){$(this).children("a").not(".current").css("background","url(img/menu_item_hover_bg.gif) repeat-x").css("color","#fff")}, function(){$(this).children("a").not(".current").css("background","none").css("color","#666")});
$("#menu > ul > li > ul > li").hover(function(){$(this).children("ul").show(200).animate({"opacity":"1"}, 200)}, function(){$(this).children("ul").animate({"opacity":"0.2"}, 200).hide(200)});

$(".plume").css("opacity","0.4");
$(".title_win").css("opacity","0.8");

$(".title_win").hover(function(){$(this).css("display","block")}, function(){$(this).css("display","none")})

$(".portfolio").hover(function(){viewTtl(event, "portfolio")}, function(){hideTtl("portfolio")})
$(".services").hover(function(){viewTtl(event, "services")}, function(){hideTtl("services")})
$(".order").hover(function(){viewTtl(event, "order")}, function(){hideTtl("order")})

$("#expand").toggle(function(){$(".body").addClass("body-page"); $("#text").addClass("text-page"); $("html").css("background","url(img/content_r4.gif) repeat-y right top")}, function(){$(".body").removeClass("body-page"); $("#text").removeClass("text-page");; $("html").css("background","none")});

});
*/
