<%
'**************************************
'* 最后更新 2012-10-26 by 56770.Kingdge
'* Copyright www.56770.com
'**************************************
If Sys_Skip_Window=1 then
		Dim sql,Lebi_sys_Mes,sys_adnews_t,sys_adnews_c
		cache.name="Lebi_sys_Mes"& LangTxt & cookiesname
		Cache.Reloadtime = 5000 '5000分钟更新
		If Cache.ObjIsEmpty() Then
				sql = "select sys_skip_window"& LangTxt &" from [Lebi_system]"
				set Rs = conn.execute(sql)
				dim Mes_Temp
				Mes_Temp = Rs.GetString(,1, "<><><>","","")
				Rs.Close : Set rs=nothing
				Cache.Value = Mes_Temp
		End if
		Lebi_sys_Mes = Split(cache.value,"<><><>")
		sys_adnews_t = Split(Lebi_sys_Mes(0),"$")(1)
		sys_adnews_c = Split(Lebi_sys_Mes(0),"$")(2)
		Dim word
		word=replace(sys_adnews_c,Chr(10),"<br>")
		word=replace(word,Chr(13),"<br>")
		word=replace(word,"<br><br>","<br>")
		word=replace(word,Chr(32),"&nbsp;")
		%>
		var isOpenMsg = true;
		if (getCookie('56770_Msg_isclose') == "true")
		{
			isOpenMsg = false;
		}else{
			isOpenMsg = true;
		}
		if (isOpenMsg)
		{
				document.write('<style>');
				document.write('.lightbox{width:500px; top:1%; left:1%; margin:0; FILTER:alpha(opacity=80)}');
				document.write('.lightbox dt{cursor:move; background:#fff}');
				document.write('</style>');
				document.write('<dl id="idBox" class="lightbox">');
				document.write('  <dt id="idBoxHead"><div class="otherbox"><h2><p style="float:left"><%= sys_adnews_t %></p><p style="float:right; padding-right:5px"><a href="javascript:void(56770);" onclick="CloseBox();">× <%=Lebi_word(5)%></a></p></h2><div class="both"></div><div class="list"><p style="margin:0; padding:0; min-height:150px; line-height:180%; word-break:break-all; word-wrap:break-word"><%=word%></p></div></div>');
				document.write('</dl>');
				document.write('<div id="idOverlay"></div>');
				var box = new LightBox("idBox", "idOverlay", { Center: true });
				var drag = new Drag("idBox", "idBoxHead", { mxContainer: document.documentElement, Lock: true });
				//$("idBoxCancel").onclick = function(){ setCookie('56770_Msg_isclose',"true"); box.Close(); }
				box.Show();
				box.Fixed = true;
				drag.Lock = false; //固定
				drag.Limit = false;
		}
		function CloseBox(){
			setCookie('56770_Msg_isclose',"true"); box.Close();
		}
<%End If%>