/*
迷你弹窗 Version 1.1
兼容：IE6+ 火狐 Opera 谷歌
作者：456vv
网站：www.456Vv.com
Mail：123@456Vv.com
*/
function VBox(id,d,hash){
	var me=this;
	this.Event={};//设置跟踪事件
	(new Vv.Model).init(this.Event);//创建跟踪事件
	this.DefaultId="VBox"
	this.NewId=this.DefaultId+"-"+id;
	this.document_=d;
	this.seting={
		url:'',//地址
		title:'VBox',//标题
		noTitle:false,//不显示标题 true是 false否
		showBg:true,//显示背景 false不 true是
		showRun:false,//是否自动显示 false否 true是
		showMin:true,//显示小按扭
		width:300,//宽
		height:30,//高
		position:"relative",//relative absolute
		top:"auto",//Y
		left:"auto",//X
        opacity: 50,//背景透明度
        setInit: function(s){return s},//这里可以设置初始事件
		timeout:0,//设置过期时间
		outClose:true,//设置时间过期后 flase隐藏 true关闭
		stepHide:true,//关闭时逐渐隐藏特效
		drag:true,//true可以拖动 false不可以拖动
		html: '',//HTML显示内容
		type:'html',//类型 html/iframe
		overflow:"visible"//hidden固定高度 visible内容高度 scroll固定高带滚动条（自动宽）
		}
	Vv.json.extend(this.seting,hash);
	this.seting.width=parseInt(this.seting.width);
	this.seting.height=parseInt(this.seting.height);

	this.posX=null;//X位置
	this.posY=null;//Y位置
	this.newWidth=0;//每次宽变化
	this.newHeight=0;//每次高变化
	if(!window.VBox_ZIndex){window.VBox_ZIndex=9999;};//创建层次
//	this.VBox_CBg_Obj;//VBox 背景层对象
//	this.VBox_CDiv_Obj=null;//VBox 外围层对象
//	this.VBox_Top_Obj=null;//VBox 顶部层对象
//	this.VBox_Title_Obj=null;//VBox 标题层对象
//	this.VBox_Close_Obj=null;//VBox 关闭层对象
//	this.VBox_Restose_Obj=null;//VBox 恢复层对象（最大化/最小化）
//	this.VBox_Min_Obj=null;//VBox 最小化
//	this.VBox_Content_Obj=null;//VBox 内容层对象

//	this.ScrollBar=null;//滚动条对象变量
//	this.VBox_Scroll_l_Obj=null;//内容对象-滚动条
//	this.VBox_Scroll_r_Obj=null;//滚动条对象-滚动条

	//创建层
	this.createBox=function(){
		//<div id="VBoxBg"></div>
		//<div id="VBox" class="VBox Alpha30">
		//<div class="VBox-top"><div class="VBox-Title">标题</div><div class="VBox-Restose"><div class="VBox-Close"></div><div class="VBox-Min"></div></div></div>
		//<div class="VBox-Content"></div>
		//</div>
		if(Vv.G(this.NewId)){
			var temp3435=this.Event.read("createBox","exist",{"me":this});
			if(typeof temp3435=="undefined"||temp3435===false){return;}
		}//判断是关闭层还是隐藏层

		//背景层
		var CBg=Vv.CElement("div",this.document_.body);
		CBg.id=this.NewId+"-Bg";//VBox-自定义ID-Bg
		CBg.style.background	= "#fff";
		CBg.style.position		= "absolute";
		CBg.style.top			= "0px";
		CBg.style.left			= "0px";
		window.VBox_ZIndex++;
		CBg.style.zIndex		= window.VBox_ZIndex;
		CBg.style.display		= "none";
		this.VBox_CBg_Obj		= CBg;
		Vv.addEvent(CBg,"click",function(){
			me.ShowPosition();
			Vv.endEvent();
		});//开启点击背景重新计算位置

		//主层
		var CDiv=Vv.CElement("div",this.document_.body);
		CDiv.id=this.NewId;//VBox-自定义ID
		CDiv.className="VBox";//VBox
		CDiv.style.width	= this.seting.width+"px";
		CDiv.style.height	= this.seting.height+"px";

		CDiv.style.top		= "0px";
		CDiv.style.left		= "0px";
		window.VBox_ZIndex++;
		CDiv.style.zIndex	= window.VBox_ZIndex;
		CDiv.style.display	= "block";
		this.VBox_CDiv_Obj	= CDiv;

		//层顶部
		var CTop=Vv.CElement("div",CDiv);
		CTop.id=this.NewId+"-Top";//VBox-自定义ID-Top
		CTop.className="VBox-Top";//VBox-Top
		CTop.style.display	= (this.seting.noTitle)?"none":"block";
		CTop.style.width	= this.seting.width+"px";
		this.VBox_Top_Obj	= CTop;
		CTop.onmousedown=function(){
			return me.DownDiv(this);
		}//点击层
		CTop.onmouseup=function(){
			return me.UpDiv(this);
		}//松开层

		//层标题
		var CTitle=Vv.CElement("div",CTop);
		CTitle.id=this.NewId+"-Title";//VBox-自定义ID-title
		CTitle.className="VBox-Title";//VBox-Title
		CTitle.style.width	= this.seting.width-70+"px";//70是 关闭+恢复 按扭宽度
		CTitle.innerHTML	= this.seting.title;
		this.VBox_Title_Obj	= CTitle;

		//关闭|恢复
		var CRestose=Vv.CElement("div",CTop);
		CRestose.id=this.NewId+"Restose";//VBox-自定义ID-Restose
		CRestose.className="VBox-Restose";//VBox-Restose
		this.VBox_Restose_Obj=CRestose;

		//默认缩小
		var CMin=Vv.CElement("div",CRestose);
		CMin.id=this.NewId+"-Min";//VBox-自定义ID-Min
		CMin.className="VBox-Min";//VBox-Min
		if(!this.seting.showMin){CMin.style.visibility="hidden";};
		this.VBox_Min_Obj=CMin;
		Vv.addEvent(CMin,"mouseover",function(){Vv.addClassName(this,"VBox-Min-Hover")});
		Vv.addEvent(CMin,"mouseout",function(){Vv.removeClassName(this,"VBox-Min-Hover")});
		Vv.addEvent(CMin,"mousedown",function(){
			me.HideDiv();
			Vv.endEvent();
		});//开启隐藏层

		//关闭层
		var CClose=Vv.CElement("div",CRestose);
		CClose.id=this.NewId+"-Close";//VBox-自定义ID-Close
		CClose.className="VBox-Close";//VBox-Close
		this.VBox_Close_Obj=CClose;
		Vv.addEvent(CClose,"mouseover",function(){Vv.addClassName(this,"VBox-Close-Hover")});
		Vv.addEvent(CClose,"mouseout",function(){Vv.removeClassName(this,"VBox-Close-Hover")});
		Vv.addEvent(CClose,"mousedown",function(){
			me.CloseDiv();
			Vv.endEvent();
		});//开启关闭层

		//内容层
		var CContent=Vv.CElement("div",CDiv);
		CContent.id=this.NewId+"-Content";//VBox-自定义ID-Content
		CContent.className="VBox-Content";//VBox-Content
		if(!this.seting.noTitle){CContent.style.borderTop= "none";}
		this.VBox_Content_Obj=CContent;

		return this.Event.read("createBox","back",{"me":this});
	};
	//计算层显示位置
	this.ShowPosition=function(){
		var scroll=Vv.scrollOffset(me.document_.documentElement);
		//背景
		var SW	= Math.max(scroll.SW,scroll.CW);
		var SH	= Math.max(scroll.SH,scroll.CH);
		me.VBox_CBg_Obj.style.width=SW+"px";
		me.VBox_CBg_Obj.style.height=SH+"px";
		//VBox
		var TH	= (me.seting.noTitle)? 0 : me.VBox_Top_Obj.clientHeight;//标题高
		var OW	= (me.newWidth)? me.newWidth : me.seting.width;
		var OH	= (me.newHeight)? me.newHeight : me.seting.height;
		var SL=(scroll.CW-OW)/2;
		var ST=(scroll.CH-(OH+TH))/2;
		SL=parseInt((me.seting.left=="auto")?((SL<10)?0:SL):me.seting.left);//>
		ST=parseInt((me.seting.top=="auto")?((ST<10)?0:ST):me.seting.top);//>
		if(me.seting.position=="relative"){
			SL+=scroll.SL;
			ST+=scroll.ST;
		};
		me.VBox_CDiv_Obj.style.left=SL+"px";//>
		me.VBox_CDiv_Obj.style.top=ST+"px";//>
		return me.Event.read("ShowPosition","back",{"me":me});
	};
	//计算层大小
	this.SizeDivVisible=function(obj){//无限显示内容层大小
		var scroll=Vv.scrollOffset(obj);
		var SW	= Math.max(scroll.SW,scroll.CW);
		var SH	= Math.max(scroll.SH,scroll.CH);
		var TH	= ((this.seting.noTitle)?0:this.VBox_Top_Obj.clientHeight);//标题高
		this.newWidth=SW;
		this.newHeight=SH;
		obj.style.width=SW+"px";
		obj.style.height=SH+"px";

		this.VBox_Top_Obj.style.width=SW+"px";
		this.VBox_Title_Obj.style.width=SW-70+"px";
		this.VBox_CDiv_Obj.style.width=SW+"px";
		this.VBox_CDiv_Obj.style.height=TH+SH+"px";
		return this.Event.read("SizeDivVisible","back",{"me":this,"obj":obj});
	};
	this.SizeDivDefault=function(obj){//默认初始设置内容层大小
		if(!this.seting.noTitle){
			this.VBox_CDiv_Obj.style.height=this.seting.height+this.VBox_Top_Obj.clientHeight+"px";//标题高
		}
		this.newWidth		= this.seting.width;
		this.newHeight		= this.seting.height;
		obj.style.width		= this.newWidth+"px";
		obj.style.height	= this.newHeight+"px";
		obj.style.overflow	= "hidden";
		return this.Event.read("SizeDivDefault","back",{"me":this,"obj":obj});
	};
	//松开层
	this.UpDiv=function(obj){
		document.onmousemove	= null;
		obj.style.cursor		= "default";
	};
	//移动层
	this.MoveDiv=function(obj){
		var ev=Vv.srcEvent();
		var posX = (ev.event.clientX - this.posX);
		var posY = (ev.event.clientY - this.posY);
	    this.VBox_CDiv_Obj.style.left	= posX+ "px";
	    this.VBox_CDiv_Obj.style.top	= posY+ "px";
	    //记录拖动位置
		var scroll=Vv.scrollOffset(me.document_.documentElement);
	    this.seting.left= (this.seting.position=="absolute")?posX:posX-scroll.SL;
	    this.seting.top	= (this.seting.position=="absolute")?posY:posY-scroll.ST;

		return this.Event.read("MoveDiv","back",{"me":this,"obj":obj});
	};
	//点击层
	this.DownDiv=function(obj){
		if(!me.seting.drag){return;}//判断是否支持拖动
		if(this.VBox_CDiv_Obj.style.zIndex!=window.VBox_ZIndex){
			window.VBox_ZIndex++;
			this.VBox_CBg_Obj.style.zIndex	= window.VBox_ZIndex;
			window.VBox_ZIndex++;
			this.VBox_CDiv_Obj.style.zIndex	= window.VBox_ZIndex;
		};//点击层TITLE就设置到最顶
		obj.style.cursor="move";
		var ev=Vv.srcEvent();
	    this.posX = ev.event.clientX - parseInt(this.VBox_CDiv_Obj.style.left);
	    this.posY = ev.event.clientY - parseInt(this.VBox_CDiv_Obj.style.top);
		document.onmousemove = function(){me.MoveDiv(obj);};//开启移动层
	};
	//关闭层-清空
	this.CloseDiv=function(){
		if(me.Event.read("CloseDiv","front",{"me":me})===false){return;};
		me.ScrollBar=null;
		Vv.hide(me.VBox_CBg_Obj,me.seting.stepHide);
		Vv.hide(me.VBox_CDiv_Obj,me.seting.stepHide);
		var outT=me.seting.stepHide?500:0;//如果为真500毫秒后清除
		return setTimeout(function(){
			var DivBg	= me.VBox_CBg_Obj;
			var VDiv	= me.VBox_CDiv_Obj;
			DivBg.parentNode.removeChild(DivBg);
			VDiv.parentNode.removeChild(VDiv);
			return me.Event.read("CloseDiv","back",{"me":me});
		},outT);//一秒后删除-等渐变隐藏完必
	};
	//显示层
	this.ShowDiv=function(){
		this.createBox();//开启创建层
		if(this.Event.read("ShowDiv","front",{"me":this})===false){return;};
		Vv.addEvent(window,"resize",me.ShowPosition);
		if(this.seting.showBg){//是否支持背景层
			this.VBox_CBg_Obj.style.display	= "block";
			Vv.Alpha(this.VBox_CBg_Obj,this.seting.opacity);
		}
		this.VBox_CDiv_Obj.style.display = "block";
		Vv.AlphaBg(this.VBox_CDiv_Obj,[173,197,243,200])//379ACD40 [r,b,g,a]

		this.ContentDiv();//开启内容层
		this.ShowPosition();//开启计算层显示位置
		if(this.seting.timeout){
			(this.seting.outClose)?setTimeout(this.CloseDiv,this.seting.timeout):setTimeout(this.HideDiv,this.seting.timeout)
		}//计算关闭层时间
		return this.Event.read("ShowDiv","back",{"me":this});
	};
	//隐藏层
	this.HideDiv=function(){
		Vv.removeEvent(window,"resize",me.ShowPosition);
		if(me.Event.read("HideDiv","front",{"me":me})===false){return;};
		Vv.hide(me.VBox_CBg_Obj,me.seting.stepHide);
		Vv.hide(me.VBox_CDiv_Obj,me.seting.stepHide);
		return me.Event.read("HideDiv","back",{"me":me});
	};
	//设置监听CSS关闭层/隐藏层事件
	this.MonitorCss=function(Obj){
		var VBox_Hide=Vv.C("VBox_Hide","",Obj);
		for(var i=0;i<VBox_Hide.length;i++){Vv.addEvent_(VBox_Hide[i],"click",me.HideDiv);};
		var VBox_Close=Vv.C("VBox_Close","",Obj);
		for(var i=0;i<VBox_Close.length;i++){Vv.addEvent_(VBox_Close[i],"click",me.CloseDiv);};
		//>
	};
	//内容层
	this.ContentDiv=function(){
		var obj	= this.VBox_Content_Obj;
		var s	= this.seting;
		if(obj.innerHTML){
			switch(s.overflow.toLowerCase()){
				case "visible":this.SizeDivVisible(obj);break;
				case "scroll","hidden":this.SizeDivDefault(obj);break;
			};
			var temp131=this.Event.read("ContentDiv","exist",{"me":this});
			if(typeof temp131=="undefined"||temp131===false){return;};
		};//判断是否有内容了
		var html= this.seting.html;
		var url	= this.seting.url;
		switch(s.type.toLowerCase()){
			case "html":
				switch(s.overflow.toLowerCase()){
					case "visible":obj.innerHTML=html;this.SizeDivVisible(obj);break;
					case "hidden":obj.innerHTML=html;this.SizeDivDefault(obj);break;
					case "scroll":
						obj.innerHTML='<div class="Container"><div class="Container_L"><div id="'+this.NewId+'-l" class="Scroller-Container">'+html+'</div></div><div id="'+this.NewId+'-r" class="Scrollbar-Container"><div class="Scrollbar-Up"></div><div class="Scrollbar-Down"></div><div class="Scrollbar-Track" title="滚动条"><div class="Scrollbar-Handle"></div></div></div></div>';

						this.VBox_Scroll_l_Obj=Vv.G(this.NewId+'-l');//内容
						this.VBox_Scroll_r_Obj=Vv.G(this.NewId+'-r');//滚动条
						this.SizeDivDefault(obj);//计算层大小
						if(this.ScrollBar==null){//第一次创建滚动条对象
							this.VBox_Scroll_l_Obj.style.width=this.newWidth+"px";
							this.ScrollBar=me.scrollbar(this.VBox_Scroll_l_Obj,this.VBox_Scroll_r_Obj,this.newWidth,this.newHeight);
						}else{//第二次重置滚动条对象
							//this.ScrollBar[0].reset();
							//this.ScrollBar[1].reset();
						};
						if(me.Event.read("ContentDiv","htmlScroll",{"me":me,"obj":obj})===false){return;};
						break;
					default:;
				};
				if(me.Event.read("ContentDiv","htmlLoad",{"me":me,"obj":obj})===false){return;};
				this.MonitorCss(obj);//设置监听CSS关闭层/隐藏层事件
				break;
			case "iframe":
				var Ciframe			= document.createElement("iframe");
				Ciframe.id			= this.NewId+"-iframe";
				Ciframe.name		= "VBox-iframe";
				Ciframe.setAttribute("frameborder", "0", 0);
				Ciframe.src			= this.seting.url;
				Ciframe.style.width	= this.seting.width+"px";//默认宽度-否则显示乱七八糟
				Ciframe.style.height= this.seting.height+"px";//默认高度-否则显示乱七八糟
				Ciframe.scrolling	= "no";
				this.SizeDivDefault(obj);//计算层大小
				this.ShowPosition();//开启计算层显示位置

				switch(s.overflow.toLowerCase()){
					case "hidden":
						Vv.addEvent_(Ciframe,"load",function(){
							try{
								var iframe=Vv.getIframeDoc(Vv.G(this.id));
								if(me.Event.read("ContentDiv","iframeLoad",{"me":me,"obj":obj,"this_":Ciframe,"iframeContent":iframe})===false){return;};
								me.MonitorCss(iframe);//设置监听CSS关闭层/隐藏层事件
							}
							catch(e){Vv.error("跨域或者浏览器不支持。");return;}
						})
						obj.appendChild(Ciframe);
						break;
					case "visible":
						obj.appendChild(Ciframe);
						Vv.addEvent_(Ciframe,"load",function(){
							try{
								var iframe=Vv.getIframeDoc(Vv.G(this.id));
								var scroll=Vv.scrollOffset(iframe.body);
								var SW=Math.max(scroll.SW,parseInt(this.style.width));
								var SH=scroll.SH;
								var OW=Math.max(scroll.OW,parseInt(this.style.width));
								var OH=scroll.OH;
								if(!!Vv.BVersion("chrome")){SH=OH;}//谷歌浏览器无法正确得到自动高。

								obj.style.width=this.style.width=me.seting.width=SW+"px";
								obj.style.height=this.style.height=me.seting.height=OH+"px";
								me.SizeDivVisible(obj);//计算层大小
								me.ShowPosition();//开启计算层显示位置
								if(me.Event.read("ContentDiv","iframeLoad",{"me":me,"obj":obj,"this_":Ciframe,"iframeContent":iframe})===false){return;};
								me.MonitorCss(iframe);//设置监听CSS关闭层/隐藏层事件
							}
							catch(e){Vv.error("跨域或者浏览器不支持。");return;}
						});
						break;
					case "scroll":
						obj.innerHTML='<div class="Container"><div class="Container_L"><div id="'+this.NewId+'-l" class="Scroller-Container"></div></div><div id="'+this.NewId+'-r" class="Scrollbar-Container"><div class="Scrollbar-Up"></div><div class="Scrollbar-Down"></div><div class="Scrollbar-Track" title="滚动条"><div class="Scrollbar-Handle"></div></div></div></div>';
						this.VBox_Scroll_l_Obj=Vv.G(this.NewId+'-l');//内容
						this.VBox_Scroll_r_Obj=Vv.G(this.NewId+'-r');//滚动条
						this.VBox_Scroll_l_Obj.appendChild(Ciframe);

						//iframe加载完执行
						Vv.addEvent_(Ciframe,"load",function(){
							try{
								var iframe=Vv.getIframeDoc(Vv.G(this.id));
								var scroll=Vv.scrollOffset(iframe.body);
								var SW=Math.max(scroll.SW,parseInt(this.style.width));
								var SH=scroll.SH;
								if(!Vv.isIE){SW=(SW+10)}
								obj.style.width=this.style.width=SW+"px";
								me.VBox_Scroll_l_Obj.style.height=this.style.height=SH+"px";

								me.SizeDivVisible(obj);//计算层大小
								me.ShowPosition();//开启计算层显示位置
								if(me.ScrollBar==null){//第一次创建滚动条对象
									me.ScrollBar=me.scrollbar(me.VBox_Scroll_l_Obj,me.VBox_Scroll_r_Obj,me.newWidth,me.newHeight);
								}else{//第二次重置滚动条对象
									me.ScrollBar[0].reset();
									me.ScrollBar[1].reset();
								};
								if(me.Event.read("ContentDiv","iframeLoad",{"me":me,"obj":obj,"this_":Ciframe,"iframeContent":iframe})===false){return;};
								me.MonitorCss(iframe);//设置监听CSS关闭层/隐藏层事件
							}
							catch(e){Vv.error("跨域或者浏览器不支持。");return;}
						});
						if(me.Event.read("ContentDiv","iframeScroll",{"me":me,"obj":obj,"this_":Ciframe})===false){return;};

						//Ciframe.scrolling="yes";
						//me.ShowPosition();//开启计算层显示位置
						///obj.appendChild(Ciframe);
						break;
					default:;
				}
			default:;
		}
	};
	this.scrollbar=function (l,r,w,h){
		var scroller  = new jsScroller(l,w,h);
		var scrollbar = new jsScrollbar (r, scroller, true, this.scrollbarEvent);
		var scrollTween = new jsScrollerTween (scrollbar, true);
		scrollbar._scrollDist = 20;
		scrollTween.steps = [0,1,3,6,10,15,21,28,36,45,55,64,72,79,85,90,94,97,99,100];
		//补上IE6不支持的Css设置
		Vv.C("Scrollbar-Down","div",r)[0].style.top=h-15+"px";
		Vv.C("Scrollbar-Track","div",r)[0].style.height=h+"px";
		return [scroller,scrollbar,scrollTween];
	};
	this.scrollbarEvent=function (o,type) {
		if(type == "mousedown") {
			if (Vv.getClassName(o) == "Scrollbar-Track"){o.style.backgroundColor = "#C6C6C6";}//点击时
			else{o.style.backgroundColor = "#ff8000";}
		}else{
			if(Vv.getClassName(o) == "Scrollbar-Track"){o.style.backgroundColor = "#E3E3E3";}
			else{o.style.backgroundColor = "#A7C5EF";}
		}
	};
	//设置跟踪事件
	this.Set=function(){
	//	this.Event.add("createBox",{"exist":function(s){}});//{"me":this} me总对象
	//	this.Event.add("createBox",{"back":function(s){}});//{"me":this} me总对象
	//	this.Event.add("ShowDiv",{"front":function(s){}});//{"me":this} me总对象
	//	this.Event.add("ShowDiv",{"back":function(s){}});//{"me":this} me总对象
	//	this.Event.add("ContentDiv",{"exist":function(s){}});//{"me":this} me总对象(已经存在内容)
	//	this.Event.add("ContentDiv",{"htmlScroll":function(s){}});//{"me":me,"obj":obj} me总对象 obj内容层对象 CObj内容对象
	//	this.Event.add("ContentDiv",{"htmlLoad":function(s){}});//{"me":me,"obj":obj} me总对象 obj内容层对象(html加载完成)
	//	this.Event.add("ContentDiv",{"iframeLoad":function(s){}});//{"me":me,"obj":obj,"this_":Ciframe,"iframeContent":iframe} me总对象 obj内容层对象 this_本身对象 iframeContent本身对象内容(iframe加载完)
	//	this.Event.add("ContentDiv",{"iframeScroll":function(s){}});//{"me":me,"obj":obj,"this_":Ciframe,"iframeContent":iframe} me总对象 obj内容层对象 CObj内容对象 this_本身对象 iframeContent本身对象内容
	//	this.Event.add("HideDiv",{"front":function(s){}});//{"me":me} me总对象
	//	this.Event.add("HideDiv",{"back":function(s){}});//{"me":me} me总对象
	//	this.Event.add("ShowPosition",{"back":function(s){}});//{"me":me} me总对象
	//	this.Event.add("SizeDivVisible",{"back":function(s){}});//{"me":this,"obj":obj} me总对象 obj内容层对象
	//	this.Event.add("SizeDivDefault",{"back":function(s){}});//{"me":this,"obj":obj} me总对象 obj内容层对象
	//	this.Event.add("MoveDiv",{"back":function(s){}});//{"me":this,"obj":obj} me总对象 obj顶部层对象
	//	this.Event.add("CloseDiv",{"front":function(s){}});//{"me":me} me总对象
	//	this.Event.add("CloseDiv",{"back":function(s){}});//{"me":me} me总对象
	};
	//自启动
	this.Run=function(){
		me.Set(me)
		me.seting.setInit(me);
		me.ShowDiv();
	};
	//设置监听对象
	this.Monitor=function(s){
		var seting={Obj:window,Event:'load'};
		Vv.json.extend(seting,s);
		Vv.addEvent(seting.Obj,seting.Event,this.Run);
	};
	if(this.seting.showRun){
		Vv.addLoadEvent(this.Run);/*自启动*/
		return;
	};//判断是否是自启动
}

