(function($){

$.fn.tabbed_function=function(){ 

// TAB
$('.tab').click(function(){
$('.tab',$(this).parent()).attr('displaying','false');
$('.tab',$(this).parent()).css({'background-position':'0px 0px','font-weight':'normal'});
$(this).attr('displaying','true');
$(this).css({'background-position':'0px -33px','font-weight':'bold'});
fadeInContent=$(this).attr('loadContent');
hideContent=$(this).attr('hideContent');
fadeInContent_function(fadeInContent,hideContent);
})

$('.tab').mouseover(function(){
if($(this).attr('displaying')!='true'){
$(this).css({'background-position':'0px -33px'});
}})

$('.tab').mouseout(function(){
if($(this).attr('displaying')!='true'){
$(this).css({'background-position':'0px 0px'});
}})


function fadeInContent_function(fadeInContent,hideContent){	
$('.'+hideContent).hide();
$('#'+fadeInContent).fadeIn();
};



//CLOSE TABBED FUNCTION
}
				
	
// CLOSE FUNCTION
})(jQuery);		
