// JavaScript Document

$(document).ready(function() {
 
	$('.tabs a').click(function(c){		
		switch_tabs($(this));
		c.preventDefault(); // this prevents the original href of the link from being opened
    	//c.stopPropigation();
	});
 
	switch_tabs($('.defaulttab'));
 
});
 
function switch_tabs(obj)
{
	$('.tab-content').hide();
	$('.tabs a').removeClass("selected");
	$('.tabs a').css("background-image","url(/images/ascentive/home_tab_bkgrnd.gif)");
	$('.tabs a').css("color","#9b9b9b");
	
	
	var id = obj.attr("rel");
 
	$('#'+id).show();
	obj.addClass("selected");
	obj.css("background-image","url(/images/ascentive/home_tab_wht_bkgrnd.gif)");
	obj.css("color","#333");
}
