
function clearInput(formfield)
{
  if (formfield.defaultValue==formfield.value)
   	formfield.value = ""
}
function fillInput(formfield)
{
  if (formfield.value== "")
   	formfield.value = "Search using Keywords"
 }


$(document).ready(function() {

//Top Nav Rounded Corners
$("#headCont .topNav ul li a").corner2("top 5px");

//SEO Tabs Rounded Corners
//Tabs
$("#seo #tabs ul.tabs li a").corner3("round top 5px").parent().css('padding', '1px 1px 0px 1px').corner3("round top 5px");
//Content
$("#seo #tabs .tabContent").corner3("bottom 5px").corner3("tr 5px").parent().css('padding', '1px').corner3("bottom 5px").corner3("tr 5px");

///////////////////////////////////////////////////////////////////////////////////////////
	var column1Height = $(".contentRow").height();
	var column2Height = $(".content").height();

    if (column1Height > column2Height)
		{
			var newHeight = (column1Height - 22);
			
			$(".content").height(newHeight);
		}

///////////////////////////////////////////////////////////////////////////////////////////
	
	$(".tab_content").hide(); 

	$("#tabs ul.tabs a:first").addClass("active").show(); 
	$(".tab_content:first").show(); 

	
	$("#tabs ul.tabs a").click(function() {
	
		$("#tabs ul.tabs a").removeClass("active"); 
		
		$(this).addClass("active"); 
		
		$(".tab_content").hide();
		
		//var activeTab = $(this).attr("href"); //Find the href attribute value to identify the active tab + content
		var activeTab = '#'+$(this).attr("title");
	
		
		$(activeTab).css('display','block'); 
		

		return false;
	});

});
