jQuery(document).ready(function(){
	

	jQuery('div.panel').hide();
		jQuery(".trigger").click(function(){
			jQuery(".panel").toggle("slow");
			jQuery(this).toggleClass("active");
			return false;
	});
		
	var j = jQuery.noConflict();
	

		j('#top_tabs ul li a span.top_text').hide();
		
		j('#top_tabs ul li a').hover(function(){
			//var $title = j(this).attr('title');
			//j(this).children('span.top_text').html($title);
			
			var $item = j(this).children('span.top_text');
			var $width = j($item).outerWidth()+20;
			j($item).animate({width: 'toggle', easing: 'easeInOutCirc'}, 350);
		}, 
		function(){
			var $item = j(this).children('span.top_text');
			var $width = j($item).width()+20;		
			j($item).animate({width: 'toggle', easing: 'easeInOutCirc'}, 350, function(){ j(this).hide()});
		});		

	

	//a little js to make up for css2 not being that good
	j('.tabbed ul.footer_htabs li:first').find('a').stop().addClass('round-first');
	j('.tabbed ul.footer_htabs li:last').find('a').stop().addClass('round-last');
	
	
});
