<!-- 
//防止错误出现
function killErrors() {
return true;}
window.onerror = killErrors;
var pltsPop=null;
var pltsoffsetX = 10;   // 弹出窗口位于鼠标左侧或者右侧的距离；3-12 合适
var pltsoffsetY = 15;  // 弹出窗口位于鼠标下方的距离；3-12 合适
var pltsPopbg="#FFFFEE"; //背景色
var pltsPopfg="#000000"; //前景色
var pltsTitle="cvvvv";
document.write('<div id=pltsTipLayer style="display: none;position: absolute; z-index:10001"></div>');
function pltsinits()
{document.onmouseover=plts;
document.onmousemove=moveToMouseLoc;}
function plts()
{var o=event.srcElement;
if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""};
if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""};
pltsPop=o.dypop;
if(pltsPop!=null&&pltsPop!=""&&typeof(pltsPop)!="undefined")
{pltsTipLayer.style.left=-1000;
pltsTipLayer.style.display='';
var Msg=pltsPop.replace(/\n/g,"<br>");
Msg=Msg.replace(/\0x13/g,"<br>");
var re=/\{(.[^\{]*)\}/ig;
if(!re.test(Msg))pltsTitle="站长提醒您！";
else{
re=/\{(.[^\{]*)\}(.*)/ig;
pltsTitle=Msg.replace(re,"$1")+"&nbsp;";
re=/\{(.[^\{]*)\}/ig;
Msg=Msg.replace(re,"");
Msg=Msg.replace("<br>","");}
var content =
'<table style="background:ffffff;border:1px solid #444444" id=toolTipTalbe><tr id=pltsPoptop><th id=topleft><p id=topright style="display:none"></th></tr><tr><td  style="padding:4px;line-height:135%">'+Msg+'</td></tr>'+
'<tr id=pltsPopbot style="display:none"><th><p id=botleft></p><p id=botright align=rightstyle="display:none"></th></tr></table>';
pltsTipLayer.innerHTML=content;
toolTipTalbe.style.width=Math.min(pltsTipLayer.clientWidth,document.body.clientWidth/2.2);
moveToMouseLoc();
return true;}else{pltsTipLayer.innerHTML='';
pltsTipLayer.style.display='none';
return true;}}
function moveToMouseLoc()
{if(pltsTipLayer.innerHTML=='')return true;
var MouseX=event.x;
var MouseY=event.y;
//window.status=event.y;
var popHeight=pltsTipLayer.clientHeight;
var popWidth=pltsTipLayer.clientWidth;
if(MouseY+pltsoffsetY+popHeight>document.body.clientHeight)
{popTopAdjust=-popHeight-pltsoffsetY*1.5;
pltsPoptop.style.display="none";
pltsPopbot.style.display="";}else{
popTopAdjust=0;pltsPoptop.style.display="";pltsPopbot.style.display="none";}
if(MouseX+pltsoffsetX+popWidth>document.body.clientWidth){
popLeftAdjust=-popWidth-pltsoffsetX*2;topleft.style.display="none";
botleft.style.display="none";
topright.style.display="";
botright.style.display="";}else
{popLeftAdjust=0;topleft.style.display="";botleft.style.display="";
topright.style.display="none";botright.style.display="none";}
pltsTipLayer.style.left=MouseX+pltsoffsetX+document.body.scrollLeft+popLeftAdjust;
pltsTipLayer.style.top=MouseY+pltsoffsetY+document.body.scrollTop+popTopAdjust;
return true;}
pltsinits();
// 判断连接函数
function vote() 
{
win = window.open("","vote","width=600,height=350,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no")
} 
// 字体大小
function ContentSize(size)
{
var obj=document.getElementById("size");obj.style.fontSize=size+"px";
}
// 复制文本
function copyText(obj) 
{
var rng = document.body.createTextRange();rng.moveToElementText(obj);rng.scrollIntoView();rng.select();rng.execCommand("Copy");rng.collapse(false);
}
// 复制网址
function copyUrl(obj) 
{
var rng = document.body.createTextRange();rng.moveToElementText(obj);rng.scrollIntoView();rng.select();rng.execCommand("Copy");rng.collapse(false);
alert("复制成功，请把此网址在你喜欢的论坛或QQ里面发给你的朋友！");
}
function chk()
{
	if(document.form.adminname.value == "")
	{
	alert("“站长姓名”不能为空！");
	document.form.adminname.focus();
	document.form.adminname.select();
	return false;
	}
	if(document.form.adminemail.value == "")
	{
	alert("“站长信箱”不能为空！");
	document.form.adminemail.focus();
	document.form.adminemail.select();
	return false;
	}
	if(document.form.webname.value == "")
	{
	alert("“网站名称”不能为空！");
	document.form.webname.focus();
	document.form.webname.select();
	return false;
	}	
	if(document.form.site.value == "")
	{
	alert("“网站地址”不能为空！");
	document.form.site.focus();
	document.form.site.select();
	return false;
	}	
	if(document.form.content.value == "")
	{
	alert("“网站介绍”不能为空！");
	document.form.content.focus();
	document.form.content.select();
	return false;
	}
alert("重要提示：\n\n⒈您已经做好了本站连接。\n\n⒉您的网站内容没有非法内容。 \n\n⒊您的站点具有一定的访问量。\n\n  如果达不到以上三点则不会被通过！");
form.submit.disabled=true;
return true;}
// 判断评论函数
function checkRemark()
			{
			var form=document.getElementById("form");
			if (form.review.value=="")
			{	alert("请填写评论内容");
				form.review.focus();
				return false;
			}
			if (form.reviewemail.value=="")
			{	alert("请填写你的邮箱");
				form.reviewemail.focus();
				return false;
			}
			if (form.reviewname.value=="")
			{	alert("请填写姓名");
				form.reviewname.focus();
				return false;
			}
			if (form.review.value.length>255)
			{	alert("评论内容不可以超过255字");
				form.review.focus();
				return false;
			}
			if (form.reviewemail.value.length>40)
			{	alert("邮箱不可超过40个字");
				form.reviewemail.focus();
				return false;
			}
			if (form.reviewname.value.length>10)
			{	alert("姓名不可以超过10个字");
				form.reviewname.focus();
				return false;
			}
			form.submit.disabled=true;
			return true;
			}
			function showLen(obj)
			{
				document.getElementById("reviewLen").value=obj.value.length;
			}
// 判断留言函数
function checkBook()
{var form=document.getElementById("form");
if (form.words.value=="")
{alert("请填写留言内容");
form.words.focus();
return false;}
if (form.zt.value=="")
{alert("请填写主题");
form.uc.focus();
return false;}
if (form.words.value.length>255)
{alert("留言内容不可以超过255个汉字");
form.words.focus();
return false;}
if (form.name.value=="")
{alert("请填写姓名");
form.name.focus();
return false;}
if (form.name.value.length>10)
{alert("姓名不可以超过10个字");
form.name.focus();
return false;}
if (form.words.value.length<4)
{alert("留言内容不可以低于2个汉字");
form.words.focus();
return false;}
if (form.VerifyCode.value=="")
{alert("请输入正确的认证码");
form.VerifyCode.focus();
return false;}
form.submit.disabled=true;
return true;}
function bookshowLen(obj)
{document.getElementById("wordsLen").value=obj.value.length;}
function bookcount(message,total,used,remain)
{
	var max;
	max = total.value;
	if (message.value.length > max) {
	message.value = message.value.substring(0,max);
	used.value = max;
	remain.value = 0;
	alert("内容不能超过" +max+ "个字!");
	}
	else {
	used.value = message.value.length;
	remain.value = max - used.value;
	}
}
// 图片缩放脚本
var flag=true; 
function DrawImage(ImgD){ 
    var image=new Image(); 
    image.src=ImgD.src; 
    if(image.width>0 && image.height>0){ 
        flag=true; 
        if(image.width>=535){ 
            ImgD.width=535; 
            ImgD.height=(image.height*600)/image.width; 
        }else{ 
            ImgD.width=image.width; 
            ImgD.height=image.height; 
        }  
    } 
} 
// 图片缩放脚本
var flag=true; 
function DownImage(ImgD){ 
    var image=new Image(); 
    image.src=ImgD.src; 
    if(image.width>0 && image.height>0){ 
        flag=true; 
        if(image.width>=535){ 
            ImgD.width=535; 
            ImgD.height=(image.height*600)/image.width; 
        }else{ 
            ImgD.width=image.width; 
            ImgD.height=image.height; 
        }  
    } 
} 
function cgimg(o){
var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
return false;
}
// FLASH动画脚本--------------------------
function luklflash(file, w, h)
{
		document.write("<div style=\"padding:5px\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0\" width=\"");
		document.write(w);
		document.write("\" height=\"");
		document.write(h);
		document.write("\"><param name=\"movie\" value=\"");
		document.write(file);
		document.write("\"> <param name=\"quality\" value=\"high\"><embed src=\"");
		document.write(file);
		document.write("\" loop=\"false\" menu=\"false\" quality=\"high\" width=\"");
		document.write(w);
		document.write("\" height=\"");
		document.write(h);
		document.write("\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></embed></object></div>");
}

// 双击鼠标滚动屏幕的代码
var currentpos,timer; 
function initialize() 
{ 
timer=setInterval("scrollwindow()",1);
} 
function sc(){
clearInterval(timer);	
}
function scrollwindow() 
{ 
currentpos=document.body.scrollTop; 
window.scroll(0,++currentpos); 
if (currentpos != document.body.scrollTop) 
sc();
} 
document.onmousedown=sc
document.ondblclick=initialize

//LUKL_Skin
 var h;
 var w;
 var l;
 var t;
 var topMar = 1;
 var leftMar = -2;
 var space = 1;
 var isvisible;
 var MENU_SHADOW_COLOR='#FFFFFF';
 var global = window.document
 global.fo_currentMenu = null
 global.fo_shadows = new Array

function HideMenu() 
{
 var mX;
 var mY;
 var vDiv;
 var mDiv;
	if (isvisible == true)
{
		vDiv = document.all("menuDiv");
		mX = window.event.clientX + document.body.scrollLeft;
		mY = window.event.clientY + document.body.scrollTop;
		if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){
			vDiv.style.visibility = "hidden";
			isvisible = false;
		}
}
}

function ShowMenu(vMnuCode,tWidth) {
	vSrc = window.event.srcElement;
	vMnuCode = "<table id='submenu' cellspacing=0 cellpadding=5 style='width:"+tWidth+"' class=tableBorder onmouseout='HideMenu()'><tr height=25><td nowrap align=left class=tablebody1>" + vMnuCode + "</td></tr></table>";

	h = vSrc.offsetHeight;
	w = vSrc.offsetWidth;
	l = vSrc.offsetLeft + leftMar+4;
	t = vSrc.offsetTop + topMar + h + space-2;
	vParent = vSrc.offsetParent;
	while (vParent.tagName.toUpperCase() != "BODY")
	{
		l += vParent.offsetLeft;
		t += vParent.offsetTop;
		vParent = vParent.offsetParent;
	}

	menuDiv.innerHTML = vMnuCode;
	menuDiv.style.top = t;
	menuDiv.style.left = l;
	menuDiv.style.visibility = "visible";
	isvisible = true;
    makeRectangularDropShadow(submenu, MENU_SHADOW_COLOR, 4)
}

function makeRectangularDropShadow(el, color, size)
{
	var i;
	for (i=size; i>0; i--)
	{
		var rect = document.createElement('div');
		var rs = rect.style
		rs.position = 'absolute';
		rs.left = (el.style.posLeft + i) + 'px';
		rs.top = (el.style.posTop + i) + 'px';
		rs.width = el.offsetWidth + 'px';
		rs.height = el.offsetHeight + 'px';
		rs.zIndex = el.style.zIndex - i;
		rs.backgroundColor = color;
		var opacity = 1 - i / (i + 1);
		rs.filter = 'alpha(opacity=' + (100 * opacity) + ')';
		el.insertAdjacentElement('afterEnd', rect);
		global.fo_shadows[global.fo_shadows.length] = rect;
	}
}

var LUKL_Skin = '&nbsp;&nbsp;&nbsp;<a href="skin.asp?skin=" title="默认风格">默认风格</A><br>&nbsp;&nbsp;&nbsp;<a href="skin.asp?skin=HuiSe" title="灰色畅想"><font color=999999>灰色畅想</font></A><br>&nbsp;&nbsp;&nbsp;<a href="skin.asp?skin=Blue" title="蓝色清香"><font color=blue>蓝色清香</font></A><br>'
// -->
