
//most popular box tabber
$(document).ready(function(){
						   
						   
	// most popular 					   
						   
	$('ul.tabNav a').mouseover(function() {
		var curChildIndex = $(this).parent().prevAll().length + 1;
		$(this).parent().parent().children('.current').removeClass('current');
		$(this).parent().addClass('current');
		
		
		$(this).parent().parent().next('.tabContainer').children('.current').show('fast',function() {
			$(this).removeClass('current');
			
			
			
			$(this).parent().children('div:nth-child('+curChildIndex+')').hide('fast',function() {
				$(this).addClass('current');
			});
		});
		return false;								
	});


$('ul.tabNav2 a').mouseover(function() {
		var curChildIndex = $(this).parent().prevAll().length + 1;
		$(this).parent().parent().children('.current').removeClass('current');
		$(this).parent().addClass('current');
		
		
		$(this).parent().parent().next('.tabContainer2').children('.current').show('fast',function() {
			$(this).removeClass('current');
			
			
			
			$(this).parent().children('div:nth-child('+curChildIndex+')').hide('fast',function() {
				$(this).addClass('current');
			});
		});
		return false;								
	});


	
	
// dropdown menu		
$('.dropdown').each(function () {
		$(this).parent().eq(0).hoverIntent({
			timeout: 100,
			over: function () {
				var current = $('.dropdown:eq(0)', this);
				current.slideDown(100);
			},
			out: function () {
				var current = $('.dropdown:eq(0)', this);
				current.fadeOut(200);
			}
		});
	});
	
	$('.dropdown a').hover(function () {
		$(this).stop(true).animate({speed: 200, easing: 'easeOutBack'});
	}, function () {
		$(this).stop(true).animate( {speed: 200, easing: 'easeOutBounce'});
	});
	
	
// compesition toggle
$("#composition").click(function () {
$("#div_composition").toggle("slow");
}); 



	
});


