var opera=(navigator.userAgent.toLowerCase().indexOf('opera')!=-1);function getElement(a,b){if(typeof a=='object')return a;if(document.layers){b=(b)?b:self;layerCollection=b.document.layers;if(layerCollection[a])return layerCollection[layerName];for(i=0;i<<layerCollection.length;)return(getElement(a,layerCollection[i++]))}if(document.all)return document.all[a];if(document.getElementById)return document.getElementById(a);return null};function getChildElementByTagName(a,b){var c=getElement(a);if(c)c=c.firstChild;while(c){if(c.tagName==b)return c;c=c.nextSibling}return null};function hasAttribute(a,b){var c=getElement(a);if(c&&c.hasAttribute)return c.hasAttribute(b);if(c&&c[b])return true;return false};function hideElement(a){var b=getElement(a);if(document.layers)b.visibility='hide';else b.style.visibility='hidden'};function showElement(a){var b=getElement(a);if(document.layers)b.visibility='show';else b.style.visibility='visible'};function setX(a,x){var b=getElement(a);if(document.layers)b.left=x;else if(opera)b.style.pixelLeft=x;else b.style.left=x+"px"};function setY(a,y){var b=getElement(a);if(document.layers)b.top=y;else if(opera)b.style.pixelTop=y;else b.style.top=y+"px"};function addListener(a,b,c){var d=getElement(a);if(d){if(d.attachEvent)d.attachEvent("on"+b,c);else if(d.addEventListener)d.addEventListener(b,c,false);else return false;return true}};function getEvent(a){if(!a)return window.event;return a};function getEventTarget(a){if(!a)a=window.event;if(a.target)return a.target;return a.srcElement};function hoverTipInit(b){var c=getElement(b);div=document.createElement("div");div.id='popupDiv';document.body.appendChild(div);hideElement(div);addListener(c,'mouseover',function(a){hoverTipShow(a)});addListener(c,'mouseout',function(a){hoverTipHide(a)});addListener(c,'mousemove',function(a){hoverTipMove(a)})};function hoverTipShow(a){var a=getEvent(a);var b=getEventTarget(a);if(hasAttribute(b,'popup')){var c=getElement('popupDiv');if(c){c.innerHTML=b.getAttribute('popup');if(a.pageX||a.pageY){posx=a.pageX;posy=a.pageY}else if(a.clientX||a.clientY){posx=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;posy=a.clientY+document.body.scrollTop+document.documentElement.scrollTop}showElement(c);setX(c,posx+8);setY(c,posy+8)}}};function hoverTipHide(a){var b=getEventTarget(a);if(hasAttribute(b,'popup')){var c=getElement('popupDiv');if(c){c.innerHTML='';setX(c,0);setY(c,0);hideElement(c)}}};function hoverTipMove(a){var b=getEventTarget(a);if(hasAttribute(b,'popup')){var c=getElement('popupDiv');if(c){if(a.pageX||a.pageY){posx=a.pageX;posy=a.pageY}else if(a.clientX||a.clientY){posx=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;posy=a.clientY+document.body.scrollTop+document.documentElement.scrollTop}setX(c,posx+8);setY(c,posy+8)}}};