var contactusoffer = null;
function showContact(){
	$("#contactDiv").show();
	if (contactusoffer != null){
		clearTimeout(contactusoffer);
		contactusoffer = null;
	}
}
function hideContact(){
	contactusoffer = setTimeout('$("#contactDiv").hide()',500);	
}
var specialoffertimer = null;
function showSpecialOffer(){
	$("#specialOfferDiv").show();
	if (specialoffertimer != null){
		clearTimeout(specialoffertimer);
		specialoffertimer = null;
	}
}
function hideSpecialOffer(){
	specialoffertimer = setTimeout('$("#specialOfferDiv").hide()',500);
}
function showLeftMenu(lid){
	if ($("#"+lid).is(':visible'))
		$("#"+lid).animate({
		    height: 'toggle'
		  }, 1000, function() {
			$("#"+lid).hide();
		});
	else
		$("#"+lid).animate({
		    height: 'toggle'
		  }, 1000, function() {
			$("#"+lid).show();
		});
}
function isInt(elementValue){  
	var intPattern = /^[0-9]+$/;  
	return intPattern.test(elementValue);  
}  
function isEmail(elementValue){  
	var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;  
	return emailPattern.test(elementValue);  
}  
function isMulitEmail(elementValue){
	var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;  
	var mySplitResult = elementValue.split(",");
	var pass = true;	
	for (i = 0; i < mySplitResult.length; i++){
		var t = mySplitResult[i];
		t = trim(t);
		if (! emailPattern.test(t)){
			pass = false;
		}
	}	
	return pass;
}
function trim(instr){
	instr = instr.replace(/^[\s]*/gi,"");
	instr = instr.replace(/[\s]*$/gi,"");
	return instr;
}
function onover(objstr, vpos){
	$("#"+objstr).css({
		marginTop: vpos
	});
}
function onout(objstr, vpos){
	$("#"+objstr).css({
		marginTop: vpos
	});
}
function btnOnOver(obj){
	$("div", obj).css({
		marginTop: -31
					  });
}
function btnOnOut(obj){
	$("div", obj).css({
		marginTop: 0
					  });
}
function resizeFunc(){
	/*var _w = $(window).width();
	var _h = $(window).height();
	$("#footer").css({
		width: _w
	});*/
}
