<!--
//************************************************************
$(function(){
	$("a").focus(function(){this.blur()});
	//$(document).bind('contextmenu',function(){return false;});
	//$(document).bind('selectstart',function(){return false;});
});
//************************************************************
$(function(){
	$(".addcollect").click(function(){
		var ctrl = (navigator.userAgent.toLowerCase()).indexOf('mac') != -1 ? 'Command/Cmd' : 'CTRL';
		if (document.all){
			window.external.addFavorite(window.location.href, document.title);
		}
		else if (window.sidebar){
			window.sidebar.addPanel(document.title, window.location.href, '');
		}
		else{
			alert('您可以尝试通过快捷键' + ctrl + ' + D 加入到收藏夹~');
		}
	});
});

$(function(){
	if ($('#marquee_news').length > 0){
		new Marquee("marquee_news","top",1,208,150,50,0);
	}
	if ($('#marquee_case').length > 0){
		new Marquee("marquee_case","top",10,648,122,20,5000,3000,122);
	}
//ID      "marquee" 容器ID	   (必选)
//Direction  (0)    滚动方向    (可选,默认为0向上滚动) 可设置的值包括:0,1,2,3,"top","bottom","left","right" (0向上 1向下 2向左 3向右)
//Step       (1)    滚动的步长  (可选,默认值为2,数值越大,滚动越快)
//Width      (760)  容器可视宽度 (可选,默认值为容器初始设置的宽度)
//Height     (52)   容器可视高度 (可选,默认值为容器初始设置的高度)
//Timer      (50)   定时器      (可选,默认值为30,数值越小,滚动的速度越快,1000=1秒,建议不小于20)
//DelayTime  (5000) 间歇停顿延迟时间(可选,默认为0不停顿,1000=1秒)
//WaitTime   (3000) 开始时的等待时间(可选,默认或0为不等待,1000=1秒)
//ScrollStep (52)   间歇滚动间距	(可选,默认为翻屏宽/高度,该数值与延迟均为0则为鼠标悬停控制,-1禁止鼠标控制)
});
//************************************************************
$(function(){
	$("#search_submit").click(function(){
		if($("#keywords").val()==""){
			$("#keywords").val("请输入关键字");
			setTimeout('$("#keywords").val("")',1000);
			return false;
		}
		else{
			window.location.href='/search.asp?keywords='+encodeURI($('#keywords').val());
		}
	})	
});
//************************************************************
//-->
