function Tips(sTitle,sNote,iTimes,sElement){this.title=sTitle;this.note=sNote;this.times=iTimes;this.timeout=100;this.element=sElement;};Tips.prototype.setOpacity=function(elem,level){if(elem.filters){elem.style.filter='alpha(opacity='+level+')';}else{elem.style.opacity=level/100;}};Tips.prototype.DynamicsetOpacity=function(){var gettimeout;window.Obj=this;if(this.timeout>=0){this.setOpacity(document.getElementById("show"),this.timeout);if(this.timeout==100){gettimeout=setTimeout("Obj.DynamicsetOpacity()",1000)}else{gettimeout=setTimeout("Obj.DynamicsetOpacity()",this.times);}}else{clearTimeout(gettimeout);document.getElementsByTagName(this.element)[0].removeChild(document.getElementById("show"));}this.timeout-=10;};Tips.prototype.Showtips=function(){this.timeout=100;var clientWidth=document.body.clientWidth;var clientHeight=document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight;var scrollTop=document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop;var left=(clientWidth-200)/2;var top=(clientHeight-50)/4+scrollTop;var newDiv=document.createElement("div");newDiv.setAttribute("id","show");newDiv.style.position="absolute";newDiv.style.width="250px";newDiv.style.left=left+"px";newDiv.style.top=top+"px";newDiv.style.backgroundColor="#fff";newDiv.style.color="#000";newDiv.style.borderStyle="solid";newDiv.style.borderColor="#000";newDiv.style.borderWidth="1px";newDiv.style.padding="3px";newDiv.style.display="block";var title=document.createTextNode(this.title);var newH=document.createElement("h1");newH.appendChild(title);newH.style.padding="2px";newH.style.margin="0";newH.style.fontSize="14px";newH.style.lineHeight="20px";newH.style.backgroundColor="#ccc";newH.style.letterSpacing="4px";newDiv.appendChild(newH);var alertNote=document.createTextNode(this.note);var noteDiv=document.createElement("div");noteDiv.appendChild(alertNote);noteDiv.style.fontSize="14px";noteDiv.style.lineHeight="50px";noteDiv.style.textIndent="2em";noteDiv.style.letterSpacing="2px";newDiv.appendChild(noteDiv);document.getElementsByTagName(this.element)[0].appendChild(newDiv);if(document.getElementById){this.DynamicsetOpacity();}}
