

var D=document;
var getDocumentHeight=function(){return Math.max(D.documentElement.scrollHeight,D.documentElement.clientHeight)}
var isIE = (D.all) ? true : false;

function addListener(el,evt,fun){
	if (el.addEventListener)
		el.addEventListener(evt, fun, false);
	else if(el.attachEvent)
		el.attachEvent('on'+evt,fun);
	else
		el['on'+evt]=fun;
}
		function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6. 
            {
                var arVersion = navigator.appVersion.split("MSIE")
                var version = parseFloat(arVersion[1])
                if ((version >= 5.5) && (document.body.filters)) {
                    for (var j = 0; j < document.images.length; j++) {
                        var img = document.images[j]
                        var imgName = img.src.toUpperCase()
                        if (imgName.substring(imgName.length - 3, imgName.length) == "PNG") {
                            var imgID = (img.id) ? "id='" + img.id + "' " : ""
                            var imgClass = (img.className) ? "class='" + img.className + "' " : ""
                            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
                            var imgStyle = "display:inline-block;" + img.style.cssText
                            if (img.align == "left") imgStyle = "float:left;" + imgStyle
                            if (img.align == "right") imgStyle = "float:right;" + imgStyle
                            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
                            var strNewHTML = "<span " + imgID + imgClass + imgTitle
						 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
						 + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
						 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
                            img.outerHTML = strNewHTML
                            j = j - 1
                        }
                    }
                }
            }
function fixPng(o){
	var arVersion = navigator.appVersion.split("MSIE")
	var version = parseFloat(arVersion[1])
	
		if ((version >= 5.5 && version < 7.0) && (document.body.filters)) {
			var _img=D.images
			if (o){	
				_img=[o];
			}
			for(var i=0; i<_img.length; i++) {
				var img = _img[i];
				var imgName = img.src;
				_img[i]._src=imgName;
				if (imgName.toUpperCase().indexOf(".PNG") > 0) {
					var width = img.width;
					var height = img.height;
					var sizingMethod = "scale"; 
					img.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + img.src.replace('%23', '%2523').replace("'", "%27") + "', sizingMethod='" + sizingMethod + "')";
					img.src = "/images/blank.gif";
					img.style.width = width+'px';
					img.style.height = height+'px';
				}
			}
		}
}

  addListener(window, 'load', function(){fixPng();})






String.prototype.swapString=function(s1,s2){return this.indexOf(s1)>-1?this.replace(s1,s2):this.replace(s2,s1);}

String.prototype.lTrim=function(){if(this.charAt(0)==' '){return this.substring(1,this.length).lTrim()}else{return this}}
String.prototype.rTrim=function(){if(this.charAt(this.length)==' '){return this.substring(0,this.length-11).rTrim()}else{return this}}
String.prototype.Trim=function(){return this.lTrim().rTrim()}
Array.prototype.indexOf=function(v){for(var i=this.length;i--&&this[i]!==v;);return i;}
function createEle(tag,attr,c){
	var o=document.createElement(tag);
	for (t in attr){o[t]=attr[t];}
	if(c){c.appendChild(o)}else{document.body.appendChild(o)}
}


function $id(id){return typeof id==='string'?D.getElementById(id):id}
function $tag(el,tag){
    return obj=$id(el).getElementsByTagName(tag)
}
function _O2A(o){
	var arr=[];
    for(var i=0;i<o.length;i++){
        arr.push(o[i]);
    }
    return arr;
}
function $child(el,tag){
	var ele=[],c=$id(el).childNodes;
	Each(c,function(){if (this.tagName&&this.tagName.toLowerCase()==tag){ele.push(this)}})
	return ele;
};

function addClass(arr,cn){Each(arr,function(){
    this.className+=this.className.split(' ').indexOf(cn)>-1?'':' '+cn;
})}
function removeClass(arr,cn){Each(arr,function(){
    var tabs=this.className.split(' ');
    var i=tabs.indexOf(cn);
    if(i!==-1){delete tabs[i];this.className=tabs.join(' ').Trim()}    
})}


function removeListener(el,evt,fun){
	if (el.addEventListener)
		el.removeEventListener(evt, fun, false)
	else if(el.detachEvent)
		el.detachEvent('on'+evt,fun);
	else
		el['on'+evt]=null
}

function confirmF(fun,str){
	result=window.confirm(str||'请确定执行此操作!')
	!result||fun();
}


function getCookie(cookie_name){
	var allcookies = document.cookie;
	var cookie_pos = allcookies.indexOf(cookie_name);

	// 如果找到了索引，就代表cookie存在，
	// 反之，就说明不存在。
	if (cookie_pos != -1){
		// 把cookie_pos放在值的开始，只要给值加1即可。
		cookie_pos += cookie_name.length + 1;
		var cookie_end = allcookies.indexOf("&", cookie_pos);
		if (cookie_end == -1){
			cookie_end = allcookies.length;
		}
		var value = unescape(allcookies.substring(cookie_pos, cookie_end));
	}
	return value;
}

function dateDiff(interval, date1, date2)
    {
        var objInterval = {'D' : 1000 * 60 * 60 * 24, 'H' : 1000 * 60 * 60, 'M' : 1000 * 60, 'S' : 1000, 'T' : 1};
        interval = interval.toUpperCase();
        var dt1 = Date.parse(date1.replace(/-/g, '/'));
        var dt2 = Date.parse(date2.replace(/-/g, '/'));
        try
        {
            return Math.round((dt2 - dt1) / objInterval[interval]);
        }
        catch (e)
        {
            return e.message;
        }
    }
	
function browserInfo(){
	if (window.XMLHttpRequest) { //Mozilla, Safari,...IE7    
		if(!window.ActiveXObject){            
			return 'Mozilla,Safari';
		}    
		else{   
			return 'ie7';   
		}   
	}   
	else{   
		return 'ie6';   
	}  
}

function getAbsPos(e,a){var x=e.offsetLeft,y=e.offsetTop;while(e=e.offsetParent){x+=e.offsetLeft;y+=e.offsetTop;}return a=='x'?x:y}

function QueryString(qs)
{
	var s = location.href;
	s = s.replace("?","?&").split("&");
	var re = "";
	for(var i=1;i<s.length;i++)
		if(s[i].indexOf(qs+"=")==0)
			re = s[i].replace(qs+"=","");
	re=re.replace('#nogo','')
	return re;
}

function getStyle(el,IE,FF){//获得CSS中的STYLE
	var elem=el;
	return navigator.appName=="Microsoft Internet Explorer"?elem.currentStyle[IE]:document.defaultView.getComputedStyle(elem, "").getPropertyValue(FF);
}

function Each(Arr,fun){
	for (var i=0;i<Arr.length;i++){
		fun.call(Arr[i],i);
	}
}

function stopBubble(event) {
	//如果提供了事件对象，则这是一个非IE浏览器
	event=event?event:window.event;
	if ( event && event.preventDefault ){
		//因此它支持W3C的stopPropagation()方法
		event.preventDefault();    
        event.stopPropagation();
	} 
	else{
		//否则，我们需要使用IE的方式来取消事件冒泡
		 window.event.cancelBubble = true;}
}

//随屏移动
var floatDiv=function (obj){
    if (obj==null) return false;
	var lastY=-1;
	var speed=0.2;
	obj.style.top=getStyle(obj,'top','top')
	var m=function(){ 
		dY=document.documentElement.scrollTop|| document.body.scrollTop;; 
		var p=speed*(dY-lastY); 
		if(p>0)p=Math.ceil(p); 
		else p=Math.floor(p); 
		obj.style.top=parseInt(obj.style.top)+p+"px";
		lastY+=p; 
		if (p!=0)setTimeout(m,10)
		else obj.onS=false
	}
	function move(){if (!obj.onS) {obj.onS=true;var index_a__d=setTimeout(m,10);}}
	addListener(window,'scroll',move);
	addListener(window,'resize',move);
	Each(obj.getElementsByTagName('a'),function(){if (this.title=='close') this.onclick=function(){removeListener(window,'scroll',move);removeListener(window,'resize',move);obj.style.display='none'}})
 };
//floatDiv(document.getElementById('sorollDiv1'))

//首页广告
function indexBanner(o){
	var o=$($id(o));
	var img=o.find('a img');
	var nav_con=o.find('div.nav');
	var nav=[];
	var ii,t,currentId;
	var href=o.find('a');
	for(var i=0;i<img.length;i++){
		var nav_img=D.createElement('p');
		nav_img.innerHTML=i+1;
		nav_img._id=i;
		img.eq(i).get(0)._id=i;
		nav_img.onclick=(function(){
				var j=i;
				return function(){
					window.location.href(href.get(j).href.split(window.location.host)[1])
				}
			})()

		
		nav_con.append(nav_img);
		nav.push(nav_img)
		//fixPng(nav_img)
		//如果nav_img是图片对象的话，需要运行fixPgn()来兼容ie6下PNG图片的问题
	}
	function showImg(i){
		if(ii!=null) {
			img.eq(ii).fadeOut();
			nav[ii].className='';
			//nav[ii].src='http://ysm:85/img/banner/circle.png';
			//fixPng(nav[ii])
		}
		img.eq(i).fadeIn();
		nav[i].className='hover';
		//nav[i].src='http://ysm:85/img/banner/circle_g.png'
		//fixPng(nav[i]);
		ii=i
	} 
	nav_con.children().mouseenter(function(i){
	        //alert(typeof i==Object?this._id:i);
			clearTimeout(t)
			showImg(this._id);
			currentId=this._id;
			return false;
			//fixPng(this);
		}
	).mouseleave(function(i){
	        clearTimeout(t)
			var me=this;
			t=setTimeout(function(){maquee(parseInt(me._id)+1)},1000)
			return false;
		}
	)
	o.mouseenter(function(){;clearTimeout(t)}).mouseleave(function(){clearTimeout(t); t=setTimeout(function(){maquee(currentId+1)},1000)})
	function maquee(i,time){
	    currentId=i;
		var time=time||4000
		if (i>=img.length)i=0
		t=setTimeout(function(){showImg(i);i++;maquee(i,4000)},time)
	}
	maquee(0,1)
}

function indexBannerPro(o){
	var o=$($id(o));
	var img=o.find('a img');
	var nav_con=o.find('div.nav');
	var nav=[];
	var ii,t,currentId;
	var href=o.find('a');
	for(var i=0;i<img.length;i++){
		var nav_img=D.createElement('p');
		nav_img.innerHTML=i+1;
		nav_img._id=i;
		img.eq(i).get(0)._id=i;
		nav_img.onclick=(function(){
				var j=i;
				return function(){
					window.location.href(href.get(j).href.split(window.location.host)[1])
				}
			})()
		nav_con.append(nav_img);
		nav.push(nav_img)
	}
	function showImg(i){
		if(ii!=null) {
			img.eq(ii).fadeOut();
			nav[ii].className='';
		}
		img.eq(i).fadeIn();
		nav[i].className='hover';
		ii=i
	} 
	nav_con.children().mouseenter(function(i){
			clearTimeout(t)
			showImg(this._id);
			currentId=this._id;
			return false;
		}
	).mouseleave(function(i){
	        clearTimeout(t)
			var me=this;
			t=setTimeout(function(){maquee(parseInt(me._id)+1)},1000)
			return false;
		}
	)
	o.mouseenter(function(){;clearTimeout(t)}).mouseleave(function(){clearTimeout(t); t=setTimeout(function(){maquee(currentId+1)},1000)})
	function maquee(i,time){
	    currentId=i;
		var time=time||4000
		if (i>=img.length)i=0
		t=setTimeout(function(){showImg(i);i++;maquee(i,4000)},time)
	}
	maquee(0,1)
}


function alertWin(o){ 
    /*
    待改进：1。打开窗口默认大小小于页面宽度时，弹出框的LEFT需要改变    
    */
	//o.msg 显示的html
	//o.width 显示宽度
	//o.height 显示高度
	//o.moveable 是否可拖动
	//o.shade 遮罩层
	//o.areaClose 关闭区域|all:背景层
	//o.closeFun 关闭窗口时执行
	//o.timeOut 延迟关闭
	var me=this;
	var follow;
	var D=document;
	var moving=false;
	var objs=document.getElementsByTagName('object');
	if (typeof o!='object') return false;
	var bgObj,msgObj;
	this.closeMsg=function(){//function:关闭窗口
		bgObj&&D.body.removeChild(bgObj); 
		msgObj&&D.body.removeChild(msgObj); 
		bgObj=msgObj=me=null;
		Each(objs,function(){
			this.style.position=this._p;
			this.style.left=this._l;})
		removeListener(window,'scroll',follow)
		o.closeFun&&o.closeFun();
	}
	this.areaClose=o.areaClose||false;
	if(this.areaClose){
		if (me.areaClose=='all'){
			var initCloser=function(){
				msgObj.onclick=function(){me.closeMsg();}
				bgObj.onclick=function(){me.closeMsg()}
			}
		}else{
			var initCloser=function(){
				$id(me.areaClose).onclick=function(){me.closeMsg()}
			}
		}
	}
	var oy=((document.documentElement.clientHeight||document.body.clientHeight)-o.h)/2
	var moveX,moveY,moveTop,moveLeft,moveable=o.moveable||false;
	var moved=false;
	var mm = function() {
		isIE&&msgObj.setCapture();
		moved=true;
		var evt = getEvent();
		msgObj.style.left = moveLeft + evt.clientX - moveX + "px";
		msgObj.style.top = moveTop + evt.clientY - moveY + "px";
	};
			
	this.openMsg=function(){//function:打开窗口
		Each(objs,function(){
			this._p=this.style.position;
			this._l=this.style.left;
			this.style.position='relative';
			this.style.left='-5000px';}
		)
		var iWidth = D.documentElement.clientWidth; 
		var iHeight = D.documentElement.clientHeight; 
		if (o.shade){
			bgObj = D.createElement("div"); 
			bgObj.style.cssText = "position:absolute;left:0px;top:0px;width:100%;height:"+getDocumentHeight()+"px;filter:Alpha(Opacity=40);opacity:0.4;background-color:#000000;z-index:99991;display:none";
			D.body.appendChild(bgObj); 
			bgObj.style.display='block'
			if (me.areaClose==='all')
				bgObj.onclick=function(){me.closeMsg()}
		}
		
		msgObj=D.createElement("div");
		msgObj.style.cssText = "position:absolute;top:"+(oy+(self.pageYOffset || D.documentElement.scrollTop ))+"px;left:"+(iWidth-o.w)/2+"px;width:"+o.w+"px;height:"+o.h+"px;z-index:99992;";
		msgObj.innerHTML=o.msg;
		D.body.appendChild(msgObj);
		
		if(moveable){
			msgObj.onmousedown = function(e) {
				moving=true;
				var evt = getEvent();
				try{evt.preventDefault()}
				catch(e){};
				moved=false;
				moveX = evt.clientX;
				moveY = evt.clientY;
				moveTop = parseInt(msgObj.style.top);
				moveLeft = parseInt(msgObj.style.left);
				D.body._onselectstart=D.body.onselectstart
				D.body.onselectstart=function(){return false}
				addListener(document,'mousemove',mm)
			}
				
			msgObj.onmouseup = function () {
				if (moving) {
					moving=false;
					isIE&&msgObj.releaseCapture();
					removeListener(document,'mousemove',mm)
					D.onmousemove=null;
					D.body.onselectstart=D.body._onselectstart
					oy=parseInt(msgObj.style.top)-(self.pageYOffset||D.documentElement.scrollTop);
				}
				//if(!moved&&(me.areaClose=="all")) me.closeMsg();
			};
		}
		
		initCloser&&initCloser()
		follow=function(){
			//document.getElementById('te').innerHTML=oy
			var ny=self.pageYOffset||D.documentElement.scrollTop
			msgObj.style.top=oy+ny+'px'
		}
		addListener(window,'scroll',follow)
		if(o.timeOut){
		    setTimeout(this.closeMsg,o.timeOut);
		}
	}
	
    function getEvent() {
	    return window.event || arguments.callee.caller.arguments[0];
    }
	if (o.runatonce){
	    this.openMsg();
	}
}

function simpleTabs(tab,cont,option){
    var option=option||{};
    option.event=option.event||'click';
    option.index=option.index||0;
    Each(tab,function(){
        var _this=this;
        addListener(this,option.event,function(){
            Each(cont,function(i){
                if(cont[tab.indexOf(_this)]==this){
                    this.style.display='block';
                    addClass([tab[i]],option.hoverClassName)

                }else{
                    this.style.display='none';
                    removeClass([tab[i]],option.hoverClassName)
                }
            })
        })
    })
}

//shopinfo 用户评分
function pushStarArr(arr){Each(arr,function(){selStars(this)})}

function selStars(obj){
	var darkStar='/images/gray_star03.gif';
	var lightStar='/images/gray_star01.gif';
	var objs=$id(obj).getElementsByTagName('img');
	var score=$id(obj).getElementsByTagName('input')[0]
	for(var i=0;i<objs.length;i++){
		objs[i].i=i;
		objs[i].changed=objs[i].src
		objs[i].onmouseover=function(){
			var _i=this.i;
			Each(objs,function(){this.src=this.i>_i?darkStar:lightStar})
		}	
		objs[i].onmouseout=function(){
			Each(objs,function(){this.src=this.changed});
		}
		objs[i].onclick=function(){
			Each(objs,function(){this.changed=this.src;})
			score.value=this.i+1
		}	
	}
}

function showDdInfo(){
    var dd=$('#shopInfo_ddList div');
    dd.hover(function(){$(this).css('z-index','999').children('table:eq(0)').fadeIn(100); return false},function(){$(this).css('z-index','1').find('table:eq(0)').fadeOut(100)});
}

//shopinfo 用户商铺评分

function UserComment(cont,pageInfo,shopInfo){
    var existPager=false;
    var me=this;
    if (pageInfo){
        this.pageSize=pageInfo.size;
        this.pageIndex=pageInfo.index;
    }
    if (shopInfo){
        this.shopId=shopInfo.id;
        this.shopName=shopInfo.name;
    }
    this.create=function(arge){
        _argements=['userId','shopName','score','content','creationTime']
        arge=arge?arge:{};
        for (var i=0;i<_argements.length;i++){arge[_argements[i]]=(arge[_argements[i]]?arge[_argements[i]]:'')}
        var container=D.createElement('div');
        //if (existPager){
            //$(container).insertBefore($(cont).find('.pager'));
        //}else{
            cont.appendChild(container);
        //}
        container.className='eachShopComment';
        container.innerHTML='<div class="commentator"></div><div class="infos"></div><div class="mainComment"><div class="grade"></div><div class="commentText"></div></div>';
        var infos=$(container).children('div:eq(1)');
        var mainComment=$(container).children('div:eq(2)');
        var grade=mainComment.find('div:eq(0)');
        var content=mainComment.find('div:eq(1)');
        infos.html(this.createInfos(arge));
        grade.html(this.createGrade(arge));
        content.html(this.createCommentText(arge));
    }
    this.clearComment=function(){
        $(cont).children('div').remove();
    }
    this.initPager=function(count){
        this.commentCount=count;
        var pageCount=Math.ceil(this.commentCount/this.pageSize);
        var p=D.createElement('div');
        cont.appendChild(p);
        p.className='pager';
        p=$(p);
        p.append('<span>'+this.pageIndex+'/'+pageCount+'页 </span>');
        p.append('<span></span>');
        var pages=$(p).find('span:eq(1)');
        for(var i=0;i<pageCount;i++){
            pages.append(' <a href="#nogo" '+(this.pageIndex==(i+1)?'class=thisPage':'')+' >'+(i+1)+'</a> ');
        }
        pages.find('a').click(function(){
            pages.find('a').removeClass('thisPage');
            me.requestComment(parseInt(this.innerHTML));
            $(this).addClass('thisPage');
            location.href='#shopCommentLink';
        });
        if (this.pageIndex-1>=1){
            //alert('a');
            var prev=D.createElement('a');
            prev.href='#nogo';
            prev.innerHTML='上一页';
            prev.onclick=function(){me.requestComment(me.pageIndex-1)}
            $(prev).prependTo(pages);
            location.href='#shopCommentLink';
        }
        if (me.pageIndex<=Math.floor(me.commentCount/me.pageSize)){
            var next=D.createElement('a');
            next.href='#nogo';
            next.innerHTML='下一页';
            next.onclick=function(){me.requestComment(me.pageIndex+1);location.href='#shopCommentLink';}
            $(next).appendTo(pages);
        }
        p.append('<span>跳到第 <input id="userCommentPageInput" type="text" class="text" maxlength="3" size=3 /> 页 <input id="userCommentPageButton" type="button" value="GO" /></span>')
        p.find('#userCommentPageButton').click(function(){
            if (parseInt(p.find('#userCommentPageInput').val())>0&&parseInt(p.find('#userCommentPageInput').val())<=Math.ceil(me.commentCount/me.pageSize))
                me.requestComment(p.find('#userCommentPageInput').val())
            return false
        })
        existPager=true;
    }
    this.requestComment=function(newIndex){
        if(newIndex) this.pageIndex=newIndex;
        me.clearComment()
        $.get('/services/commentHandler.ashx',{'shopId':this.shopId,'pagesize':this.pageSize,'pageIndex':this.pageIndex},function(data){
                if ($(data).find('comments').attr('TotalRow')<1) return false;
                var comments=$(data).find('comment'),shopName=this.shopName;
                for (var i=0;i<comments.length;i++){
                    me.create({'userId':comments.eq(i).attr('creatorId'),'shopName':shopName,'score':comments.eq(i).attr('grade'),'content':comments.eq(i).attr('content'),'creationTime':comments.eq(i).attr('creationTime')});
                }
                me.initPager($(data).find('comments').attr('TotalRow'));
            },'xml');
    }
}
UserComment.prototype=UserComment;
UserComment.createInfos=function(j){return '<a href="#" target="_blank" class="blue2" >'+j.userId+'</a>  评<a href="#" target="_blank" class="black12">'+j.shopName+'</a> '+j.creationTime }

UserComment.createGrade=function(j){
    var re='';
    for(var i=0;i<parseInt(j.score);i++){
        re+='<img src="/Images/gray_star04.gif" width="16" height="15" />';
    }
    return '评分：'+re;
}

UserComment.createCommentText=function(j){return j.content}

var HomepageFavorite = {

        //设为首页
        Homepage: function() {
            if (document.all) {
                document.body.style.behavior = 'url(#default#homepage)';
                document.body.setHomePage(window.location.href);
            }
            else if (window.sidebar) {
                if (window.netscape) {
                    try {
                        netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                    }
                    catch (e) {
                        alert("该操作被浏览器拒绝，如果想启用该功能，请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true");
                        //history.go(-1);   //这里我用firefox测试的时候出错，我把它注释掉，改成 return false;
                        return false;
                    }
                }
                var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
                prefs.setCharPref('browser.startup.homepage', window.location.href);
            }
        },

        //加入收藏
        Favorite: function Favorite(sURL, sTitle) {
            try {
                window.external.addFavorite(sURL, sTitle);
            }
            catch (e) {
                try {
                    window.sidebar.addPanel(sTitle, sURL, "");
                }
                catch (e) {
                    alert("加入收藏失败,请手动添加.");
                }
            }
        }
    }
	
	// JavaScript Document
jQuery.fn.anchorGoWhere = function(options){
	var obj = jQuery(this);
	var defaults = {target:1, timer:1000};
	var o = jQuery.extend(defaults,options);
	/*
	var scrollPos;
	if(typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') { 
		scrollPos = document.documentElement; 
	}else if (typeof document.body != 'undefined') { 
		scrollPos = document.body; 
	}*/

	obj.each(function(i){
		jQuery(obj[i]).click(function(){
			var _rel = jQuery(this).attr("href").substr(1);
			switch(o.target){
				case 1: 
					var targetTop = jQuery("#"+_rel).offset().top;
					jQuery("html,body").animate({scrollTop:targetTop}, o.timer);
					break;
				case 2:
					var targetLeft = jQuery("#"+_rel).offset().left;
					jQuery("html,body").animate({scrollLeft:targetLeft}, o.timer);
					break;
			}
			return false;
		});
	});
};
