function formatpage()
{


	$('.model-menu').inc("header.html", null, function() {
		formattabs();		
	});

	$('#memberheader').inc("header.html", null, function() {
		formattabs();
	});  	

	$('#header').inc("header.html", null, function() {
		formattabs();
	}); 
	
	
	
//footer code
	$('#footer').inc("footer.html", null, function() {		
	
		$('#footer').find(".thickbox").click(function(hyperlink){
			hyperlink.preventDefault();
			var title = $(this).html();
			var href =  $(this).attr("href") + "?KeepThis=true&TB_iframe=true&height=500&width=600"
			tb_show(title, href);	
		});	
		
		//localscroll code
		formatLinks();
	});
//Close Footer Code


}//close formatpage code.


function formatLinks()
{
	$.localScroll();
	
	//rollover code	
	$('.rollover').hover(function() {
		var currentImg = $(this).attr('src');
		$(this).attr('src', $(this).attr('alt'));
		$(this).attr('alt', currentImg);
	}, function() {
		var currentImg = $(this).attr('src');
		$(this).attr('src', $(this).attr('alt'));
		$(this).attr('alt', currentImg);
	});
	//Close Rollover Code
}


function formattabs()
{
		var activetab = '#' + $("title").attr('id');
		$(".tabs").find(activetab).addClass("active");
		$(".tabs").find(activetab).find("a").css("color","blue");
		$(".tabs").find(activetab).find("a").css("font-weight","bold");	
		$(".tabs").find(activetab).find("a").click(function(event){return false;});
			
		$(".tabs li").not(activetab).hover(function() {
		$(this).addClass("active");
		},function(){
		$(this).removeClass("active");		
		});

}







