/**
 * Copyright(c) playerassist.com 2008-2009. All rights reserved.
 */
$(document).ready(function(){
	// changed left menu style
	$('.menu-nav-list dt').each(function(){		
		$(this).click(function(){		
			$(this).next().toggle();
		});
	});
    
	// loaded left game ico 
    $('.menu-nav-list dt').each(function(){	   	
    	var url ='http://www.gamegoldfast.com/';
    	var im =$(this).attr('class');    	
    	$(this).css("background-image","url("+url+"images/category/ico/"+im+".jpg)");
    	$(this).css("background-repeat","no-repeat");
    });
    
    // tab mouse down
    function tab_down(index){        
        $('#lft_tag'+index).next().css('display','block');        
    }
    
    // view cart;
     $.ajax({     	
     	url: 'http://www.gamegoldfast.com/view_cart.php',
     	type: 'GET',
     	dataType: 'html',
     	timeout: 20000,     
	     error: function()
	     {
	     	//alert('Failed to connect to server');
	     },
	     success: function(msg)
	     {
	     	$('.quy_cart .cart').html(msg);
	     }
     });
     
     

	 

	 $('.btn_Edit').click(function(){
	 
		window.location.href = "http://www.gamegoldfast.com/dgcart.php";
		
	 })

	 $('.btn_buynow').click(function(){
	 
		window.location.href = "http://www.gamegoldfast.com/order/setup-2.php";
		
	 })
	 
	 $('.hed_menu ul #tab3 a').click(function(){
     	window.open($(this).attr('href'));
     	return false;
	 	//window.open($(this).attr('href'));     	
     });

		
});
function tab_down(index)
{
	$('#lft_tag'+index).next().css('display','block');
}
