jQuery.fn.slideFadeIn = function (speed,callback) {
	return this.animate({height: 'show', opacity: 'show'},speed,callback);
}

jQuery.fn.slideFadeOut = function (speed,callback) {
	return this.animate({height: 'hide', opacity: 'hide'},speed,callback);
}

$(document).ready(function() {
	$(".showError").toggle(function() {
		$(".contactFormError").slideFadeIn("slow");
	},
	function() {
		$(".contactFormError").slideFadeOut("slow");
	}
	);
});
/*
$(window).load(function() {
	if(!$(".googledir table").length > 0 && $(".contactFormError").length > 0)
	{
		alert("No directions directions");
	}
	else if($(".googledir table").length > 0 && $(".contactFormError").length > 0)
	{
		alert("has directions!");
	}
});
*/



/*
$(window).load(function() {
	
	if($.browser.mozilla)
	{
		doMapyThing();
	}
	
	else
	{
		setTimeout("doNothing()",5000); //alert("IE");
		doMapyThing();
	}
	
		
	
});

function doNothing()
{
	/var has_path = document.getElementsByTagName('svg');
	alert(has_path.length);*
}

function doMapyThing()
{
	var has_path = document.getElementsByTagName('svg');
	if (has_path.length == 0 && $(".contactFormError").length > 0)
	{
		$(".locationShow").hide();
		$("#registerDynamic_5_UserName").focus();
		$(".contactFormError").slideFadeIn('slow');
		$(".inputLocation").focus();
		setTimeout("hideError()",7000);
	}
}

function hideError()
{
	$(".contactFormError").slideFadeOut('slow');
}*/