function getSize(){var c,a;if(window.innerHeight&&window.scrollMaxY){c=document.body.scrollWidth;a=window.innerHeight+window.scrollMaxY;}else{if(document.body.scrollHeight>document.body.offsetHeight){c=document.body.scrollWidth;a=document.body.scrollHeight;}else{c=document.body.offsetWidth;a=document.body.offsetHeight;}}var b,d;if(self.innerHeight){b=self.innerWidth;d=self.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){b=document.documentElement.clientWidth;d=document.documentElement.clientHeight;}else{if(document.body){b=document.body.clientWidth;d=document.body.clientHeight;}}}if(a<d){pageHeight=d;y=pageHeight;}else{pageHeight=a;y=pageHeight;}if(c<b){pageWidth=b;}else{pageWidth=c;}arrayPageSize=new Array(pageWidth,pageHeight,b,d);return arrayPageSize;}function addEvent(c,a,b){if(c.addEventListener){c.addEventListener(a,b,false);}else{if(c.attachEvent){c.attachEvent("on"+a,b);}else{c["on"+a]=b;}}}function getCookieNew(c){var b=document.cookie.indexOf(c+"=");var a=document.cookie.indexOf(";",b);return unescape(b==-1?"":document.cookie.substring(b+c.length+1,(a>b?a:document.cookie.length)));}function setCookieNew(b,h){var c=new Date();var g=setCookieNew.arguments;var e=setCookieNew.arguments.length;var d=(e>2)?g[2]:null;var i=(e>3)?g[3]:null;var f=(e>4)?g[4]:null;var a=(e>5)?g[5]:null;if(!d){c.setTime(c.getTime()+d*1000);}else{c.setTime(c.getTime()+d*24*60*60*1000);}document.cookie=b+"="+h+((d==null)?"":("; expires="+c.toGMTString()))+((i==null)?"":("; path="+i))+((f==null)?"":("; domain="+f))+((a==true)?a:"");}function delCookieNew(a,c,b){if(getCookieNew(a)){document.cookie=a+"="+((c)?";path="+c:"")+((b)?";domain="+b:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT";}}function messUp(e,b,a,d,c){this.HTML='<iframe id="messiframe" name="messiframe" src="'+b+'" frameborder="0" scrolling="no" width="'+a+'" height="'+d+'" ></iframe><div class="messbar" style="position:absolute;top:4px;right:0;margin-right:6px;"><img id="'+e+'_min" class="messmin" style="float:left;cursor:pointer;margin-right:2px;" src="http://imgtb.huagu.com/tips/iframe/messmin.gif" width="14" height="14"/><img id="'+e+'_res" class="messres" style="float:left;cursor:pointer;margin-right:2px;" src="http://imgtb.huagu.com/tips/iframe/messres.gif" width="14" height="14"/></div>';this.obj=document.createElement("div");this.obj.id=e;this.obj.className=e;this.obj.style.position="absolute";this.obj.style.right="0";this.obj.style.bottom="0";this.obj.style.overflow="hidden";this.obj.style.width=a;this.obj.style.zIndex=1000;this.oheight=this.height=d;this.theight=c;this.minspeed=0.05;this.steptimer=null;this.init();}messUp.prototype={init:function(){var d=this;d.obj.innerHTML=this.HTML;function b(){d.close();}function c(){d.minstep();}function a(){d.maxstep();}d.height=0;d.obj.style.height=0+"px";document.body.appendChild(d.obj);document.getElementById(d.obj.id+"_min").style.display="none";document.getElementById(d.obj.id+"_res").style.display="block";document.getElementById(d.obj.id+"_min").onclick=c;document.getElementById(d.obj.id+"_res").onclick=a;this.maxstep();this.scrollWith();},close:function(){this.obj.style.display="none";},minstep:function(){var b=this;function a(){if(b.height<=b.theight){window.clearTimeout(b.steptimer);document.getElementById(b.obj.id+"_min").style.display="none";document.getElementById(b.obj.id+"_res").style.display="block";return;}var c=b.minspeed*b.height;b.height=b.height<b.theight?b.theight:b.height-c;b.obj.style.height=b.height+"px";b.steptimer=window.setTimeout(a,10);}a();},maxstep:function(){var b=this;function a(){if(b.height>=b.oheight){window.clearTimeout(b.steptimer);document.getElementById(b.obj.id+"_min").style.display="block";document.getElementById(b.obj.id+"_res").style.display="none";return;}var d=b.oheight;var c=b.minspeed*d;b.height=b.height+c>=b.oheight?b.oheight:b.height+c;b.obj.style.height=b.height+"px";b.steptimer=window.setTimeout(a,10);}a();},slide:function(){var a;if(document.documentElement&&document.documentElement.scrollTop){a=document.documentElement.scrollTop;}else{if(document.body){a=document.body.scrollTop;}}try{this.obj.style.top=a+getSize()[3]-this.height+"px";this.obj.style.bottom="auto";}catch(b){}},scrollWith:function(){var b=this;function a(){b.slide();}window.setInterval(a,10);}};addEvent(window,"load",function(){messb=new messUp("messUp","tips/iframe/QQMenu.html",270,260,23);});
