function compCss(el,propKey){
	var cssProps;
	if(document.defaultView){
	    cssProps=document.defaultView.getComputedStyle(el,null);
	}else{
	    cssProps=el.currentStyle;
	}
	var propValue=cssProps[propKey];
	return propValue;
};
NeoPn={
	cac:function (h){
		window.location=h;
	},
	cpn:function (o,cpn,tpc,ppdc,uri,qps){
		var ov=o.value;
		if(!reg_id.test(ov)||ov==cpn||ov>tpc){
			o.value=cpn;
			return;
		}
		NeoPn.cac(uri+'?pn='+ov+'&ppdc='+ppdc+qps);
	},
	cpd:function (o,ppdc,uri,qps){
		var ov=o.value;
		if(!reg_id.test(ov)||ov==ppdc){
			o.value=ppdc;
			return;
		}
		NeoPn.cac(uri+'?pn=1&ppdc='+ov+qps);
	},
	acpn:function (o,cpn,tpc,ppdc,uri,qps,c){
		var ov=o.value;
		if(!reg_id.test(ov)||ov==cpn||ov>tpc){
			o.value=cpn;
			return;
		}
		NeoAjax.get({url:uri+'?pn='+ov+'&ppdc='+ppdc+qps,onSuccess:function (text){$('#'+c).html(text);}});
	},
	acpd:function (o,ppdc,uri,qps,c){
		var ov=o.value;
		if(!reg_id.test(ov)||ov==ppdc){
			o.value=ppdc;
			return;
		}
		NeoAjax.get({url:uri+'?pn=1&ppdc='+ov+qps,onSuccess:function (text){$('#'+c).html(text);}});
	},
	feu:function(_form){
		var es=_form.elements,qs='',e;
		for(var i=0,il=es.length;i<il;i++){
			e=es[i];
			if(!e.name||e.disabled){
				continue;
			}
			if(e.type=='text'||e.type=='textarea'||e.type=='select-one'||e.type=='hidden'||e.type=='password'||((e.type=='radio'||e.type=='checkbox')&&e.checked)){
				if(e.value){
					qs+='&'+e.name+'='+encodeURIComponent(e.value);
				}
			}else if(e.type=='select-multiple'){
				var ops=e.options;
				for(var j=0,jl=ops.length;j<jl;j++){
					if(!ops[j].selected||!ops[j].value){
						continue;
					}
					qs+='&'+e.name+'='+encodeURIComponent(ops[j].value);
				}
			}	
		}
		if(qs){
			qs=qs.substr(1);
		}
		return qs;
	}
};
function FindTours(form){
	var url=form.action;
	var qs=NeoPn.feu(form);
	qs&&(url+='?'+qs);
	window.location=url;
};
NeoAjax={
	init:function(){
		NeoAjax.XMLHTTP=null;
		var funs=
		[
			function(){return new XMLHttpRequest()},
			function(){return new ActiveXObject('Msxml2.XMLHTTP')},
			function(){return new ActiveXObject('Microsoft.XMLHTTP')}
		];
		for(var i=0,l=funs.length;i<l;i++){
			try{
				NeoAjax.XMLHTTP=funs[i]();
			}catch(e){}
		}
	},
	estr:function(text){
		var s='',c;
		for(var i=0,len=text.length;i<len;i++){
			c=text.charAt(i);
			switch (c){
				case '%':s+='%0';break;
	        	case '&':s+='%1';break;
	        	default:s+=c;
			}
		}
		return s;
	},
	cabk:function(onSuccess,onError){
		if(NeoAjax.XMLHTTP.readyState!=4){
			return;
		}
		if(NeoAjax.XMLHTTP.status!=200){
			onError(NeoAjax.XMLHTTP);
			return;
		}
		var text=NeoAjax.XMLHTTP.responseText
		onSuccess(text);
	},
	get:function(opts){
		NeoAjax.init();
		if(!NeoAjax.XMLHTTP){
			alert('Create AJAX object error!');
			return false;
		}
		if(!opts.onError){
			opts.onError=function (){};
		}
		NeoAjax.XMLHTTP.onreadystatechange=function(){
			NeoAjax.cabk(opts.onSuccess,opts.onError);
		}
		var extData='extData='+new Date().getTime();
		if(/\?/.test(opts.url)){	
			if(/(?:\?|&)(extData=[0-9]+)/.test(opts.url)){
				opts.url=opts.url.replace(RegExp.$1,extData);
			}else{
				opts.url+='&'+extData;
			}
		}else{
			opts.url+='?'+extData;
		}
		NeoAjax.XMLHTTP.open('get',opts.url,true);
		NeoAjax.XMLHTTP.send(null);
	},
	post:function(opts){
		NeoAjax.init();
		if(!NeoAjax.XMLHTTP){
			alert('Create AJAX object error!');
			return false;
		}
		if(!opts.onError){
			opts.onError=function (){};
		}
		NeoAjax.XMLHTTP.onreadystatechange=function(){
			NeoAjax.cabk(opts.onSuccess,opts.onError);
		}
		NeoAjax.XMLHTTP.open('post',opts.url,true);
		NeoAjax.XMLHTTP.setRequestHeader('Content-Type','text/plain; charset=UTF-8');
		//NeoAjax.XMLHTTP.setRequestHeader('Connection','close');
		NeoAjax.XMLHTTP.send(opts.str);
	},
	fstr:function(form){
		var eles=form.elements;
		var str='';
		for(var i=0,ilen=eles.length;i<ilen;i++){
			if(!eles[i].name||eles[i].disabled==true){
				continue;
			}
			if(eles[i].type=='text'||eles[i].type=='textarea'||eles[i].type=='select-one'||eles[i].type=='hidden'||eles[i].type=='password'||((eles[i].type=='radio'||eles[i].type=='checkbox')&& eles[i].checked)){
				str+=eles[i].name+'='+NeoAjax.estr(eles[i].value)+'&';
			}else if(eles[i].type=='select-multiple'){
				var opts=eles[i].options;
				for(var j=0,jlen=opts.length;j<jlen;j++){
					if(!opts[j].selected){
						continue;
					}
					str+=eles[i].name+'='+NeoAjax.estr(opts[j].value)+'&';
				}
			}
		}
		return str;
	},
	ostr:function(it){
		var str='';
		var o;
		if(it instanceof Array){
			var arr=it;
			for(var i=0,len=arr.length;i<len;i++){
				o=arr[i];
				for(var k in o){
					str+=k+'='+NeoAjax.estr(o[k]+'')+'&';
				}	
			}	
		}else{
			o=it;
			for(var k in o){
				str+=k+'='+NeoAjax.estr(o[k]+'')+'&';
			}
		}
		return str;
	}
};
jQuery.cookie = function(name, value, options) {
    if (typeof value != 'undefined') { // name and value given, set cookie
        options = options || {};
        if (value === null) {
            value = '';
            options.expires = -1;
        }
        var expires = '';
        if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
            var date;
            if (typeof options.expires == 'number') {
                date = new Date();
                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
            } else {
                date = options.expires;
            }
            expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
        }
        var path = options.path ? '; path=' + options.path : '';
        var domain = options.domain ? '; domain=' + options.domain : '';
        var secure = options.secure ? '; secure' : '';
        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
    } else { // only name given, get cookie
        var cookieValue = null;
        if (document.cookie && document.cookie != '') {
            var cookies = document.cookie.split(';');
            for (var i = 0; i < cookies.length; i++) {
                var cookie = jQuery.trim(cookies[i]);
                // Does this cookie string begin with the name we want?
                if (cookie.substring(0, name.length + 1) == (name + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
        return cookieValue;
    }
};
function NeoPPT(el,mc,prt,ma,ac){
	if(navigator.userAgent.indexOf('MSIE')>0){
		try{document.execCommand('BackgroundImageCache', false, true);}catch(e){};
		ac+=16;
	}
	var tvs=[];
	var n=0;
	var tvo;
	for(var i=0,cns=el.childNodes,il=cns.length;i<il;i++){
		if(cns[i].nodeType!=1||cns[i].className!='pw'){
			continue;
		}
		tvo=cns[i];
		tvs[n++]=tvo.style;
	}
	var tvc=1,tva=0,umi=0,l=0,t=0,h=Math.ceil(tvo.offsetHeight*prt/10)-1,w=Math.ceil(tvo.offsetWidth*prt/10)-1;
	var a,c,ai,run,anm,itv;
	var nav=document.createElement('div');
	nav.className='nav';
	var pns=[];
	var cpn=function(e){
		if(e){
			e.stopPropagation();
		}else{
			window.event.cancelBubble=true;
		}
		var i=0;
		for(;i<n;i++){
			if(pns[i]==this){
				break;
			}
		}
		if(i==tvc){
			return;
		}
		clearInterval(itv);
		itv=setInterval(
			function(){
				if(ai){
					return;
				}
				clearInterval(itv);
				tva=i;
				fun();
			},
			10
		);
	};
	for(var i=0;i<n;i++){
		pns[i]=document.createElement('span');
		pns[i].innerHTML=i+1;
		pns[i].onclick=cpn;
		nav.appendChild(pns[i]);
	}
	el.appendChild(nav);
	el.onmouseover=function(e){
		clearTimeout(run);
	};
	el.onmouseout=function(e){
		if(e){
			var that=e.relatedTarget;
			var pos=this.compareDocumentPosition(that);
			if(pos==20){
				return;
			}
		}else{
			var that=window.event.toElement;
			if(this.contains(that)){
				return;
			}
		}
		run=setTimeout(fun,mc*1000);
	};
	var fla=function(){
		c+=ac;
		l+=c;
		if(l>=w){
			clearInterval(anm);
			tvs[tva].zIndex=5;
			tvs[tvc].zIndex=4;
			l=w;
			c=1;
			anm=setInterval(flm,ma*10);
		}
		tvs[tvc].left=-l+'px';
		tvs[tva].left=l+'px';
	};
	var flm=function(){
		c+=ac;
		l-=c;
		if(l<=0){
			clearInterval(anm);
			tvs[tvc].zIndex=1;
			tvs[tvc].left='0';
			tvs[tva].left='0';
			tvc=tva;
			tva+=1;
			tva==n&&(tva=0);
			l=0;
			ai=0;
			return;
		}
		tvs[tvc].left=-l+'px';
		tvs[tva].left=l+'px';
	};
	var fta=function(){
		c+=ac;
		t+=c;
		if(t>=h){
			clearInterval(anm);
			tvs[tva].zIndex=5;
			tvs[tvc].zIndex=4;
			t=h;
			c=1;
			anm=setInterval(ftm,ma*10);
		}
		tvs[tvc].top=t+'px';
		tvs[tva].top=-t+'px';
	};
	var ftm=function(){
		c+=ac;
		t-=c;
		if(t<=0){
			clearInterval(anm);
			tvs[tvc].zIndex=1;
			tvs[tvc].top='0';
			tvs[tva].top='0';
			tvc=tva;
			tva+=1;
			tva==n&&(tva=0);
			t=0;
			ai=0;
			return;
		}
		tvs[tvc].top=t+'px';
		tvs[tva].top=-t+'px';
	};
	var fun=function(){
		clearTimeout(run);
		clearInterval(anm);
		ai=1;
		c=1;
		for(var i=0;i<n;i++){
			tvs[i].top='0';
			tvs[i].left='0';
		}
		pns[tvc].style.color='';
		pns[tva].style.color='#fff';
		tvs[tvc].zIndex=5;
		tvs[tva].zIndex=4;
		if(Math.round(Math.random())){
			anm=setInterval(fla,ma*10);
		}else{
			anm=setInterval(fta,ma*10);
		}
		run=setTimeout(fun,mc*1000);
	};
	fun();
};
function NeoMarquee(el,sp,cg){
	var els=[];
	var len=0;
	for(var i=0,cns=el.childNodes,il=cns.length;i<il;i++){
		if(cns[i].nodeType!=1){
			continue;
		}
		els[len++]=cns[i];
	}
	if(len<=4){
		return;
	}
	var a=0,p=4;
	var s=0,e=p;
	var run=function (){
		els[s++].style.display='none';
		els[e++].style.display='block';
		s==len&&(s=0);
		e==len&&(e=0);
		if(++a==cg){
			a=0;
			c=setTimeout(run,sp*1000);
		}else{
			c=setTimeout(run,200);
		}
	};
	el.onmouseover=function(e){
		clearTimeout(c);
	};
	el.onmouseout=function(e){
		if(e){
			var that=e.relatedTarget;
			var pos=this.compareDocumentPosition(that);
			if(pos==20){
				return;
			}
		}else{
			var that=window.event.toElement;
			if(this.contains(that)){
				return;
			}
		}
		c=setTimeout(run,sp*1000);
	};
	var c=setTimeout(run,sp*1000);
};
NeoCU={
	on:function(el, type, fn){
		el.addEventListener ?
			el.addEventListener(type, fn, false) :
		el.attachEvent ?
			el.attachEvent('on' + type, fn) :
		el['on'+type] = fn;
	},
	un:function(el,type,fn){
		el.removeEventListener ?
			el.removeEventListener(type, fn, false) :
		el.detachEvent ?
			el.detachEvent('on' + type, fn) :
		el['on'+type] = null;
	},
	evt:function(e){
		return e||window.event;
	},
	top:function(){
		return document.body.scrollTop||document.documentElement.scrollTop||0;
	},
	left:function(){
		return document.body.scrollLeft||document.documentElement.scrollLeft||0;
	},
	cww:function(){
		return self.innerWidth||document.documentElement.clientWidth;
	},
	cwh:function(){
		return self.innerHeight||document.documentElement.clientHeight;
	},
	mwh:function(){
		var _sh=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight);
		var _ch=Math.max(document.body.clientHeight,document.documentElement.clientHeight);
		return Math.max(_sh,_ch);
	},
	mww:function(){
		var _sw=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth);
		var _cw=Math.max(document.body.clientWidth,document.documentElement.clientWidth);
		return Math.max(_sw,_cw);
	}	
};
NeoWD=function(){
	var sd={},so={},wt={};
	var center=function (){
		var cw={
			height:NeoCU.cwh(),
			width:NeoCU.cww()
		};
		wt.top=Math.floor((cw.height-wt.height)*4/10);
		wt.left=Math.floor((cw.width-wt.width)/2);
		wt.top<15&&(wt.top=15);
		wt.left<15&&(wt.left=15);
		wt.mObj.style.top=wt.top+'px';
		wt.mObj.style.left=wt.left+'px';
		so.height=so.bObj.offsetHeight;
		so.width=so.bObj.offsetWidth; 
		so.top=Math.floor((cw.height-so.height)*4/10);
		so.left=Math.floor((cw.width-so.width)/2);
		so.top<15&&(so.top=15);
		so.left<15&&(so.left=15);
		so.wObj.style.top=so.top+'px';
		so.wObj.style.left=so.left+'px';
	};
	var resize=function (){
		if(sd.display){
			sd.mObj.style.display='none';
		}
		sd.mObj.style.height=NeoCU.mwh()+'px';
		sd.mObj.style.width=NeoCU.mww()+'px';
		if(sd.display){
			sd.mObj.style.display='block';
		}
		center();
	};
	var obj={
		init:function (){
			sd.zIndex=100;
			wt.height=60;
			wt.width=80;
			sd.mObj=document.createElement('div');
			sd.mObj.style.display='none';
			sd.mObj.style.position='absolute';
			sd.mObj.style.zIndex=sd.zIndex;
			sd.mObj.style.top='0';
			sd.mObj.style.left='0';
			sd.mObj.style.height=NeoCU.mwh()+'px';
			sd.mObj.style.width=NeoCU.mww()+'px';
			sd.mObj.style.backgroundColor='#000';
			sd.mObj.style.opacity=0;
			sd.mObj.style.filter='alpha(opacity=0)';
			document.body.appendChild(sd.mObj);
			var cw={
				height:NeoCU.cwh(),
				width:NeoCU.cww()
			};
			wt.top=Math.floor((cw.height-wt.height)*4/10);
			wt.left=Math.floor((cw.width-wt.width)/2);
			wt.top<15&&(wt.top=15);
			wt.left<15&&(wt.left=15);
			wt.mObj=document.createElement('div');
			wt.mObj.style.display='none';
			wt.mObj.style.position='fixed';
			wt.mObj.style.zIndex=sd.zIndex+3;
			wt.mObj.style.top=wt.top+'px';
			wt.mObj.style.left=wt.left+'px';
			wt.mObj.style.height=wt.height+'px';
			wt.mObj.style.width=wt.width+'px';
			wt.mObj.style.backgroundColor='#fff';
			wt.mObj.style.border='3px solid #64BCA8';
			wt.mObj.className='tec_wait';
			document.body.appendChild(wt.mObj);
			so.wObj=document.createElement('div');
			so.wObj.style.display='none';
			so.wObj.style.position='fixed';
			so.wObj.style.zIndex=sd.zIndex+1;
			so.wObj.style.top=0;
			so.wObj.style.left=0;
			so.wObj.style.backgroundColor='#fff';
			so.wObj.style.border='3px solid #64BCA8';
			so.cObj=document.createElement('a');
			so.cObj.href='#';
			so.cObj.style.position='absolute';
			so.cObj.style.top='-10px';
			so.cObj.style.right='-10px';
			so.cObj.style.height='20px';
			so.cObj.style.width='20px';
			so.cObj.title='close';
			so.cObj.className='tec_close';
			so.cObj.onclick=obj.hide;
			so.wObj.appendChild(so.cObj);
			so.bObj=document.createElement('div');
			so.bObj.style.backgroundColor='#fff';
			so.wObj.appendChild(so.bObj);
			document.body.appendChild(so.wObj);
			window.onresize=function (){setTimeout(resize,20);};
		},
		modal:function(display,opacity){
			if(display){
				sd.mObj.style.height=NeoCU.mwh()+'px';
				sd.mObj.style.width=NeoCU.mww()+'px';
				sd.mObj.style.opacity=sd.limit/100;
				sd.mObj.style.filter='alpha(opacity='+sd.limit+')';
				sd.mObj.style.display='block';
			}else{
				sd.mObj.style.opacity=0;
				sd.mObj.style.filter='alpha(opacity=0)';
				sd.mObj.style.display='none';
			}
		},
		wait:function (i){
			if(i){
				so.wObj.style.zIndex=sd.zIndex-1;
				wt.mObj.style.display='block';
			}else{
				wt.mObj.style.display='none';
				so.wObj.style.zIndex=sd.zIndex+1;
			}
		},
		show:function (opt){
			if(typeof(opt.allowClose)=='number'){
				so.allowClose=opt.allowClose;
			}else{
				so.allowClose=1;
			}
			so.wObj.style.zIndex=sd.zIndex+1;
			so.wObj.style.top='0';
			so.wObj.style.left='0';
			so.wObj.style.visibility='hidden';
			so.wObj.style.display='block';
			so.bObj.innerHTML=opt.html;
			so.cObj.style.display=so.allowClose?'block':'none';
			center();
			so.wObj.style.visibility='visible';
		},
		hide:function (){
			sd.mObj.style.opacity=0;
			sd.mObj.style.filter='alpha(opacity=0)';
			sd.mObj.style.display='none';
			wt.mObj.style.display='none';
			so.wObj.style.display='none';
			return false;
		}
	};
	return obj;
}();
var HotDestinations={
	show:function(el){
		$('#popBody').html(el.innerHTML);
		var p=$('#popWpr');
		p.css({width:'600px',height:'auto'});
		var h=p.outerHeight()-25;
		var x=Math.ceil((NeoCU.cww()-600)/2);
		var y=Math.ceil((NeoCU.cwh()-h)*4/10)+NeoCU.top();
		var o=$(el).offset();
		var l1=o.left,l2=x<15?15:x;
		var t1=o.top,t2=y<15?15:y;
		HotDestinations.css={left:l1+'px',top:t1+'px',width:'330px',height:'180px'};
		p.css(HotDestinations.css).css('visibility','visible').animate({left:l2+'px',top:t2+'px',width:'600px',height:h+'px'},300);
	},
	hide:function(){
		$('#popWpr').animate(HotDestinations.css,300,function(){this.style.visibility='hidden';});
	}
};

var NeoSimPop={
	show:function(el){
		$('#popBody').html(el.innerHTML);
		var p=$('#popWpr');
		p.css({width:'500px',height:'auto'});
		var h=p.outerHeight();
		var x=Math.ceil((NeoCU.cww()-600)/2);
		var y=Math.ceil((NeoCU.cwh()-h)*4/10)+NeoCU.top();
		var o=$(el).offset();
		var l1=o.left,l2=x<15?15:x;
		var t1=o.top,t2=y<15?15:y;
		NeoSimPop.css={left:l1+'px',top:t1+'px',width:'240px',height:'285px'};
		p.css(NeoSimPop.css).css('visibility','visible').animate({left:l2+'px',top:t2+'px',width:'500px',height:h+'px'},300);
	},
	hide:function(){
		$('#popWpr').animate(NeoSimPop.css,300,function(){this.style.visibility='hidden';});
	}
};

function cityDesc(el){
	NeoWD.show({html:'<div class="pop_city_desc">'+el.innerHTML+'</div>'});
};
var AnmPop={
	show:function(el,fw,fh){
		var tw=1100,th=620;
		$('#anmPopFrame').attr('width',tw).attr('height',th);
		NeoWD.modal(1,32);
		var o=$(el).offset();
		var x=Math.ceil((NeoCU.cww()-tw)/2);
		var y=Math.ceil((NeoCU.cwh()-th)*4/10)+NeoCU.top();
		var l1=o.left,l2=x<15?15:x;
		var t1=o.top,t2=y<15?15:y;
		AnmPop.css={left:l1+'px',top:t1+'px',width:fw+'px',height:fh+'px'};
		$('#anmPopWpr').css(AnmPop.css).show().animate({left:l2+'px',top:t2+'px',width:tw+'px',height:th+'px'},500);
	},
	hide:function(){
		$('#anmPopWpr').animate(AnmPop.css,300,function(){this.style.display='none';NeoWD.modal(0,0);});
	}
};
function NeoImgPlayer(imgs,elIL,elMc,elNr,elTp,elPn,elBt,elBb,elSa){
	var il=imgs.length;
	if(il==0){
		return;
	}
	var dr=1,ci,tl,ta,ts,sp,mp=5,pc=0,pn=1,pt=0,pb=4;
	for(var i=0,n=0,cns=elIL.childNodes,l=cns.length;i<l;i++){
		if(cns[i].nodeType!=1){
			continue;
		}
		ci=cns[i];
		imgs[n++].o=ci;
	}
	var fs={
		find:function(ps){
			if(ps==pn){
				return;
			}
			pc=pn;
			pn=ps;
			var img=imgs[pn];
			if(img.l){
				fs.show();
				return;
			}
			clearTimeout(tl);
			var pic=new Image();
			pic.src=img.b;
			var load=function(){
				if(pic.complete){
					img.l=true;
					fs.show();
					return;
				}
				tl=setTimeout(load,40);
			};
			load();
		},	
		show:function(){
			var img=imgs[pn];
			ci.style.borderColor='#fff';
			ci=img.o;
			ci.style.borderColor='#e82';
			elMc.innerHTML=img.n;
			elNr.innerHTML=img.m;
			elTp.innerHTML='<img src="'+img.b+'" border="0" style="width:'+img.w+'px;height:'+img.h+'px;display:inline;" alt="'+img.n+'"/>';
			elPn.innerHTML=(pn+1)+'/'+il;
			elSa&&fs.auto();
			il>mp&&fs.list();
		},
		list:function(){
			clearTimeout(ts);
			sp=(6-Math.abs(pn-pc))*40;
			ts=setTimeout(fs.scrl,sp);
			elBt.className=pn==0?'o':'a';
			elBb.className=pn==il-1?'o':'a';
		},
		scrl:function(){
			if(pc<pn){
				if(pn<pt+3||pb==il-1){
					pc=pn;
					return;
				}
				imgs[pt++].o.style.display='none';
				imgs[++pb].o.style.display='block';
				pc++;
				ts=setTimeout(fs.scrl,sp);
			}else if(pc>pn){
				if(pn>pb-3||pt==0){
					pc=pn;
					return;
				}
				imgs[pb--].o.style.display='none';
				imgs[--pt].o.style.display='block';
				pc--;
				ts=setTimeout(fs.scrl,sp);
			}
		},
		next:function(){
			var ps;
			if(dr){
				ps=pn+1;
				if(ps==il){
					dr=0;
					ps=pn-1;
				}
			}else{
				ps=pn-1;
				if(ps==-1){
					dr=1;
					ps=pn+1;
				}
			}
			fs.find(ps);
		},
		auto:function(){
			dr=pc<pn?1:0;
			clearTimeout(ta);
			if(elSa.checked){
				ta=setTimeout(fs.next,5000);
			}
		}
	};
	fs.find(0);
	if(il>mp){
		elBt.onclick=function(){
			var ps=pn-4;
			ps<0&&(ps=0);
			fs.find(ps);
		};
		elBb.onclick=function(){
			var ps=pn+4;
			ps>il-1&&(ps=il-1);
			fs.find(ps);
		};
	}
	return fs;
};
function showAtsTxt(el){
	var jQEl=$(el);
	var o=jQEl.offset();
	var w=NeoCU.cww();
	var l=(w-o.left)<680?(w-680):(o.left-100);
	$('#atsTxtWpr').html(jQEl.find('.m').html()).css({top:(o.top+150)+'px',left:l+'px'}).show();
}
function hideAtsTxt(el){
	var fun=arguments.callee.caller;
	var evt=fun.arguments[0];
	if(evt){
		var that=evt.relatedTarget;
		var pos=el.compareDocumentPosition(that);
		if(pos==20){
			return;
		}
	}else{
		var that=window.event.toElement;
		if(el.contains(that)){
			return;
		}
	}
	$('#atsTxtWpr').hide();
	
}
function NeoSLC(el){
	el.lastChild.style.display='block';
}
function NeoHLC(el){
	var fun=arguments.callee.caller;
	var evt=fun.arguments[0];
	if(evt){
		var that=evt.relatedTarget;
		var pos=el.compareDocumentPosition(that);
		if(pos==20){
			return;
		}
	}else{
		var that=window.event.toElement;
		if(el.contains(that)){
			return;
		}
	}
	el.lastChild.style.display='none';
};
function NeoPrdTab(){
	var ns=document.getElementById('tabs').childNodes;
	var tabs=[];
	var ci=0;
	var show=function(){
		for(var i=0,il=tabs.length;i<il;i++){
			if(tabs[i]==this){
				if(i==ci){
					return;
				}
				document.getElementById('tab_con'+(ci+1)).style.display='none';
				tabs[ci].className=tabs[ci].className.replace(/^ here| here$/,'')
				ci=i;
				document.getElementById('tab_con'+(ci+1)).style.display='block';
				tabs[ci].className+=' here';
				return;
			}
		}
	};
	for(var i=0,il=ns.length;i<il;i++){
		if(ns[i].nodeType!=1){
			continue;
		}
		tabs.push(ns[i]);
		ns[i].onclick=show;
	};
	return show;
};
var OurClientsSay={
	show:function(el){
		var p=$('#anmPopWpr');
		p.find('div:last').html(el.innerHTML);
		var w=800;
		p.css({width:w+'px',height:'auto'});
		var h=p.outerHeight();
		var x=Math.ceil((NeoCU.cww()-w)/2);
		var y=Math.ceil((NeoCU.cwh()-h)*4/10)+NeoCU.top();
		var o=$(el).offset();
		var l1=o.left,l2=x<15?15:x;
		var t1=o.top,t2=y<15?15:y;
		OurClientsSay.css={left:l1+'px',top:t1+'px',width:el.offsetWidth+'px',height:el.offsetHeight+'px'};
		p.css(OurClientsSay.css).css('visibility','visible').animate({left:l2+'px',top:t2+'px',width:w+'px',height:h+'px'},300);
	},
	hide:function(){
		$('#anmPopWpr').animate(OurClientsSay.css,300,function(){this.style.visibility='hidden';});
	}
};

