var uniTipTag="a,img";var uniTipClass="tip";var uniTipX=-28;var uniTipY=15;var offsetX=uniTipX,offsetY=uniTipY,elewidth=null,eleheight=null,tipid=null,tiptop=null,tipbot=null,tipcapin=null,tippointin=null,altText=false;var x=0,y=0,WinWidth=0,WinHeight=0,TipWidth=0,TipHeight=0,CapHeight=0,PointHeight=0;init=function(){var e=uniTipTag.split(",");for(var t=0;t'+o+"";tippointin=document.getElementById("unitippoint");tippointin.style.width=elewidth*2+"px";tippointin.style.height=PointHeight*2+"px";tippointin.style.backgroundImage=tippoint.style.backgroundImage;tippointin.style.position="absolute";tippoint.style.backgroundImage="none"}if(tipcap.currentStyle.backgroundImage.match(/\.png/gi)){var u=tipcap.innerHTML;tipcap.id="unitipC";tipcap.style.overflow="hidden";tipcap.style.height=CapHeight+"px";tipcap.style.width=elewidth+"px";tipcap.style.position="relative";tipcap.style.display="block";tipcap.innerHTML='
'+o+"
";tipcapin=document.getElementById("unitipcap");tipcapin.style.height=CapHeight*2+"px";tipcapin.style.backgroundImage=tipcap.style.backgroundImage;tipcapin.style.position="absolute";tipcap.style.backgroundImage="none"}pngfix()}document.onmousemove=function(e){move(e)}};move=function(e){if(document.getElementById("unitipmid")){if(window.event){x=window.event.clientX;y=window.event.clientY;if(document.documentElement.scrollLeft)tipid.style.left=TipWidth>=WinWidth?x-offsetX-elewidth+document.documentElement.scrollLeft+"px":x+offsetX+document.documentElement.scrollLeft+"px";else tipid.style.left=TipWidth>=WinWidth?x-offsetX-elewidth+document.body.scrollLeft+"px":x+offsetX+document.body.scrollLeft+"px";if(document.documentElement.scrollTop)tipid.style.top=TipHeight>=WinHeight?y-offsetY-eleheight+document.documentElement.scrollTop+"px":y+offsetY+document.documentElement.scrollTop+"px";else tipid.style.top=TipHeight>=WinHeight?y-offsetY-eleheight+document.body.scrollTop+"px":y+offsetY+document.body.scrollTop+"px"}else{x=e.clientX;y=e.clientY;tipid.style.left=TipWidth>=WinWidth?x-offsetX-elewidth+window.scrollX+"px":x+offsetX+window.scrollX+"px";tipid.style.top=TipHeight>=WinHeight?y-offsetY-eleheight+window.scrollY+"px":y+offsetY+window.scrollY+"px"}TipWidth=x+elewidth+20;TipHeight=y+eleheight+20;if(TipHeight>=WinHeight){tipid.removeChild(tippoint);tipid.removeChild(tipmid);tipid.removeChild(tipcap);tipid.appendChild(tipcap);tipid.appendChild(tipmid);tipid.appendChild(tippoint)}else{tipid.removeChild(tippoint);tipid.removeChild(tipmid);tipid.removeChild(tipcap);tipid.appendChild(tippoint);tipid.appendChild(tipmid);tipid.appendChild(tipcap)}if(TipHeight>=WinHeight){if(document.getElementById("uniTipP")){tippointin.style.left=TipWidth>=WinWidth?"-"+elewidth+"px":"0px";tippointin.style.top="-"+PointHeight+"px"}else tippoint.style.backgroundPosition=TipWidth>=WinWidth?"right bottom":"left bottom";if(document.getElementById("uniTipC"))tipcapin.style.top="-"+CapHeight+"px";else tipcap.style.backgroundPosition="0 -"+CapHeight+"px"}else{if(document.getElementById("uniTipP")){tippointin.style.left=TipWidth>=WinWidth?"-"+elewidth+"px":"0px";tippointin.style.top="0px"}else tippoint.style.backgroundPosition=TipWidth>=WinWidth?"right top":"left top";if(document.getElementById("uniTipC"))tipcapin.style.top="0px";else tipcap.style.backgroundPosition="0 0"}}};hide=function(e,t){if(document.getElementById("unitipmid")){document.getElementById("unitipmid").innerHTML="";document.onmousemove="";document.body.removeChild(tipid);tipid.style.display="none";if(altText==false)e.setAttribute("title",t);else e.setAttribute("alt",t);altText=false}};if(window.addEventListener)window.addEventListener("load",init,false);if(window.attachEvent)window.attachEvent("onload",init)