var kop=1;
function ko(){
	if (kop==1)
	{
		document.getElementById("left").style.width=0;
		document.getElementById("left").style.display="none";
		document.getElementById("middle").style.left=0;
		document.getElementById("right").style.margin="0px 0px 0px 8px";
		kop=0;
	}
else
	{
		document.getElementById("left").style.width=207;
		document.getElementById("left").style.display="inline";
		document.getElementById("middle").style.left=207;
		document.getElementById("right").style.margin="0px 0px 0px 215px";
		kop=1
	}
}
 function   Exit()       
 {     
    if  (event.clientX >document.body.clientWidth  && event.clientY < 0  )       
   window.location="exit.aspx"    
 } 
 
 function sAlert1(txt,vname,width,height){
	document.getElementById("frame2").style.display="none";
	var shield = document.createElement("DIV");
	shield.id = "shield";
	shield.style.position = "absolute";
	shield.style.left = "0px";
	shield.style.top = "0px";
	shield.style.width = "100%";
	shield.style.height = ((document.documentElement.clientHeight>document.documentElement.scrollHeight)?document.documentElement.clientHeight:document.documentElement.scrollHeight)+"px";
	shield.style.background = "#59676F";
	shield.style.textAlign = "center";
	shield.style.zIndex = "10000";
	var alertFram = document.createElement("DIV");
	alertFram.id="alertFram";
	alertFram.style.position = "absolute";
	alertFram.style.left = "25%";
	alertFram.style.top = "20%";
	
	alertFram.style.width = width;
	alertFram.style.height = height;
	alertFram.style.background = "#ccc";
	alertFram.style.textAlign = "center";
	alertFram.style.lineHeight = "18px";
	alertFram.style.zIndex = "10001";
	strHtml='<table cellpadding="0" cellspacing="0" border="0" style="background:url(http://www.086.com/images/116/bg4.gif) no-repeat;width:534px;height:264px;text-align:left;padding-left:250px;" align="center">';
strHtml=strHtml+'<tr><td style="color:#0D7B08; font-weight:bold; font-size:14px; padding-top:50px; height:10px; " valign="bottom">欢迎您进入在线体验服务！</td></tr>';
strHtml=strHtml+'<tr><Td style="font-size:14px; color:#4C4C4C; line-height:25px; padding-top:10px; height:50px;" valign="top"><a href="http://www.086.com/member/rega.aspx" style="color:#FF6600;text-decoration:underline;" target="_blank">注册086.com会员</a>，即可免费获得“看我行”<br />网络摄像机管理平台完整服务。</Td></Tr>';
strHtml=strHtml+'<tr><Td valign="top"><a href="javascript:doOk();"><img src="http://www.086.com/images/116/tiyan.gif" border="0" style="padding-left:60px; padding-top:40px;" /></a></Td></tr></table>';
	alertFram.innerHTML = strHtml;
	document.body.appendChild(alertFram);
	document.body.appendChild(shield);
	//加栽下面
	this.setOpacity = function(obj,opacity){
	    if(opacity>=1)opacity=opacity/100;
		try{ 
			if(obj.filters.length>0&&obj.filters("alpha")){
				obj.filters("alpha").opacity=opacity*3500;
			}else{
		
				obj.style.filter="alpha(opacity=\""+(opacity*100)+"\")";
			}
		}catch(e){}
	}
	//加栽下面
	var c = 0;
	this.doAlpha = function(){
		if (++c > 2){clearInterval(ad);return 0;
		}
		setOpacity(shield,c);
	}
	var ad = setInterval("doAlpha()",1);
	this.doOk = function(){
		document.body.removeChild(alertFram);
		document.body.removeChild(shield);
		//eSrc.focus();
		document.body.onselectstart = function(){return true;}
		document.body.oncontextmenu = function(){return true;}
	    document.getElementById("frame2").src="bf.html";
	    document.getElementById("frame2").style.display="inline";
	}
	document.body.onselectstart = function(){return false;}
	document.body.oncontextmenu = function(){return false;}
}