// JavaScript Document
$(function(){
$("#NewBoxcontainer").bind('drag',function( event ){
	$( this ).css({
		top: event.offsetY,
		left: event.offsetX
		});
	});
});
function abroad()
{
	show();
}

function Show2()                                        
{    
	hide();
	var iWidth = 980;                                        
	var iHeight = 750;                                        
	var iLeft = (screen.width-iWidth)/2;                                        
	var iTop = (screen.height-iHeight)/2-20;                                        
	var sParas = ",toolband=no,menuband=no,scrollbars=yes";
window.open("http://gbs.gta-travel.com/fe/enter.jsp?siteid=CBJYT","","top="+iTop+",left="+iLeft+",width="+iWidth+",height="+iHeight+""+sParas+"");                                        
}     

function hide(){
	$("#NewBoxcontainer").fadeOut(500);
}
function show(){
var iWidth = 510;	
var iLeft = (screen.width-iWidth)/2; 
$("#NewBoxcontainer").bgiframe().fadeIn(500);
$("#NewBoxcontainer").css({left:iLeft});
}



// 关键词搜索
function chk_ksearch()
{
	if($.trim($('#k').val())=='')
	{
		alert('请输入查询内容！');
		return false;
	}
	$('#kv').val(encodeURIComponent($.trim($('#k').val())));
	return true;
}


// 热门搜索
function skhot(strkey)
{
	$('#k').val(strkey);
	$('#titlesear').submit();	
}





