// 防止被纳入框架
//if(top.location !== self.location){top.location=self.location;}
// ==================================================================================
//var MySiteDomain= document.location.href;
var design=" 此为官方站点:http://www.YonLi.cn";
var YL = new Object();
YL.FormBlink 	= false;	 //是否开启表单加亮功能
YL.ImgZoom 		= true;		 //false; //是否开启图像滚轮缩放功能
YL.TipsON 		= true;		 // 是否开启友情提示功能
YL.WinStatus 	= false;	 //是否开启状态栏提示功能
YL.Img			= true;		 //是否开启图像大小缩放.
// ******************************默认设置定义******************************
YL.TipsPop 				= null;
YL.TipsoffsetX 			= 10; // 提示框位于鼠标左侧或者右侧的距离；
YL.TipsoffsetY 			= 12; // 提示框位于鼠标下方的距离；
YL.TipsPopbg 			= "#FFFFFF"; // 提示框背景色
YL.TipsPopfg 			= "infotext"; // 提示框前景色
YL.TipsAlpha 			= 100; // 提示框透明度，100为不透明
YL.Tipsshadowcolor 		= "threedlightshadow"; // 提示框阴影颜色
YL.Tipsshadowdirection 	= 135; // 提示框阴影方向
//YL.TipsTitlebg 			= "#00780E";
YL.TipsTitlebg 			= "#EEEEEE" //"activecaption"; // 提示框标题文字背景
YL.TipsTitlefg 			= "#333333" //"captiontext"; // 提示框标题文字颜色
YL.TipsBorderColor 		= "#EEEEEE" //"activecaption"; // 提示框标题边框颜色
YL.TipsztColor			= "#0000FF"
YL.TipsBorder			= 1; // 提示框标题边框宽度
YL.TipsBaseWidth 		= 138; // 提示框最小宽度 注意这个值最好不要小于提示框的象素宽度
YL.TipsTitle 			= "提示"; // 提示框标题文字
YL.TipsSmallTitle 		= "51dg<sup>&reg;</sup> Message Hint";	// 提示框副标题文字 
YL.TipsTitleCt 			= " - " // 标题文字和副标题文字之间的连接符
YL.TipsStartmess		= "<FONT COLOR =red>无忧订购：</FONT><BR /><FONT COLOR='" + YL.TipsztColor + "'>" //信息提示信息前边加的信息
YL.TipsEndmess			= "</FONT><BR /><Div ALIGN=RIGHT WIDTH=100% ><FONT COLOR=red>51dg</FONT>.COM</Div>" //信息提示信息后边加的信息
// ******************************默认设置定义******************************
//YL.StatusText = "永利工作室，欢迎您的到来！请记住：本站企业查询网址：http://www.Ybso.com";
//if(YL.WinStatus == true){window.status = YL.StatusText  + design;}
// ==================================================================================
var FormObj; UsedForm = "none";

document.write('<div id="YL___TipsLayer" style="display: none;position: absolute; z-index:10001"></div>');

function YL_Tips(){
	try{
		var o=event.srcElement;
		if(o.alt == null && o.title == null){return false;}
		if(o.alt != null && o.alt != ""){o.dypop = o.alt;o.alt = ""};
		if(o.title != null && o.title != ""){o.dypop = o.title;o.title = ""};
		YL.TipsPop = o.dypop;
		if(YL.TipsPop !=null && YL.TipsPop !="" && typeof(YL.TipsPop)!="undefined"){
			YL___TipsLayer.style.left=-1000;
			YL___TipsLayer.style.display='';
			var Msg = YL.TipsPop.replace(/\n/g,"<br>"); // 换行符
			Msg = Msg.replace(/\r/g,"<br>"); // 回车符
			Msg = Msg.replace(/\0x13/g,"<br>"); // 回车符
			Msg = YL.TipsStartmess + Msg + YL.TipsEndmess;
			//if(YL.TipsSmallTitle==""){YL.TipsTitleCt="";}
			if(YL.TipsSmallTitle == ""){YL.TipsSmallTitle = SystemVersion;}
			var content = '<table style="FILTER:alpha(opacity='+YL.TipsAlpha+') shadow(color='+YL.Tipsshadowcolor+',direction='+YL.Tipsshadowdirection+');" id=toolTipTalbe border=0><tr><td width="100%"><table border=0 cellspacing="'+YL.TipsBorder+'" cellpadding="2" style="width:100%;background-color:'+YL.TipsBorderColor+';">'+
			'<tr id=YL_TipsPoptop><th style="width:100%; font:bold 12px; text-indent: 0em; color:'+YL.TipsTitlefg+'; background-color:'+YL.TipsTitlebg+';"><b><p id=topleft align=left style="text-indent: 0em;">↖ '+YL.TipsTitle+YL.TipsTitleCt+YL.TipsSmallTitle+'</p><p id=topright align=right style="font:bold 12px; text-indent: 0em;display:none">'+YL.TipsSmallTitle+YL.TipsTitleCt+YL.TipsTitle+' ↗</font></b></th></tr>'+
			'<tr><td style="width:100%; font:12px; text-indent: 0em; background-color:'+YL.TipsPopbg+'; color:'+YL.TipsPopfg+'; padding-left:10px; padding-right:10px; padding-top: 4px; padding-bottom:4px; line-height:135%;font-family: Verdana, Arial, Helvetica, sans-serif, "宋体";">'+Msg+'</td></tr>'+
			'<tr id=YL_TipsPopbot style="display:none"><th style="width:100%; font:bold 12px; text-indent: 0em; color:'+YL.TipsTitlefg+';background-color:'+YL.TipsTitlebg+';"><b><p id=botleft align=left style="text-indent: 0em;">↙ '+YL.TipsTitle+YL.TipsTitleCt+YL.TipsSmallTitle+'</p><p id=botright align=right style="font:bold 12px; text-indent: 0em;display:none">'+YL.TipsSmallTitle+YL.TipsTitleCt+YL.TipsTitle+' ↘</font></b></th></tr>'+
			'</table></td></tr></table>';
			YL___TipsLayer.innerHTML = content;
			var toolTipwidth = Math.min(YL___TipsLayer.clientWidth, document.body.clientWidth/2.2);
			if(toolTipwidth<YL.TipsBaseWidth){toolTipwidth=YL.TipsBaseWidth;}
			toolTipTalbe.style.width=toolTipwidth;
			MoveToMouseLoc();
			return true;
		}else{
			YL___TipsLayer.innerHTML = "";
			YL___TipsLayer.style.display='none';
			return true;
		}
	}
	catch(e){};
}
function MoveToMouseLoc(){
	if(YL___TipsLayer.innerHTML==''){return true;}
	var MouseX=event.x;
	var MouseY=event.y;
	var popTopAdjust=0;
	//window.status="x:"+event.offsetX;
	//window.status+=" y:"+event.offsetY;
	var popHeight=YL___TipsLayer.clientHeight;
	var popWidth=YL___TipsLayer.clientWidth;
	if(MouseY+YL.TipsoffsetY+popHeight>document.body.clientHeight){
		popTopAdjust=-popHeight-YL.TipsoffsetY*1.5;
		YL_TipsPoptop.style.display="none";
		YL_TipsPopbot.style.display="";
	}else{
		popTopAdjust=0;
		YL_TipsPoptop.style.display="";
		YL_TipsPopbot.style.display="none";
	}
	if(MouseX+YL.TipsoffsetX+popWidth>document.body.clientWidth){
		popLeftAdjust=-popWidth-YL.TipsoffsetX*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";
	}
	YL___TipsLayer.style.left=MouseX+YL.TipsoffsetX+document.body.scrollLeft+popLeftAdjust;
	YL___TipsLayer.style.top=MouseY+YL.TipsoffsetY+document.body.scrollTop+popTopAdjust;
	return true;
}

if(YL.TipsON == true){
	document.onmousemove= YL_Tips;
}

// ---------------------------------------------------------------------------------
//图片缩放
function bbimg(o){
	if (YL.img==true)
	{
		var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
		return false;
	}

}
// ---------------------------------------------------------------------------------
// 修改编辑栏高度
function obj_Size(num,objname)
{
	var obj=document.getElementById(objname)
	if (parseInt(obj.rows)+num>=3) {
		obj.rows = parseInt(obj.rows) + num;	
	}
	if (num>0)
	{
		obj.width="90%";
	}
}
// ---------------------------------------------------------------------------------
// 设置文章内容的颜色、大小、字体
function fontZoom(obj,size)
{
	document.getElementById(obj).style.fontSize=size+'px';
}
function fontColor(Color)
{
	document.getElementById(obj).style.color=Color;
}
function fontFamily(Family)
{
	document.getElementById(obj).style.fontFamily=Family;
}
