﻿var DealJs = {};
DealJs.namespace = function(str){
	var arr = str.split("."),o=DealJs;
	for(i=(arr[0] == "DealJs")?1:0;i<arr.length;i++){
		o[arr[i]]=o[arr[i]] || {};
		o=o[arr[i]];
	}
}

//=======================================================
//  功能类别
//  PAUL
//  lovelium@gmail.com , QQ 65885512
//  2011-02-25
//=======================================================
DealJs.namespace("JS");
DealJs.JS.Title = "DealJsUI";
DealJs.JS.playID = 1;
DealJs.JS.playrighttime;
DealJs.JS.playlefttime;
DealJs.JS.swichtime;
DealJs.JS.timeOutleft = 0;
DealJs.JS.timeOutRight = 0;
DealJs.JS.Author = "Paul";
DealJs.JS.Host = "dealcms.com";
DealJs.JS.AuthorEmail = "lovelium@gmail.com";
DealJs.JS.ImgPath = "../DealJs/";
DealJs.JS.Itself = function(){};
DealJs.JS.HiddenScroll = true;
DealJs.JS.mouseStart=function(){};
DealJs.JS.divStart=function(){};
DealJs.JS.rightStart=function(){};
DealJs.JS.bottomStart=function(){};
//判断兼容
DealJs.JS.isIE = navigator.userAgent.toLowerCase().indexOf("msie") != -1;
DealJs.JS.isIE6 = navigator.userAgent.toLowerCase().indexOf("msie 6.0") != -1;
DealJs.JS.isGecko = navigator.userAgent.toLowerCase().indexOf("gecko") != -1;
DealJs.JS.isQuirks = document.compatMode == "BackCompat";

DealJs.JS.UI={  
        $E:function(){
            this.getTopLevelWindow = function(){
	            var pw = window;
	            while(pw!=pw.parent){pw = pw.parent;}
	            return pw;
                }
        },
        $:function(obj){return (typeof obj=='object'?obj:document.getElementById(obj));},
        $$:function(obj){return (typeof obj=='object'?obj.parentNode:this.$(obj).parentNode);},        
        HiddenScroll:function()
        {
            DealJs.JS.PE.GoTop();
	        var $es = new this.$E();
    	    
            var pw = $es.getTopLevelWindow();
            var doc = pw.document;
            var pwbody=doc.getElementsByTagName(DealJs.JS.isQuirks?"BODY":"HTML")[0];
	        pwbody.style.overflow="hidden";//禁止出现滚动条
        },
        ShowScroll:function()
        {
            var $es = new this.$E();
    	    
            var pw = $es.getTopLevelWindow();
            var doc = pw.document;
            var pwbody=doc.getElementsByTagName(DealJs.JS.isQuirks?"BODY":"HTML")[0];
	        pwbody.style.overflow="auto";//禁止出现滚动条
        },
        getTrueBodyHeight:function(){
            return Math.max(document.body.scrollHeight,window.screen.availWidth);
        },
        Switchanimation:function(eleID,style,length,Showflag)
        {
            eleID=this.$(eleID);
            Showflag = typeof Showflag!='undefined'?Showflag:false;
            //eleID 操作对像
            //style 样式方向 top buttom left right
            //length 移动长度
            if(eleID.style.display!="")
            {
                eleID.style.display =""
            }
            var myleftpost = DealJs.JS.PE.getEleLeft(eleID);  
            var mytoppost = DealJs.JS.PE.getEleTop(eleID);  
            
            DealJs.JS.swichtime=setInterval(function(){DealJs.JS.UI.animaDiv(eleID,10,style,myleftpost,mytoppost,length,Showflag)},10);           
            
        },
        animaDiv:function(eleID,geNum,style,myleftpost,mytoppost,length,Showflag)
        {            
            switch(style)
            {                
                case "left":
                if(DealJs.JS.PE.getEleLeft(eleID)>parseInt(myleftpost)-parseInt(length))
                {
                    eleID.style.left = (DealJs.JS.PE.getEleLeft(eleID)-geNum)+"px";
                    clearInterval(DealJs.JS.swichtime);
                    DealJs.JS.swichtime=setInterval(function(){DealJs.JS.UI.animaDiv(eleID,geNum,"left",myleftpost,mytoppost,length,Showflag)},10);
                    
                }else
                {
                     clearInterval(DealJs.JS.swichtime);
                     if(Showflag)
                       eleID.style.display="none";
                }
                break;
                case "right":
                if(DealJs.JS.PE.getEleLeft(eleID)< parseInt(myleftpost)+parseInt(length))
                {
                    eleID.style.left = (DealJs.JS.PE.getEleLeft(eleID)+parseInt(geNum))+"px";
                    clearInterval(DealJs.JS.swichtime);
                    DealJs.JS.swichtime=setInterval(function(){DealJs.JS.UI.animaDiv(eleID,geNum,"right",myleftpost,mytoppost,length,Showflag)},10);
                }else
                {
                     clearInterval(DealJs.JS.swichtime);
                     if(Showflag)
                       eleID.style.display="none";
                }
                break;
                case "top":
                if(DealJs.JS.PE.getEleTop(eleID)>parseInt(mytoppost)-parseInt(length))
                {
                    eleID.style.top = (DealJs.JS.PE.getEleTop(eleID)-parseInt(geNum))+"px";
                    clearInterval(DealJs.JS.swichtime);
                    DealJs.JS.swichtime=setInterval(function(){DealJs.JS.UI.animaDiv(eleID,geNum,"top",myleftpost,mytoppost,length,Showflag)},10);
                }else
                {
                     clearInterval(DealJs.JS.swichtime);
                     if(Showflag)
                       eleID.style.display="none";
                }
                break;
                case "buttom":
                if(DealJs.JS.PE.getEleTop(eleID)<parseInt(mytoppost)+parseInt(length))
                {
                    eleID.style.top = (DealJs.JS.PE.getEleTop(eleID)+parseInt(geNum))+"px";
                    clearInterval(DealJs.JS.swichtime);
                    DealJs.JS.swichtime=setInterval(function(){DealJs.JS.UI.animaDiv(eleID,geNum,"buttom",myleftpost,mytoppost,length,Showflag)},10);
                }else
                {
                     clearInterval(DealJs.JS.swichtime);
                     if(Showflag)
                       eleID.style.display="none";
                }
                break;
            }
        },
        CloseDiv:function()
        {
            
            if(DealJs.JS.HiddenScroll)
	        {
	            this.ShowScroll();
	        }
    	    
	        if(this.$("zhezhao"))
	        {
	            this.deleteDiv(this.$("zhezhao"));
	        }
	        if(this.$("DealJsUI_box"))
	        {
	            this.deleteDiv(this.$("DealJsUI_box"));
	        }
	        if(this.$("dealJS_baseDiabox"))
	        {
	            this.deleteDiv(this.$("dealJS_baseDiabox"));
	        }
	        
	        if(DealJs.JS.UI.$("lightakevideo"))
	            if(DealJs.JS.UI.$("lightakevideo").style.display=="none")
                    DealJs.JS.UI.$("lightakevideo").style.display="block";
        },
        deleteDiv:function(eleID){
            var Div=this.$(eleID);
            Div.parentNode.removeChild(Div);
        },
        Popboxlevel:function()
        {
            if(this.$("dealJS_popBox"))
            {
                this.deleteDiv("dealJS_popBox");
            }
        },
        Popbox:function(eleID,width,innerHtml)
        {
            var tempStyle = "left";
            var poaddress = 0;

            if(DealJs.JS.PE.getEleLeft(eleID)<(document.body.clientWidth/3))
            {
                tempStyle = "left";
                poaddress = (width/3)/2;
                
            }else if(DealJs.JS.PE.getEleLeft(eleID)<(document.body.clientWidth*2/3))
            {
                tempStyle = "center";
                poaddress = (width/3);
            }else
            {
                tempStyle = "right";
                poaddress = parseInt(width)-parseInt((width/3)/2);
             }
            
            var objdiv = document.createElement("DIV");
            var objname="dealJS_popBox";
            objdiv.id = "dealJS_popBox";
            objdiv.style.top =DealJs.JS.PE.getEleTop(eleID)+25;
            objdiv.style.left = DealJs.JS.PE.getEleLeft(eleID)-width/2+(width/3/2);
             objdiv.style.background = "none";
            objdiv.style.width = width+"px";
            objdiv.style.position = "absolute";
            objdiv.style.zIndex="9999";
            
            var tempTxt = "";
            //tempTxt+="<div style=\"overflow:hidden;\">";
            tempTxt+="    <div style=\" position:absolute; margin-top:-10px; margin-left:"+poaddress+"px;\"><img src=\"./image/top_arr.png\" /></div>";
            tempTxt+="    <div style=\"overflow:hidden; height:8px;\">";
            tempTxt+="        <div style=\"float:left; background:url(./image/top_left.png) left top no-repeat; width:8px; height:9px;\"></div>";
            tempTxt+="        <div style=\"zoom:1; overflow:hidden;\">";
            tempTxt+="            <div style=\"float:right; background:url(./image/top_right.png) left top no-repeat; width:8px; height:9px;\"></div>";
            tempTxt+="            <div style=\"height:8px; background:url(./image/top_center.png) left top repeat-x; zoom:1; overflow:hidden;\"></div>";
            tempTxt+="        </div>";
            tempTxt+="    </div>";
            tempTxt+="    <div style=\"overflow:hidden; margin:0px;\">";
            tempTxt+="        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"overflow:hidden; margin:0px;\">";
            tempTxt+="            <tr>";
            tempTxt+="                <td style=\"width:8px; background:url(./image/silder_left.png) repeat-y;\"></td>";
            tempTxt+="                <td style=\"text-align:left;background:#ffffff; font-size:12px; line-height:160%\">"+innerHtml+"</td>";
            tempTxt+="                <td style=\"width:8px; background:url(./image/silder_right.png) repeat-y;\"></td>";
            tempTxt+="            </tr>";
            tempTxt+="        </table>";
            tempTxt+="    </div>";
            tempTxt+="    <div>";
            tempTxt+="        <div style=\"float:left; background:url(./image/buttom_left.png) left top no-repeat; width:8px; height:9px;\"></div>";
            tempTxt+="        <div style=\"zoom:1; overflow:hidden;\">";
            tempTxt+="            <div style=\"float:right; background:url(./image/buttom_right.png) left top no-repeat; margin-right:1px; width:8px; height:9px;\"></div>";
            tempTxt+="            <div style=\"height:8px; background:url(./image/buttom_center.png) left top repeat-x; zoom:1; overflow:hidden;\"></div>";
            tempTxt+="        </div>";
            tempTxt+="    </div>";
            //tempTxt+="</div>";
            objdiv.innerHTML = tempTxt;
            document.body.appendChild(objdiv);

        },
        CreateBSMark:function(width,height){
            //建立遮罩层
            var objdiv = document.createElement("DIV");
            var objname="dealJS_baseDiabox";
            objdiv.id = "dealJS_baseDiabox";
            objdiv.style.top = "50%";
            objdiv.style.left = "50%";
            objdiv.style.width = width+"px";
            objdiv.style.height = height+"px";
            objdiv.style.position = "fixed";
            objdiv.style.background = "none";
            objdiv.style.marginTop = "-"+(height/2)+"px";
            objdiv.style.marginLeft = "-"+(width/2)+"px";
            objdiv.style.zIndex="999999";
  
            document.body.appendChild(objdiv);
        },
        CreateBSbox:function(width,height,innerhtml,style,isBgmark)
        {
            if(!this.$("dealJS_baseDiabox"))
            {
            width = typeof width!='undefined'?width:300;
            height = typeof height!='undefined'?height:200;
            isBgmark = typeof isBgmark!='undefined'?isBgmark:false;
            if(isBgmark)
            {
                this.CreateMarke();
            }
            
            this.CreateBSMark(width,height);

            var tempTxt = "";
            tempTxt +="<div style=\"background-color:#000000; height:100%; width:100%; opacity:.6; filter:alpha(opacity=60); -moz-opacity:.6; -moz-border-radius: 5px;\"></div>";
            tempTxt +="<div style=\"text-align:center; height:"+(height-20)+"px; width:"+(width-20)+"px; top:10px; left:10px; position:absolute; background-color:#ffffff; -moz-border-radius: 1px;\">";
            tempTxt +="<div style=\"position:relative; margin-top:-20px; margin-left:"+(width-30)+"px;\"><img src=\""+DealJs.JS.ImgPath+"image/close.png\" style=\"cursor:pointer;\" onclick=\"DealJs.JS.UI.CloseDiv();\" /></div>";
            tempTxt +="    <div style=\"text-align:left; margin:0px 5px;\">";
            tempTxt +=innerhtml;
            tempTxt +="    </div>";
            
            switch(style)
            {
                case "none": 
                //默认情况下没有按钮               
                break;
                case "confirm":
                  tempTxt += "<div style=\" position:relative; margin-top:125px; height:25px; overflow:hidden; background-color:#e2e2e2; text-align:center;\">";
                  tempTxt += "  <div style=\"background:url("+DealJs.JS.ImgPath+"image/Cancle.png) left top no-repeat; width:51px; height:22px; line-height:22px; margin:2px auto; text-align:center; cursor:pointer; font-size:12px;\" onclick=\"DealJs.JS.UI.CloseDiv();\">确认</div>";
                  tempTxt += "</div>";
                break;
                case "warn":
                  tempTxt += "<div style=\" position:relative; margin-top:125px; height:25px; overflow:hidden; background-color:#e2e2e2; text-align:center;\">";
                  tempTxt += "  <div style=\"background:url("+DealJs.JS.ImgPath+"image/Cancle.png) left top no-repeat; width:51px; height:22px; line-height:22px; margin:2px auto; text-align:center; cursor:pointer; font-size:12px;\" onclick=\"DealJs.JS.UI.CloseDiv();\">关闭</div>";
                  tempTxt += "</div>";
                break;
                case "input":
                  tempTxt += "<div style=\" position:relative; margin-top:125px; height:25px; overflow:hidden; background-color:#e2e2e2; text-align:center;\">";
                  tempTxt += "  <div style=\"background:url("+DealJs.JS.ImgPath+"image/Cancle.png) left top no-repeat; width:51px; height:22px; line-height:22px; margin:2px auto; text-align:center; cursor:pointer; font-size:12px;\" onclick=\"DealJs.JS.UI.CloseDiv();\">确定</div>";
                  tempTxt += "</div>";
                break;
                
            }
            tempTxt +="</div>";            
             this.$("dealJS_baseDiabox").innerHTML = tempTxt;
            }
            
        },
        CreateMarke:function(){
            //建立遮罩层
            var objdiv = document.createElement("DIV");
            var objname="zhezhao";
            objdiv.id = "zhezhao";
            objdiv.style.top = "0px";
            objdiv.style.left = "0px";
            objdiv.style.width = "100%";
            objdiv.style.height = this.getTrueBodyHeight()+"px";
            objdiv.style.position = "absolute";
            objdiv.style.background = "#000000";
            objdiv.style.zIndex="99999";
            objdiv.style.filter = "alpha(opacity=50)";
            objdiv.style.opacity = "0.5";      
            document.body.appendChild(objdiv);
        },
        CreateDiv:function(isarr,arrtitle,isbtn,digtype,isdre,innerHtml){
            //isarr 是否显示警告
            //isbtn 是否显示按钮
            //digtype 是何类型, 1,警告框,显示OK 2,确认框,显示 OK CANCLE,3输入框.显示OK显返回值 4,login
            //isdre 是否可以拉长
            //innerHtml 显示HTML内容
            
            var arrimg = "";
            //建立对话框层
            var objdiv = document.createElement("DIV");
            var objname="DealJsUI_box";
            objdiv.id = "DealJsUI_box";
            objdiv.style.top = "0px";
            objdiv.style.left = "0px";
            objdiv.style.width = "600px";
            objdiv.style.height = "auto";
            objdiv.style.position = "absolute";
            objdiv.style.zIndex="999999";
            var screenWidth = document.body.clientWidth;
            var screenHeight = document.body.clientHeight;
            var top = 150;
            var left = (screenWidth-600)/2;
            
            switch(digtype)
	        {
	            case 1:
	                arrimg = "<img src=\""+DealJs.JS.ImgPath+"image/tan.png\" style=\" margin:auto 10px;\" align=\"absmiddle\"/> ";
	            break;
	            case 2:
	                arrimg = "<img src=\""+DealJs.JS.ImgPath+"image/wen.png\" margin:auto 10px;\" align=\"absmiddle\"/> ";
	            break;
	            case 3:
	                arrimg = "<img src=\""+DealJs.JS.ImgPath+"image/wen.png\" margin:auto 10px;\" align=\"absmiddle\"/> ";
	            break;
	            case 4:
	                arrimg = "<img src=\""+DealJs.JS.ImgPath+"image/tan.png\" margin:auto 10px;\" align=\"absmiddle\"/> ";
	            break;	    
	        }
           
            var tempTxt="    	<div id=\"DealJsUI_box\" style=\"position:absolute; width:600px; z-index:333;\">";
	        tempTxt +="	<div style=\"overflow:hidden;\">";
	        tempTxt +="		<div style=\"height:37px; width:8px; background:url("+DealJs.JS.ImgPath+"image/top-left.png) no-repeat; float:left;\"></div>";
	        tempTxt +="		<div style=\"height:37px; overflow:hidden; zoom:1;\">";
	        tempTxt +="			<div style=\"float:right; height:37px; width:8px; background:url("+DealJs.JS.ImgPath+"image/top-right.png) no-repeat;\"></div>";
	        tempTxt +="			<div id=\"dealJs_dropan\" onmousedown=\"DealJs.JS.PE.DropDiv(event)\" style=\"height:37px; overflow:hidden; zoom:1; background:url("+DealJs.JS.ImgPath+"image/top-center.png) repeat-x;  cursor:move; line-height:37px;\">";
	        tempTxt +="			    <div style=\"margin:0px; padding:0px; float:left; display:inline;\"><img src=\""+DealJs.JS.ImgPath+"image/heardpic.jpg\" width=\"24px\" height=\"23px\" align=\"absmiddle\"/> " +DealJs.JS.Host+"</div>";
	        tempTxt +="			    <div style=\"float:right; margin:0px; padding:0px; display:inline;\"><img src=\""+DealJs.JS.ImgPath+"image/btn.png\" id=\"close\" style=\"margin-top:4px; border:0px; cursor:pointer;\" onclick=\"DealJs.JS.UI.CloseDiv();\"/></div>";
	        tempTxt +="			</div>";
	        tempTxt +="		</div>";
	        tempTxt +="	</div>";
	        if(isarr)
	        {
	        tempTxt +="	<div style=\"overflow:hidden;\">";
	        tempTxt +="		<div style=\"float:left; height:79px; width:8px; background:url("+DealJs.JS.ImgPath+"image/tips-left.png) no-repeat;\"></div>";
	        tempTxt +="		<div style=\" height:79px; overflow:hidden; zoom:1;\">";
	        tempTxt +="			<div style=\"height:79px; width:8px; background:url("+DealJs.JS.ImgPath+"image/tips-right.png) no-repeat; float:right;\"></div>";
	        tempTxt +="			<div style=\"height:79px; overflow:hidden; zoom:1; background:url("+DealJs.JS.ImgPath+"image/tips-center.png) repeat-x; line-height:79px;font-size:12px; text-align:left;\"> "+ arrimg +arrtitle+"</div>";
	        tempTxt +="		</div>";
	        tempTxt +="	</div>";
	        }
	        tempTxt +="	<div style=\"overflow:hidden;\">";
	        tempTxt +="	    <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
            tempTxt +="          <tr>";
            tempTxt +="            <td style=\"width:8px; background:url("+DealJs.JS.ImgPath+"image/content-left.png) repeat-y;\"></td>";
            tempTxt +="            <td style=\" width:auto; background-color:White;\">";
            tempTxt +="                <div style=\"margin:10px; text-align:left;\">";
	        tempTxt += innerHtml;
	        tempTxt +="			    </div>";
            tempTxt +="            </td>";
            tempTxt +="            <td style=\"width:8px; background:url("+DealJs.JS.ImgPath+"image/content-right.png) repeat-y;\">&nbsp;</td>";
            tempTxt +="          </tr>";
            tempTxt +="        </table>";
                    
    	    if(isbtn)
    	    {
	        tempTxt +="	</div>";
	        tempTxt +="	<div style=\"overflow:hidden;\">";
	        tempTxt +="		<div style=\"float:left; height:27px; width:8px; background:url("+DealJs.JS.ImgPath+"image/under-left.png) no-repeat;\"></div>";
	        tempTxt +="		<div style=\"height:27px; overflow:hidden; zoom:1;\">";
	        tempTxt +="			<div style=\"float:right; height:27px; width:8px; background:url("+DealJs.JS.ImgPath+"image/under-right.png) no-repeat;\"></div>";
	        tempTxt +="			<div style=\" height:27px; overflow:hidden; zoom:1; background-color:#DCDCDC; line-height:27px; text-align:center; padding-top:2px;\">";	    
	        switch(digtype)
	        {
	            case 1:
	                tempTxt +="			    <span style=\"background:url("+DealJs.JS.ImgPath+"image/OK.png) no-repeat;text-align:center; float:right; display:block; width:51px; height:22px; line-height:22px; text-align:center; overflow:hidden; margin:0px 5px; font-size:12px;cursor:pointer;\" onclick=\"DealJs.JS.UI.CloseDiv();\">OK</span>";
	            break;
	            case 2:
	                tempTxt +="			    <span style=\"background:url("+DealJs.JS.ImgPath+"image/Cancle.png) no-repeat; line-height:22px;  float:right;display:block; width:51px;height:22px; line-height:22px; text-align:center; overflow:hidden; margin:0px 5px; text-align:center; font-size:12px;cursor:pointer;\" onclick=\"DealJs.JS.UI.CloseDiv();\">Cancle</span>";
	                tempTxt +="			    <span style=\"background:url("+DealJs.JS.ImgPath+"image/OK.png) no-repeat;text-align:center;  float:right; display:block; width:51px;height:22px; line-height:22px; text-align:center; overflow:hidden; margin:0px 5px; font-size:12px;cursor:pointer;\" onclick=\"DealJs.JS.UI.CloseDiv();\">OK</span>";
	            break;
	            case 3:
	                tempTxt +="			    <span style=\"background:url("+DealJs.JS.ImgPath+"image/OK.png) no-repeat;text-align:center; float:right;  display:block; width:51px;height:22px; line-height:22px; text-align:center; overflow:hidden; margin:0px 5px; font-size:12px;cursor:pointer;\" onclick=\"DealJs.JS.UI.CloseDiv();\">OK</span>";
	            break;
	            case 4:
	                
	            break;	    
	        }
	        tempTxt +="			</div>";
	        tempTxt +="		</div>";
	        tempTxt +="	</div>";
	        }
    	    
	        tempTxt +="	<div style=\"overflow:hidden;\">";
	        tempTxt +="		<div style=\"float:left;height:17px; width:8px; background:url("+DealJs.JS.ImgPath+"image/footer.png) no-repeat;\"></div>";
	        tempTxt +="		<div style=\"height:17px; overflow:hidden; zoom:1;\">";
	        tempTxt +="			<div id=\"right\" style=\"float:right;height:17px; width:8px; background:url("+DealJs.JS.ImgPath+"image/footer-right.png) no-repeat;\"></div>";
	        tempTxt +="			<div id=\"bottom\" style=\" height:17px; overflow:hidden; zoom:1; background:url("+DealJs.JS.ImgPath+"image/footer-center.png) repeat-x;\">";
    	    
	        if(isdre)
	        {
	        tempTxt +="			    <div style=\" float:right;\"><img style=\"position:absolute; margin-left:-8px; cursor: se-resize;\" src=\""+DealJs.JS.ImgPath+"image/drop.png\" /></div>";
	        }
    	    
	        tempTxt +="			</div>";
	        tempTxt +="		</div>";
	        tempTxt +="	</div>";
	        tempTxt +="</div>";
	        objdiv.innerHTML=tempTxt;
    	    
	        if(DealJs.JS.HiddenScroll)
	        {
	            this.HiddenScroll();
	        }
    	    
	        document.body.appendChild(objdiv);
	        this.$("DealJsUI_box").style.left=left+"px";
		    this.$("DealJsUI_box").style.top=top+"px";
        },
        MessageBox:function(Mtype,arrTitle,isMark,innerHtml)
        {        
            if(isMark)
                this.CreateMarke();
                
            switch(Mtype)
	        {
	            case "alert":
	                this.CreateDiv(true,arrTitle,true,1,false,innerHtml);
	            break;
	            case "sure":
	                this.CreateDiv(true,arrTitle,true,2,false,innerHtml);
	            break;
	            case "return":
	                this.CreateDiv(true,arrTitle,true,3,false,innerHtml);
	            break;
	            case "login":
	                this.CreateDiv(true,arrTitle,false,4,false,innerHtml);
	            break;
	        }
        }
    }


    DealJs.JS.PE = {
        $: function(obj) { return (typeof obj == 'object' ? obj : document.getElementById(obj)); },
        $$: function(obj) { return (typeof obj == 'object' ? obj.parentNode : this.$(obj).parentNode); },
        $Tarname: function(eleID, targetName) { return eleID.getElementsByTagName(targetName); },
        getElementByClassName: function(clssName, eleID, elm) {
            var arrCls = [];
            var seeElm = typeof eleID == 'object' ? eleID : $ID(eleID);
            var rexCls = new RegExp('(^|\\\\s)' + clssName + '(\\\\s|$)', 'i');
            var lisElm = seeElm.getElementsByTagName(elm);
            for (var i = 0; i < lisElm.length; i++) {
                var evaCls = lisElm[i].className;
                if (evaCls.length > 0 && (evaCls == clssName || rexCls.test(evaCls))) {
                    arrCls.push(lisElm[i]);
                }
            }
            return arrCls;
        },
        CategoryList: function(eleID, spanName, cssName, defaultcssName) {
            var arrayli = this.$(eleID).getElementsByTagName(spanName); //获取菜单数组
            for (i = 0; i < arrayli.length; i++) {
                arrayli[i].onmouseover = function() {
                    this.className = cssName;
                }
                arrayli[i].onmouseout = function() {
                    this.className = defaultcssName;
                }
            }
        },
        delay: function(ProcessingName, tetime) {
            clearTimeout(DealJs.JS.Itself.time);
            DealJs.JS.Itself.time = setTimeout(function() { eval("" + ProcessingName + ""); }, tetime);
        },
        TabAnimate: function(TabAnimatebox, TopLabelcss, TopLabelname, onClick, TopControlLabelname, TopControlCss, BodyLabelcss, BodyLabelname, BodyInnerLabelcss, BodyInnerLabelname) {
            //TabAnimatebox 主体容器
            //TopLabelcss 控制区样式名
            //TopLabelname 控制区容器标签
            //TopControlLabelname 控制区容器标签
            //TopControlCss 控制区选中样式
            //BodyLabelcss 主体区样式名
            //BodyLabelname 主体容器标签
            //BodyInnerLabelcss 主体分层标签样式名
            //BodyInnerLabelname 主体分层标签名
            var topPan = this.getElementByClassName(TopLabelcss, this.$(TabAnimatebox), TopLabelname);
            var bodyPan = this.getElementByClassName(BodyLabelcss, this.$(TabAnimatebox), BodyLabelname);
            var tempTpan = topPan[0].getElementsByTagName(TopControlLabelname);
            var tempBTpan = this.getElementByClassName(BodyInnerLabelcss, bodyPan[0], BodyInnerLabelname);

            for (var i = 0; i < tempTpan.length; i++) {
                tempTpan[i]._index = i;
                if (onClick) {
                    tempTpan[i].onclick = function() {
                        for (var j = 0; j < tempTpan.length; j++) {
                            tempTpan[j].className = tempTpan[j].className.replace(TopControlCss, "");
                            tempBTpan[j].style.display = "none";
                        }
                        tempBTpan[this._index].style.display = "block";
                        this.className = this.className + TopControlCss;
                    };
                } else {
                    tempTpan[i].onmouseover = function() {
                        for (var j = 0; j < tempTpan.length; j++) {
                            tempTpan[j].className = tempTpan[j].className.replace(TopControlCss, "");
                            tempBTpan[j].style.display = "none";
                        }
                        tempBTpan[this._index].style.display = "block";
                        this.className = this.className + TopControlCss;
                    };
                }
            }
            tempTpan[0].className = tempTpan[0].className + TopControlCss;
            tempBTpan[0].style.display = "block";
        },
        getHTTPRequestObject: function() {
            //xmlcheck
            var xmlhttp = false;
            try {
                xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (E) { xmlhttp = false; }
            }
            if (!xmlhttp && typeof XMLHttpRequest != 'undefined')
            { xmlhttp = new XMLHttpRequest(); }
            return xmlhttp;
        },
        AjaxFun: function(Url, queryString, method, functName, token) {
            var xmlhttp = this.getHTTPRequestObject();
            if (xmlhttp) {
                xmlhttp.onreadystatechange = function() {
                    if (xmlhttp.readyState == 4) {
                        if (xmlhttp.status == 200) {
                            if (typeof token != 'undefined' && token != null)
                                eval("" + functName + "('" + xmlhttp.responseText + "',token)"); //处理成功返回数据
                            else
                                eval("" + functName + "('" + xmlhttp.responseText + "')"); //处理成功返回数据
                        }
                    }
                }
            }
            if (method == 1) {
                xmlhttp.open("GET", Url, true);
                xmlhttp.setRequestHeader("If-Modified-Since", "0");
                xmlhttp.send(null);
            }
            else {
                userInfoo = queryString;
                xmlhttp.open("post", Url, true);
                xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
                xmlhttp.send(userInfoo);
            }
        },
        //检测区
        CheckuserAgent: function() {
            var tempUserAgent = "unknow";
            if (navigator.userAgent.indexOf("IE") > 0) {
                tempUserAgent = "IE";
            }
            if (isFirefox = navigator.userAgent.indexOf("Firefox") > 0) {
                tempUserAgent = "Firefox";
            }
            if (isSafari = navigator.userAgent.indexOf("Safari") > 0) {
                tempUserAgent = "Safari";
            }
            if (isCamino = navigator.userAgent.indexOf("Camino") > 0) {
                tempUserAgent = "Camino";
            }
            if (isMozilla = navigator.userAgent.indexOf("Gecko") > 0) {
                tempUserAgent = "Gecko";
            }
            return tempUserAgent;
        },
        isEmail: function(strEmail, defaultcart) {
            if (strEmail == defaultcart) {
                return false;
            } else {
                if (strEmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
                    return true;
                else
                    return false;
            }
        },
        //获取区
        getEleTop: function(obj) {
            var tempObj = this.$(obj);
            var t = tempObj.offsetTop;
            while (tempObj = tempObj.offsetParent)
            { t += tempObj.offsetTop; }
            return t;
        },
        getEleLeft: function(obj) {
            var tempObj = this.$(obj);
            var l = tempObj.offsetLeft;
            while (tempObj = tempObj.offsetParent)
            { l += tempObj.offsetLeft; }
            return l;
        },
        getCookieVal: function(cookiename) {
            //获取COOKIE值
            var firstCharPos, lastCharPos;
            var theBigCookie = document.cookie;
            firstCharPos = theBigCookie.indexOf(cookiename);
            if (firstCharPos != -1) {
                firstCharPos += cookiename.length + 1;
                lastCharPos = theBigCookie.indexOf(';', firstCharPos);
                if (lastCharPos == -1) lastCharPos = theBigCookie.length;
                return theBigCookie.substring(firstCharPos, lastCharPos);
            }
            else
            { return false; }
        },
        trim: function(str, type) {
            switch (type) {
                case 'all':
                    return str.replace(/(^\s*)|(\s*$)/g, "");
                    break;
                case 'left':
                    return str.replace(/(^\s*)/g, "");
                    break;
                case 'right':
                    return str.replace(/(\s*$)/g, "");
                    break;
            }
        },
        //设置区
        SetCss: function(obj, cssName) {
            //设置样式
            this.$(obj).className = cssName;
        },
        Setvisibility: function(obj, flag) {
            if (flag)
                this.$(obj).style.display = "block";
            else
                this.$(obj).style.display = "none";
        },
        setCookie: function(cookiename, cookievalue, cookiepath, datalong) {
            //设置COOKIE
            var days = 30;
            var tempcookiepath = "/";
            if (typeof datalong != 'undefined' && !isNaN(parseInt(datalong)))
                days = datalong;
            if (typeof datalong != 'undefined' && !isNaN(parseInt(cookiepath.length)))
                tempcookiepath = cookiepath;

            var expire_date = new Date();
            var ms_from_now = days * 24 * 60 * 60 * 1000;
            expire_date.setTime(expire_date.getTime() + ms_from_now);
            var expire_string = expire_date.toGMTString();
            document.cookie = cookiename + "=" + cookievalue + ";expires=" + expire_string + ";path=" + tempcookiepath;
        },
        GoTop: function(left, top) {
            //返回当前页某一坐标点
            left = (typeof left == 'undefined' || left == null) ? 0 : left;
            top = (typeof top == 'undefined' || top == null) ? 0 : top;

            window.scrollTo(left, top);
        },
        GoUrl: function(url) {
            //跳转页面,为空时跳转本页
            if (typeof url != 'undefined' && !isNaN(parseInt(url.length)))
                parent.document.location.href = url;
            else
                parent.document.location.href = window.location.href;
        },
        StartDrop: function(ev) {
            //开始拖动
            var DiogleBox = DealJs.JS.UI.$("DealJsUI_box");

            var DropPan = DealJs.JS.UI.$("dealJs_dropan");

            var oEvent = ev || event;

            var l = oEvent.clientX - DealJs.JS.mouseStart.x + DealJs.JS.divStart.x;
            var t = oEvent.clientY - DealJs.JS.mouseStart.y + DealJs.JS.divStart.y;
            if (l < 0) {
                l = 0;
            }
            else if (l > document.documentElement.clientWidth - DiogleBox.offsetWidth) {
                l = document.documentElement.clientWidth - DiogleBox.offsetWidth;
            }
            if (t < 0) {
                t = 0;
            }
            else if (t > document.documentElement.clientHeight - DiogleBox.offsetHeight) {
                t = document.documentElement.clientHeight - DiogleBox.offsetHeight;
            }

            DiogleBox.style.left = l + "px";
            DiogleBox.style.top = t + "px";
        },
        StopDrop: function(ev) {
            //放开拖动
            var DiogleBox = DealJs.JS.UI.$("DealJsUI_box");
            var DropPan = DealJs.JS.UI.$("dealJs_dropan");

            if (DropPan.releaseCapture) {
                DropPan.onmousemove = null;
                DropPan.onmouseup = null;
                DropPan.releaseCapture();
            }
            else {
                document.removeEventListener("mousemove", this.StartDrop, true);
                document.removeEventListener("mouseup", this.StopDrop, true);
                ev.stopPropagation();
            }
        },
        DropDiv: function(ev) {
            //拖动DIV
            var DiogleBox = DealJs.JS.UI.$("DealJsUI_box");
            var DropPan = DealJs.JS.UI.$("dealJs_dropan");
            var oEvent = ev || event;

            DealJs.JS.mouseStart.x = oEvent.clientX;
            DealJs.JS.mouseStart.y = oEvent.clientY;

            DealJs.JS.divStart.x = DiogleBox.offsetLeft;
            DealJs.JS.divStart.y = DiogleBox.offsetTop;

            if (DropPan.setCapture) {
                DropPan.onmousemove = this.StartDrop;
                DropPan.onmouseup = this.StopDrop;
                DropPan.setCapture();
            }
            else {
                document.addEventListener("mousemove", this.StartDrop, true);
                document.addEventListener("mouseup", this.StopDrop, true);
                ev.stopPropagation();
            }
        }, levelglide: function(LevelEleID, autopaly, MouseClick, EleNum, LeftControl, RightControl, btn_leonstyle, btn_levelstyle, LevelBox, LevelBoxWidth, PalyTime, LevelBoxLabelName, LevelBoxLabelcss) {
            /*
            LevelEleID          主容器ID
            autopaly            是否自动翻放
            EleNum              主窗口显示条目数,4 为显示四款商品
            LeftControl         左边控制ID
            RightControl        右边控制ID
            LevelBox            主显示容器ID
            LevelBoxWidth       主显示容器宽度
            PalyTime            移动时间
            LevelBoxLabelName   显示内容容器标签名
            LevelBoxLabelcss    显示内容容器标签类名
            */
            var LevelEleID_now = this.$(LevelEleID);
            var LeftControl_now = this.$(LeftControl);
            var RightControl_now = this.$(RightControl);
            var LevelBox_now = this.$(LevelBox);

            var boxNum = 0;
            if (typeof LevelBoxLabelcss != 'undefined' && !isNaN(parseInt(LevelBoxLabelcss.length))) {
                boxNum = this.LevelBoxLabelcss.length > 0 ? DealJs.JS.PE.getElementByClassName(LevelBoxLabelcss, LevelBox_now, LevelBoxLabelName).length : DealJs.JS.PE.$Tarname(LevelBox_now, LevelBoxLabelName).length;
            } else {
                boxNum = DealJs.JS.PE.$Tarname(LevelBox_now, LevelBoxLabelName).length
            }
            this.resetLevelglide(LeftControl_now, RightControl_now, boxNum, EleNum, btn_leonstyle, btn_levelstyle);

            if (MouseClick) {
                LeftControl_now.onclick = function() {
                    if (DealJs.JS.playID > 1) {
                        DealJs.JS.playID--;
                        DealJs.JS.PE.resetLevelglide(LeftControl_now, RightControl_now, boxNum, EleNum, btn_leonstyle, btn_levelstyle);
                        DealJs.JS.playlefttime = setInterval(function() { DealJs.JS.PE.MoveLeft(RightControl_now, LeftControl_now, LevelBox_now, LevelBoxWidth, PalyTime, boxNum, EleNum, MouseClick, btn_leonstyle, btn_levelstyle) }, PalyTime);
                        LeftControl_now.onclick = "";
                    }
                }

                RightControl_now.onclick = function() {
                    DealJs.JS.playID = parseInt(DealJs.JS.playID) + 1;
                    DealJs.JS.PE.resetLevelglide(LeftControl_now, RightControl_now, boxNum, EleNum, btn_leonstyle, btn_levelstyle);
                    DealJs.JS.playrighttime = setInterval(function() { DealJs.JS.PE.MoveRight(RightControl_now, LeftControl_now, LevelBox_now, LevelBoxWidth, PalyTime, boxNum, EleNum, MouseClick, btn_leonstyle, btn_levelstyle) }, PalyTime);
                    RightControl_now.onclick = "";
                }
            } else {
                LeftControl_now.onmouseover = function() {
                    DealJs.JS.playID--;
                    DealJs.JS.PE.resetLevelglide(LeftControl_now, RightControl_now, boxNum, EleNum, btn_leonstyle, btn_levelstyle);
                    DealJs.JS.playlefttime = setInterval(function() { DealJs.JS.PE.MoveLeft(RightControl_now, LeftControl_now, LevelBox_now, LevelBoxWidth, PalyTime, boxNum, EleNum, MouseClick, btn_leonstyle, btn_levelstyle) }, PalyTime);
                    LeftControl_now.onmouseover = "";
                }

                RightControl_now.onmouseover = function() {
                    DealJs.JS.playID = parseInt(DealJs.JS.playID) + 1;
                    DealJs.JS.PE.resetLevelglide(LeftControl_now, RightControl_now, boxNum, EleNum, btn_leonstyle, btn_levelstyle);
                    DealJs.JS.playrighttime = setInterval(function() { DealJs.JS.PE.MoveRight(RightControl_now, LeftControl_now, LevelBox_now, LevelBoxWidth, PalyTime, boxNum, EleNum, MouseClick, btn_leonstyle, btn_levelstyle) }, PalyTime);
                    RightControl_now.onmouseover = "";
                }
            }

        }, resetLevelglide: function(leftpan, rightpan, totalNum, eleNum, btn_leonstyle, btn_levelstyle) {
            if (typeof btn_leonstyle, btn_levelstyle != 'undefined' && !isNaN(parseInt(btn_leonstyle, btn_levelstyle.length)) && btn_leonstyle, btn_levelstyle != "") {
                if (DealJs.JS.playID == 1)
                    leftpan.className = leftpan.className.replace(btn_leonstyle, btn_levelstyle);
                else {
                    leftpan.className = leftpan.className.replace(btn_levelstyle, btn_leonstyle);
                    leftpan.style.cursor = "pointer";
                }


                if (DealJs.JS.playID * eleNum >= totalNum)
                    rightpan.className = rightpan.className.replace(btn_leonstyle, btn_levelstyle);
                else {
                    rightpan.className = rightpan.className.replace(btn_levelstyle, btn_leonstyle);
                    rightpan.style.cursor = "pointer";

                }

            } else {
                if (DealJs.JS.playID == 1)
                    leftpan.style.visibility = "hidden";
                else {
                    leftpan.style.visibility = "";
                    leftpan.style.cursor = "pointer";
                }

                if (DealJs.JS.playID * eleNum > totalNum)
                    rightpan.style.visibility = "hidden";
                else {
                    rightpan.style.visibility = "";
                    rightpan.style.cursor = "pointer";
                }
            }
        }, MoveRight: function(RightControl, LeftControl, LevelBox, LevelBoxWidth, PalyTime, boxNum, EleNum, MouseClick, btn_leonstyle, btn_levelstyle) {

            LevelBox.scrollLeft = LevelBox.scrollLeft + parseFloat(LevelBoxWidth / 20);
            DealJs.JS.timeOutRight++;
            if (DealJs.JS.timeOutRight >= 20) {
                clearInterval(DealJs.JS.playrighttime);
                DealJs.JS.timeOutRight = 0;

                if (MouseClick) {
                    RightControl.onclick = function() {
                        if (DealJs.JS.playID * EleNum < boxNum) {
                            DealJs.JS.playID = parseInt(DealJs.JS.playID) + 1;
                            DealJs.JS.PE.resetLevelglide(LeftControl, RightControl, boxNum, EleNum, btn_leonstyle, btn_levelstyle);
                            DealJs.JS.playrighttime = setInterval(function() { DealJs.JS.PE.MoveRight(RightControl, LeftControl, LevelBox, LevelBoxWidth, PalyTime, boxNum, EleNum, MouseClick, btn_leonstyle, btn_levelstyle) }, PalyTime);
                            RightControl.onclick = "";
                        }
                    }
                } else {
                    RightControl.onmouseover = function() {
                        DealJs.JS.playID = parseInt(DealJs.JS.playID) + 1;
                        DealJs.JS.PE.resetLevelglide(LeftControl, RightControl, boxNum, EleNum, btn_leonstyle, btn_levelstyle);
                        DealJs.JS.playrighttime = setInterval(function() { DealJs.JS.PE.MoveRight(RightControl, LeftControl, LevelBox, LevelBoxWidth, PalyTime, boxNum, EleNum, MouseClick, btn_leonstyle, btn_levelstyle) }, PalyTime);
                        RightControl.onmouseover = "";
                    }
                }

            }

        }, MoveLeft: function(RightControl, LeftControl, LevelBox, LevelBoxWidth, PalyTime, boxNum, EleNum, MouseClick, btn_leonstyle, btn_levelstyle) {
            LevelBox.scrollLeft = LevelBox.scrollLeft - parseFloat(LevelBoxWidth / 20);
            DealJs.JS.timeOutleft++;
            if (DealJs.JS.timeOutleft >= 20) {
                clearInterval(DealJs.JS.playlefttime);
                DealJs.JS.timeOutleft = 0;

                if (MouseClick) {
                    LeftControl.onclick = function() {
                        if (DealJs.JS.playID > 1) {
                            DealJs.JS.playID--;
                            DealJs.JS.PE.resetLevelglide(LeftControl, RightControl, boxNum, EleNum, btn_leonstyle, btn_levelstyle);
                            DealJs.JS.playlefttime = setInterval(function() { DealJs.JS.PE.MoveLeft(RightControl, LeftControl, LevelBox, LevelBoxWidth, PalyTime, boxNum, EleNum, MouseClick, btn_leonstyle, btn_levelstyle) }, PalyTime);
                            LeftControl.onclick = "";
                        }
                    }
                } else {
                    LeftControl.onmouseover = function() {
                        DealJs.JS.playID--;
                        DealJs.JS.PE.resetLevelglide(LeftControl, RightControl, boxNum, EleNum, btn_leonstyle, btn_levelstyle);
                        DealJs.JS.playlefttime = setInterval(function() { DealJs.JS.PE.MoveLeft(RightControl, LeftControl, LevelBox, LevelBoxWidth, PalyTime, boxNum, EleNum, MouseClick, btn_leonstyle, btn_levelstyle) }, PalyTime);
                        LeftControl.onmouseover = "";
                    }
                }

            }
        }, delayPlay: function() {
            //自动播放
        }, myFocus: function(eleID, ShoTxt, eleIDwidht, eleIDheight) {
            eval(function(p, a, c, k, e, d) { e = function(c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) { d[e(c)] = k[c] || e(c) } k = [function(e) { return d[e] } ]; e = function() { return '\\w+' }; c = 1 }; while (c--) { if (k[c]) { p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]) } } return p } ('g o={$:7(Y){h 13.2z(Y)},$$:7(T,6){h(2v 6==\'2m\'?6:8.$(6)).19(T)},$$1j:7(T,6){g N=[],n=0,a=6.19(T);K(g i=0;i<a.P;i++){f(a[i].1Z==6)N.11(a[i]);f(a[i].19(T).P){n=a[i].19(T).P}i=i+n;n=0}h N},$I:7(6,n){h 8.$$1j(\'I\',8.$$1j(\'X\',6)[n])},1k:7(t,b,c,d){h c*t/d+b},2r:7(t,b,c,d){h c*(t/=d)*t*t*t+b},1T:7(t,b,c,d){h-c*((t=t/d-1)*t*t*t-1)+b},2q:7(t,b,c,d){h((t/=d/2)<1)?(c/2*t*t*t*t+b):(-c/2*((t-=2)*t*t*t-2)+b)},9:7(6,9){h(+[1,])?1c.2p(6,1L)[9]:6.2x[9]},y:7(6,v){f(v!=V){v=v>x?x:(v<0?0:v);6.9.2u="1y(E="+v+")";6.9.E=(v/x)}G h(!+[1,])?((6.1A.1y)?6.1A.1y.E:x):((6.9.E)?6.9.E*x:x)},J:7(6,L,1e,1Q,Q,H){g y=L==\'E\'?1m:F,1w=8.9(6,L);f(y&&6.9.1d==\'1o\'){6.9.1d=\'\';8.y(6,0)}g t=0,b=y?8.y(6):2y(1w==\'w\'?0:1w),c=1e-b,d=1Q||2o,1i=Q||\'1T\',m=c>0?\'2t\':\'2s\';f(6[L+\'S\'])14(6[L+\'S\']);6[L+\'S\']=1z(7(){f(y&&t<d){o.y(6,1Y[m](o[1i](++t,b,c,d)))}G f(!y&&t<d){6.9[L]=1Y[m](o[1i](++t,b,c,d))+\'q\'}G{f(y&&1e==0){6.9.1d=\'1o\'}14(6[L+\'S\']);H&&H.2l(6)}},10);h 8},2n:7(6,M,H){8.J(6,\'E\',x,M==V?20:M,\'1k\',H);h 8},2C:7(6,M,H){8.J(6,\'E\',0,M==V?20:M,\'1k\',H);h 8},2D:7(6,1s,M,1C,H){K(g p 1K 1s)8.J(6,p,1s[p],M,1C,H);h 8},2E:7(6){g J=[\'2B\',\'2k\',\'22\',\'2w\',\'B\',\'A\',\'E\'];K(g i=0;i<J.P;i++)f(6[J[i]+\'S\'])14(6[J[i]+\'S\']);h 8},1v:7(p){g 12=[],R=13.1X(\'9\');R.Q=\'1V/12\';f(p.1r)8.1r([8.$(p.Y)],p.9+\'2F\');f(p.B){12.11(\'.\'+p.9+\' *{29:0;23:0;2a:0;2e-9:1o;}.\'+p.9+\'{25:2i;B:\'+p.B+\'q;A:\'+p.A+\'q;1l:1p;2g:2j/1.5 2c,2b,2f-2d;24:#27;}.\'+p.9+\' .1P{25:2h;z-k:28;B:x%;A:x%;2A:#2M;1V-3k:1J;23-22:\'+0.3*p.A+\'q;24:#27 3l(3g://38.37.3c/3d/3e/3b-1P.36) 1J \'+0.4*p.A+\'q 39-3f;}.\'+p.9+\' .3n{B:\'+p.B+\'q;A:\'+p.A+\'q;1l:1p;}.\'+p.9+\' .16 I,.\'+p.9+\' .16 I 1h,.\'+p.9+\' .16-3m{B:\'+p.B+\'q;A:\'+p.1I+\'q!1M;3h-A:\'+p.1I+\'q!1M;1l:1p;}\')}f(R.1H){R.1H.3i=12.1g(\'\')}G{R.W=12.1g(\'\')}g 1t=8.$$(\'3j\',13)[0];1t.21(R,1t.2G)},3a:7(l){f(1c.1N){(7(){34{o.$(l.Y).D=l.9;o.1v(l)}2O(e){1S(2P.2Q,0)}})();1c.1N(\'2R\',7(){o[l.9](l)})}　　G{13.26("2N",7(){o.$(l.Y).D=l.9;o.1v(l)},F);1c.26(\'35\',7(){o[l.9](l)},F)}},2I:7(6,u){g s=[],n=8.$I(6,0).P,1u=u.P;K(g j=0;j<1u;j++){s.11(\'<X 1U=\'+u[j]+\'>\');K(g i=0;i<n;i++){s.11(\'<I>\'+(u[j]==\'1u\'?(\'<a>\'+(i+1)+\'</a>\'):(u[j]==\'16\'?8.$I(6,0)[i].W.2H(/\\>(.|\\n|\\r)*?(\\<\\/a\\>)/i,\'>\'+(8.$$(\'Z\',6)[i]?8.$$(\'Z\',6)[i].2J:\'\')+\'</a>\'):(u[j]==\'1R\'?\'<Z 1W=\'+(8.$$(\'Z\',6)[i].2K("1R")||8.$$(\'Z\',6)[i].1W)+\' />\':\'\')))+\'<1h></1h></I>\')};s.11(\'</X>\')};6.W+=s.1g(\'\')},1r:7(N,u){g U=13.1X(\'U\');U.D=u;N[0].1Z.21(U,N[0]);K(g i=0;i<N.P;i++)U.2L(N[i])},2S:7(6,u){6.W=\'<X 1U=\'+u+\'>\'+6.W+\'</X>\'},2T:7(1B,1F){h"18.30(8.$$(\'U\',18)[0]);g O=7(17){("+1B+")();f (k == n - 1&&17==V) k = -1;g 1O = 17 != V ? 17: k + 1;("+1F+")();k=1O;};O(k);f(l.w!==F) g w=1z(7(){O()},t);18.1x=7(){f(w) 14(w);};18.1f=7(){f(w) w=1z(7(){O()},t);}"},31:7(C,Q,1a){h"K (g j=0;j<n;j++){"+C+"[j].k=j;f("+Q+"==\'32\'){"+C+"[j].1x=7(){f(8.D!=\'33\') 8.D=\'1D\'};"+C+"[j].1f=7(){f(8.D==\'1D\') 8.D=\'\'};"+C+"[j].1E=7(){f(8.k!=k) {O(8.k);h F}};}G f("+Q+"==\'2Z\'){"+C+"[j].1x=7(){g 15=8;f("+1a+"==0){f(15.k!=k){O(15.k);h F}}G "+C+".d=1S(7(){f(15.k!=k) {O(15.k);h F}},"+(1a==V?x:1a)+")};"+C+"[j].1f=7(){2Y("+C+".d)};}G{2U(\'o 不支持这样的事件 \\"\'+"+Q+"+\'\\"\');2V;}}"},2W:7(6,1q,1G){h"g 1b=F;"+6+".1E=7(){8.D=8.D==\'"+1q+"\'?\'"+1G+"\':\'"+1q+"\';f(!1b){14(w);w=1L;1b=1m;}G{w=1m;1b=F;}}"},2X:7(1n){K(g p 1K 1n)8[p]=1n[p]}};', 62, 210, '||||||obj|function|this|style||||||if|var|return|||index|par|||myFocus||px||||cla||auto|100|opa||height|width|arrStr|className|opacity|false|else|fn|li|animate|for|prop|speed|arr|run|length|type|oStyle|Timer|tag|div|undefined|innerHTML|ul|id|img||push|css|document|clearInterval|self|txt|idx|box|getElementsByTagName|delay|_stop|window|display|val|onmouseout|join|span|st|_|linear|overflow|true|fnObj|none|hidden|cla1|wrap|params|oHead|num|initCSS|offset|onmouseover|alpha|setInterval|filters|fn1|easing|hover|onclick|fn2|cla2|styleSheet|txtHeight|center|in|null|important|attachEvent|next|loading|spd|thumb|setTimeout|easeOut|class|text|src|createElement|Math|parentNode||insertBefore|top|padding|background|position|addEventListener|fff|9999|margin|border|Geneva|Verdana|serif|list|sans|font|absolute|relative|12px|right|call|object|fadeIn|50|getComputedStyle|easeInOut|easeIn|floor|ceil|filter|typeof|bottom|currentStyle|parseInt|getElementById|color|left|fadeOut|slide|stop|_wrap|firstChild|replace|addList|alt|getAttribute|appendChild|666|DOMContentLoaded|catch|arguments|callee|onload|wrapIn|switchMF|alert|break|toggle|extend|clearTimeout|mouseover|removeChild|bind|click|current|try|load|gif|zhongsou|nethd|no|setting|28236|com|wtimg|i_41956|repeat|http|line|cssText|head|align|url|bg|pic'.split('|'), 0, {}))
            myFocus.extend({
                mF_dealmove: function(par) {
                    var box = this.$(par.id);
                    this.addList(box, ['txt', 'num']); this.wrap([this.$$('ul', box)[0], this.$$('ul', box)[1]], 'swt');
                    var swt = this.$$('div', box)[1], txt = this.$li(swt, 1), num = this.$li(box, 0);
                    var index = 0, n = txt.length, t = par.time * 1000;
                    //CSS
                    var txtH = par.txtHeight == 'default' ? 34 : par.txtHeight;
                    swt.style.width = par.width * n + 'px';
                    //PLAY
                    eval(this.switchMF(function() {
                        num[index].className = '';
                    }, function() {
                        txt[next].style.top = 0 + 'px';
                        myFocus.slide(swt, { left: -par.width * next }, 50, 'easeOut', function() { myFocus.slide(txt[next], { top: -txtH }) });
                        num[next].className = 'current';
                    }))
                    eval(this.bind('num', 'par.trigger', par.delay));
                }
            });

            myFocus.setting({
                id: eleID, //焦点图ID
                style: 'mF_dealmove', //风格样式
                time: 3, //切换时间间隔
                trigger: 'mouseover', //触发切换模式：'click'(点击)/'mouseover'(悬停)
                txtHeight: ShoTxt == true ? 'default' : '0', //文字层高度设置，'default'为默认高度，0为隐藏
                width: eleIDwidht, //图片宽(大图)，注意:整个焦点图的宽等于或大于图片宽
                height: eleIDheight, //图片高(大图)，注意同上
                wrap: true//是否需要外套背景边框，true（是）/false（否）
            });
        }

    }






