// JavaScript Document
(function($){
$.fn.extend({
        ScrollLeft1:function(opt,callback){
                if(!opt) var opt={};
				var _this=this;
                speed=opt.speed?parseInt(opt.speed,10):500,	
				scrollshow_Marquee3=function(){
					if(_this.find("#scrollshow_demo2").innerWidth()-_this.scrollLeft()<=0){
						_this.scrollLeft(_this.scrollLeft()-_this.find("#scrollshow_demo1").innerWidth())
					}
					else{
						_this.scrollLeft(_this.scrollLeft()+1);
					}
				}		
        		_this.find("#scrollshow_demo2").html(_this.find("#scrollshow_demo1").html())
				var scrollshow_MyMar=setInterval("scrollshow_Marquee3()",speed)
				$(this).mouseover(function() {clearInterval(scrollshow_MyMar)})
				$(this).mouseout(function() {scrollshow_MyMar=setInterval(scrollshow_Marquee3,speed)})				
        }        
})
})(jQuery);	
$(document).ready(function(){
	$("body").keydown(function(){
		if(event.keyCode==13){
			event.keyCode=0;
			return false;
		}
	})
	//$("#demo3").ScrollLeft({speed:30})
	$("#demo3").ScrollLeft1({speed:20})
}); 
function mapsearchcity(){window.open("http://www.hm-3223.net/map/mapsearch.asp?key="+escape($("#pid").val()))}
function mapsearch(){window.open("http://www.hm-3223.net/map/mapsearch.asp?key="+escape($("#mapkey").val()))}
function sitesearch(){window.open("search.asp?sitekey="+escape($("#sitekey").val()))}

