var isIE=(document.all)?true:false;var isIE6=isIE&&([/MSIE (\d)\.0/i.exec(navigator.userAgent)][0][1]==6);var $$=function(id){return"string"==typeof id?document.getElementById(id):id;};var Class={create:function(){return function(){this.initialize.apply(this,arguments);}}}
var Extend=function(destination,source){for(var property in source){destination[property]=source[property];}}
var Bind=function(object,fun){return function(){return fun.apply(object,arguments);}}
var Each=function(list,fun){for(var i=0,len=list.length;i<len;i++){fun(list[i],i);}};var Contains=function(a,b){return a.contains?a!=b&&a.contains(b):!!(a.compareDocumentPosition(b)&16);}
var OverLay=Class.create();OverLay.prototype={initialize:function(options){this.SetOptions(options);this.Lay=$$(this.options.Lay)||document.body.insertBefore(document.createElement("div"),document.body.childNodes[0]);this.Color=this.options.Color;this.Opacity=parseInt(this.options.Opacity);this.zIndex=parseInt(this.options.zIndex);with(this.Lay.style){display="none";zIndex=this.zIndex;left=top=0;position="fixed";width=height="100%";}
if(isIE6){this.Lay.style.position="absolute";this._resize=Bind(this,function(){this.Lay.style.width=Math.max(document.documentElement.scrollWidth,document.documentElement.clientWidth)+"px";this.Lay.style.height=Math.max(document.documentElement.scrollHeight,document.documentElement.clientHeight)+"px";});this.Lay.innerHTML='<iframe style="position:absolute;top:0;left:0;width:100%;height:100%;filter:alpha(opacity=0);"></iframe>'}},SetOptions:function(options){this.options={Lay:null,Color:"#000",Opacity:50,zIndex:10000};Extend(this.options,options||{});},Show:function(){if(isIE6){this._resize();window.attachEvent("onresize",this._resize);}
with(this.Lay.style){isIE?filter="alpha(opacity:"+this.Opacity+")":opacity=this.Opacity/100;backgroundColor=this.Color;display="block";}},Close:function(){this.Lay.style.display="none";if(isIE6){window.detachEvent("onresize",this._resize);}}};var LightBox=Class.create();LightBox.prototype={initialize:function(box,options){this.Box=$$(box);this.OverLay=new OverLay(options);this.SetOptions(options);this.Fixed=!!this.options.Fixed;this.Over=!!this.options.Over;this.Center=!!this.options.Center;this.onShow=this.options.onShow;this.Box.style.zIndex=this.OverLay.zIndex+1;this.Box.style.display="none";if(isIE6){this._top=this._left=0;this._select=[];this._fixed=Bind(this,function(){this.Center?this.SetCenter():this.SetFixed();});}},SetOptions:function(options){this.options={Over:true,Fixed:true,Center:true,onShow:function(){}};Extend(this.options,options||{});},SetFixed:function(){this.Box.style.top=document.documentElement.scrollTop-this._top+this.Box.offsetTop+"px";this.Box.style.left=document.documentElement.scrollLeft-this._left+this.Box.offsetLeft+"px";this._top=document.documentElement.scrollTop;this._left=document.documentElement.scrollLeft;},SetCenter:function(){this.Box.style.marginTop=document.documentElement.scrollTop-this.Box.offsetHeight/2+"px";this.Box.style.marginLeft=document.documentElement.scrollLeft-this.Box.offsetWidth/2+"px";},Show:function(options){this.Box.style.position=this.Fixed&&!isIE6?"fixed":"absolute";this.Over&&this.OverLay.Show();this.Box.style.display="block";if(this.Center){this.Box.style.top=this.Box.style.left="50%";if(this.Fixed){this.Box.style.marginTop=-this.Box.offsetHeight/2+"px";this.Box.style.marginLeft=-this.Box.offsetWidth/2+"px";}else{this.SetCenter();}}
if(isIE6){if(!this.Over){this._select.length=0;Each(document.getElementsByTagName("select"),Bind(this,function(o){if(!Contains(this.Box,o)){o.style.visibility="hidden";this._select.push(o);}}))}
this.Center?this.SetCenter():this.Fixed&&this.SetFixed();this.Fixed&&window.attachEvent("onscroll",this._fixed);}
this.onShow();},Close:function(){this.Box.style.display="none";this.OverLay.Close();if(isIE6){window.detachEvent("onscroll",this._fixed);Each(this._select,function(o){o.style.visibility="visible";});}}};function fuceng_common(){box.Show();}
function closePropmtBox(){box.Close();}
function MsgBox(tt,url,wd,ht,tp){$$("msgbox").style.width=wd+"px"
$$("msgbox").style.height=ht+"px"
$$("bartit").innerHTML=tt;mini.location=url;fuceng_common();}
document.writeln("<style type=\"text/css\" media=\"screen\">");document.writeln("#msgbox{postition:absolute;width:500px;height:200px}");document.writeln("#popbar{width:100%;background:url(http://www.hxyyt.com/images/msg_title.gif) repeat-x;height:26px;border-left:1px solid #474747;border-right:1px solid #474747}");document.writeln("#ifram{width:100%;height:100%;background:#fff;border:1px solid #474747;border-top:none}");document.writeln(".bartit{color:#111;font-size:14px;padding:5px 0 0 5px;font-weight:bold}");document.writeln(".close{padding:5px 5px 0 0}");document.writeln(".l{float:left}");document.writeln(".r{float:right}");document.writeln("</style>");document.writeln("<div style=\"z-index:1001;display:none;position:fixed;left:50%;top:50%;margin-top:-92px;margin-left:-190px;\" id=\"msgbox\">");document.writeln("  <div id=\"popbar\">");document.writeln("    <div class=\"l bartit\" id=\"bartit\"></div>");document.writeln("    <div class=\"r close\"><a href=\"javascript:closePropmtBox();\"><img src=\"http://www.hxyyt.com/images/msg_close.gif\" border=\"0\"></a></div>");document.writeln("  </div>");document.writeln("  <div id=\"ifram\">");document.writeln("    <iframe marginwidth=\"0\" marginheight=\"0\" framespacing=\"0\" vspace=\"0\" hspace=\"0\" id=\"mini\" name=\"mini\" src=\"about:blank\" scrolling=\"auto\" frameborder=\"0\" height=\"100%\" width=\"100%\"></iframe>");document.writeln("  </div>");document.writeln("</div>");var box=new LightBox("msgbox");