// JavaScript Document

$(document).ready(function() {
	//$('.b-pricing ul.nav li::nth-child(even)').addClass("odd");	
	
	
	// Tabs
	$('.b-latest-box').hide();
		$('.b-latest-box:first').show();
		$('.b-latest-thumb li:first').addClass('active');
		$('.b-latest-thumb li').click(function(){ 
			$('.b-latest-thumb li').removeClass('active');
			$(this).addClass('active'); 
			var currentTab = $(this).children().attr('href'); 
			$('.b-latest-box').hide();
			$(currentTab).show();
		return false;
		});	
	
	 if (jQuery.browser.msie && jQuery.browser.version == '6.0' || jQuery.browser.version == '7.0') {     
		$('#top-tabs ins').hide();
		$('#top-tabs ins:first').show();
		$('#top-tabs .custom-list li:first').addClass('active');
		$('#top-tabs .custom-list li').click(function(){ 
			$('#top-tabs .custom-list li').removeClass('active');
			$(this).addClass('active'); 
			var currentTab = $(this).children().next().attr('href'); 
			$('#top-tabs ins').hide();
			$(currentTab).show();
		return false;
		});			
     } 
	 else {
		$('#top-tabs ins').hide();
		$('#top-tabs ins:first').show();
		$('#top-tabs .custom-list li:first').addClass('active');
		$('#top-tabs .custom-list li').click(function(){ 
			$('#top-tabs .custom-list li').removeClass('active');
			$(this).addClass('active'); 
			var currentTab = $(this).children().attr('href'); 
			$('#top-tabs ins').hide();
			$(currentTab).show();
		return false;
		});	
	};
	
	
	if (jQuery.browser.msie && jQuery.browser.version == '6.0') {     
		$('.b-free-games .l-row:first, .b-categories .l-row .b-category:first-child, .b-latest-thumb li:first').addClass('first');		
     };
	
	
});
