var sweetTitles={xCord:0,yCord:0,tipElements:["h2","a","abbr","acronym","img"],obj:Object,tip:Object,active:0,init:function(){
if(!document.getElementById||!document.createElement||!document.getElementsByTagName){
return;
}
var i,j;
this.tip=document.createElement("div");
this.tip.id="toolTip";
document.getElementsByTagName("body")[0].appendChild(this.tip);
this.tip.style.top="0";
this.tip.style.visibility="hidden";
var _2=this.tipElements.length;
},setTip:function(_3){
if(_3.getAttribute("title")){
addEvent(_3,"mouseover",sweetTitles.tipOver);
addEvent(_3,"mouseout",sweetTitles.tipOut);
_3.setAttribute("tip",_3.title);
_3.removeAttribute("title");
}
},updateXY:function(e){
if(document.captureEvents){
sweetTitles.xCord=e.pageX;
sweetTitles.yCord=e.pageY;
}else{
if(window.event.clientX){
sweetTitles.xCord=window.event.clientX+document.documentElement.scrollLeft;
sweetTitles.yCord=window.event.clientY+document.documentElement.scrollTop;
}
}
},tipOut:function(){
if(window.tID){
clearTimeout(tID);
}
if(window.opacityID){
clearTimeout(opacityID);
}
sweetTitles.tip.style.visibility="hidden";
},checkNode:function(){
var _5=this.obj;
if(this.tipElements.inArray(_5.nodeName.toLowerCase())){
return _5;
}else{
return _5.parentNode;
}
},tipOver:function(e){
sweetTitles.obj=this;
tID=window.setTimeout("sweetTitles.tipShow()",500);
sweetTitles.updateXY(e);
},tipShow:function(){
var _7=Number(this.xCord);
var _8=Number(this.yCord);
var tp=parseInt(_8+15);
var lt=parseInt(_7+10);
var _b=this.checkNode();
var _c="";
var _d="";
if(_b.nodeName.toLowerCase()=="a"){
_c=(_b.href.length>60?_b.href.toString().substring(0,60)+"...":_b.href);
var _d=(_b.accessKey?" <span>["+_b.accessKey+"]</span> ":"");
}else{
if(_b.nodeName.toLowerCase()=="img"){
_c=_b.src;
}else{
_c=_b.firstChild.nodeValue;
}
}
var _e="<p>"+_b.getAttribute("tip");
_e+=(_b.getAttribute("tip")!="")?"<br />":"";
_e+="<em>"+_d+_c+"</em></p>";
this.tip.innerHTML=_e;
if(parseInt(document.documentElement.clientWidth+document.documentElement.scrollLeft)<parseInt(this.tip.offsetWidth+lt)){
this.tip.style.left=parseInt(lt-(this.tip.offsetWidth+10))+"px";
}else{
this.tip.style.left=lt+"px";
}
if(parseInt(document.documentElement.clientHeight+document.documentElement.scrollTop)<parseInt(this.tip.offsetHeight+tp)){
this.tip.style.top=parseInt(tp-(this.tip.offsetHeight+10))+"px";
}else{
this.tip.style.top=tp+"px";
}
this.tip.style.visibility="visible";
this.tip.style.opacity=".1";
this.tipFade(10);
},tipFade:function(_f){
var _10=parseInt(_f);
var _11=parseInt(_10+10);
if(_11<80){
this.tip.style.opacity="."+_11;
this.tip.style.filter="alpha(opacity:"+_11+")";
opacityID=window.setTimeout("sweetTitles.tipFade('"+_11+"')",20);
}else{
this.tip.style.opacity=".80";
this.tip.style.filter="alpha(opacity:80)";
}
}};
var opacityID=null;

