/**
 * @author summit
 * 首页商家信息滚动效果
 */
$(document).ready(function(){//注册事件
	var messgelistjs=new Marquee("messgelist");
  	messgelistjs.Direction = "up";
	messgelistjs.Step = 10;
	messgelistjs.Width = 520;
	messgelistjs.Height = 312;
	messgelistjs.Timer = 30;
	messgelistjs.DelayTime = 5000;
	messgelistjs.WaitTime = 5000;
	messgelistjs.ScrollStep = 96;
	messgelistjs.Start();	
});
function createAjax() {			
	var _xmlhttp;
	try {	
		_xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	catch (e) {
		try {
			_xmlhttp=new XMLHttpRequest();	
		}
		catch (e) {
			_xmlhttp=false;		
		}
	}
	return _xmlhttp;
}
function getCookie( name ) {  
	    var start = document.cookie.indexOf( name + "=" ); 
	    var len = start + name.length + 1; 
	    if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) {
				return null;     
		} 
	    if ( start == -1 )
			return null; 
		var end = document.cookie.indexOf( ';', len );
		if ( end == -1 ) end = document.cookie.length; 
		return unescape( document.cookie.substring( len, end ) ); 
}

