
showlist = false;
$('#gamelist').hover(function(){
                      
                      },function(){
                              $("#gamelist").slideUp('slow');
							  showlist = false;
                           });
 
function showgamelist()
{
	if(!showlist)
	{
		$("#gamelist").slideDown('slow');
		showlist = true;
	}
	else
	{
		$("#gamelist").slideUp('slow');
		showlist = false;
	}
}

function changeRate(ele)
	{
		$.get("/ajax/changeCurrencyType/"+ele, null, function (data, textStatus){
				if ( textStatus == "success")
				{
					window.location.href = "/";
				}										
			});
	}
	
/*<!--function quickbuy()
{
	if($("#selectGame").val() != 0 && $("#selectBlock").val() != 0)
	{
		$.get("/ajax/getDomain/"+$("#selectGame").val(),null,function (data, textStatus)
		{
			if ( textStatus == "success")
			{
				window.location.href = "http://"+data+"/fillorder/fillgoldorder/"+$("#selectServer").val()+"/"+$("#selectBlock").val()+"/"+$("#selectGame").val();
			}
		});
		
	}

}

function ajaxAddOptions(url, target, id, text){  
     target.empty();  
     $.getJSON(url, function(json){  
         $(json).each(function(i){  
             var x = json[i];  
             target.append("<option value='" + eval("x." + id) + "'>" + eval("x." + text) + "</option>" );  
         })  
     });  
}
-->*/
function ajaxAddOptions(url, target, id, text){  
     target.empty(); 
     $.getJSON(url, function(json){
         $(json).each(function(i){  
             var x = json[i]; 
             target.append("<option value='" + eval("x." + id) + "'>" + eval("x." + text) + "</option>" );  
         })  
     });  
}


$(document).ready(function(){
			
     
		ajaxAddOptions("/quickbuy/getGameBlock/33/1330"  , $("#selectBlock"), "id", "text");

	
	
 });

function quickbuy()
{
	
	window.location.href = "/fillorder/fillgoldorder/1330/"+$("#selectBlock").val()+"/33"; 

}
function PostCur(nCurID)
{	
	if ( $('#radCurency')[0].value != nCurID)
		$('#radCurency')[0].value = nCurID;	
	else
		return;
		
	$('#paymentform').submit();	
}
