jQuery(document).ready(function() {

	function footerTabs(){
		
	 //if this is not the first tab, hide it
	 jQuery(".footer_tab:not(:first)").hide();
	 jQuery(".footer_tab:first").show();
	 
	 jQuery('ul.footer_htabs li a:first').addClass('active')
	
	 //when we click one of the tabs
	 jQuery("ul.footer_htabs li a").click(function(){
									   
		//add an active class to the links							   
		jQuery(this).parents('ul.footer_htabs').find('li a.active').removeClass('active');
		jQuery(this).addClass('active');
									   
		 //get the ID of the element we need to show
		 stringref = jQuery(this).attr("href").split('#')[1];
		 
		 //hide the tabs that doesn't match the ID
		 jQuery('.footer_tab:not(#'+stringref+')').hide();
		 //fix
		 if (jQuery.browser.msie && jQuery.browser.version.substr(0,3) == "6.0") 
		 {
			jQuery('.footer_tab#' + stringref).show();
		 }
		 if (jQuery.browser.msie && jQuery.browser.version.substr(0,3) == "7.0") 
		 {
			jQuery('.footer_tab#' + stringref).show();
		 }		 
		 else
			 //display our tab fading it in
			 jQuery('.footer_tab#' + stringref).show();
			 
		 //stay with me
		 return false;
	 });
	 
	}//end headerTabs
	
	footerTabs();
	
});
