var browser={ie6:function(){return((window.xmlhttprequest==undefined)&&(activexobject!=undefined))},getwindow:function(){var myheight=0;var mywidth=0;if(typeof(window.innerwidth)=='number'){myheight=window.innerheight;mywidth=window.innerwidth}else if(document.documentelement){myheight=document.documentelement.clientheight;mywidth=document.documentelement.clientwidth}else if(document.body){myheight=document.body.clientheight;mywidth=document.body.clientwidth}return{'height':myheight,'width':mywidth}},getscroll:function(){var myheight=0;var mywidth=0;if(typeof(window.pageyoffset)=='number'){myheight=window.pageyoffset;mywidth=window.pagexoffset}else if(document.documentelement){myheight=document.documentelement.scrolltop;mywidth=document.documentelement.scrollleft}else if(document.body){myheight=document.body.scrolltop;mywidth=document.body.scrollleft}return{'height':myheight,'width':mywidth}},getdocwidth:function(d){if(!d)var d=document;return math.max(math.max(d.body.scrollwidth,d.documentelement.scrollwidth),math.max(d.body.offsetwidth,d.documentelement.offsetwidth),math.max(d.body.clientwidth,d.documentelement.clientwidth))},getdocheight:function(d){if(!d)var d=document;return math.max(math.max(d.body.scrollheight,d.documentelement.scrollheight),math.max(d.body.offsetheight,d.documentelement.offsetheight),math.max(d.body.clientheight,d.documentelement.clientheight))}};var dom={id:function(id){var type=typeof(id);if(type=='object')return id;if(type=='string')return document.getelementbyid(id);return null},inserthtml:function(html){var frag=document.createdocumentfragment();var div=document.createelement("div");div.innerhtml=html;for(var i=0,ii=div.childnodes.length;i关闭'; dom.inserthtml(html);position.floatleftcenter('ad_left'); } function ad_right(){ var html; html = '
关闭
'; dom.inserthtml(html);position.floatrightcenter('ad_right'); } myevent.add(window,'load',ad_left); myevent.add(window,'load',ad_right);