var hovertipMouseX;
var hovertipMouseY;
function hovertipMouseUpdate(e){
var _2=hovertipMouseXY(e);
hovertipMouseX=_2[0];
hovertipMouseY=_2[1];
}
function hovertipMouseXY(e){
if(!e){
if(window.event){
e=window.event;
}else{
return;
}
}
if(typeof (e.pageX)=="number"){
var _4=e.pageX;
var _5=e.pageY;
}else{
if(typeof (e.clientX)=="number"){
var _4=e.clientX;
var _5=e.clientY;
var _6=(window.navigator.userAgent.indexOf("Opera")+1)||(window.ScriptEngine&&ScriptEngine().indexOf("InScript")+1)||(navigator.vendor=="KDE");
if(!_6){
if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){
_4+=document.body.scrollLeft;
_5+=document.body.scrollTop;
}else{
if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){
_4+=document.documentElement.scrollLeft;
_5+=document.documentElement.scrollTop;
}
}
}
}else{
return;
}
}
return [_4,_5];
}
targetSelectById=function(el,_8){
var id;
var _a;
if(id=el.getAttribute("id")){
_a="*[@"+_8.attribute+"='"+id+"']";
return $(_a);
}
};
targetSelectByTargetAttribute=function(el,_c){
target_list=el.getAttribute("target");
if(target_list){
target_ids=target_list.split(" ");
var _d="#"+target_ids.join(",#");
return $(_d);
}
};
targetSelectByPrevious=function(el,_f){
return $(el.previousSibling);
};
targetSelectBySiblings=function(el,_11){
return $(el).siblings();
};
clicktipPrepareWithCloseLink=function(o,_13){
return o.append("<a class='clicktip_close'><span>close</span></a>").find("a.clicktip_close").click(function(e){
o.hide();
return false;
}).end();
};
hovertipPrepare=function(o,_16){
return o.hover(function(){
hovertipHideCancel(this);
},function(){
hovertipHideLater(this);
}).css("position","absolute").each(hovertipPosition);
};
hovertipPrepareNoOp=function(o,_18){
return o;
};
hovertipPosition=function(i){
document.body.appendChild(this);
};
hovertipIsVisible=function(el){
return (jQuery.css(el,"display")!="none");
};
hovertipShowUnderMouse=function(el){
hovertipHideCancel(el);
if(!hovertipIsVisible(el)){
el.ht.showing=window.setTimeout(function(){
el.ht.tip.css({"position":"absolute","top":hovertipMouseY+"px","left":hovertipMouseX+"px"}).show();
},el.ht.config.showDelay);
}
};
hovertipHideCancel=function(el){
if(el.ht.hiding){
window.clearTimeout(el.ht.hiding);
el.ht.hiding=null;
}
};
hovertipHideLater=function(el){
if(el.ht.showing){
window.clearTimeout(el.ht.showing);
el.ht.showing=null;
}
if(el.ht.hiding){
window.clearTimeout(el.ht.hiding);
el.ht.hiding=null;
}
el.ht.hiding=window.setTimeout(function(){
if(el.ht.hiding){
el.ht.tip.hide();
}
},el.ht.config.hideDelay);
};
clicktipTargetPrepare=function(o,el,_20){
return o.addClass(_20.attribute+"_target").click(function(){
el.ht.tip.toggle();
return false;
});
};
hovertipTargetPrepare=function(o,el,_23){
return o.addClass(_23.attribute+"_target").hover(function(){
hovertipShowUnderMouse(el);
},function(){
hovertipHideLater(el);
});
};
jQuery.fn.hovertipActivate=function(_24,_25,_26,_27){
return this.css("display","block").hide().each(function(){
if(!this.ht){
this.ht=new Object();
}
this.ht.config=_24;
var _28=_25(this,_24);
if(_28&&_28.size()){
if(!this.ht.targets){
this.ht.targets=_27(_28,this,_24);
}else{
this.ht.targets.add(_27(_28,this,_24));
}
_28.mousemove(hovertipMouseUpdate);
if(!this.ht.tip){
this.ht.tip=_26($(this),_24);
}
}
});
};
function hovertipInit(){
var _29={"attribute":"clicktip"};
window.setTimeout(function(){
$(".clicktip").hovertipActivate(_29,targetSelectById,clicktipPrepareWithCloseLink,clicktipTargetPrepare);
},0);
window.setTimeout(function(){
$(".clicktip").hovertipActivate(_29,targetSelectByTargetAttribute,clicktipPrepareWithCloseLink,clicktipTargetPrepare);
},0);
var _2a={"attribute":"hovertip","showDelay":300,"hideDelay":700};
var _2b="div.hovertip";
$(_2b).css("display","block").addClass("hovertip_wrap3").wrap("<div class='hovertip_wrap0'><div class='hovertip_wrap1'><div class='hovertip_wrap2'>"+"</div></div></div>").each(function(){
var _2c=this.parentNode.parentNode.parentNode;
if(this.getAttribute("target")){
_2c.setAttribute("target",this.getAttribute("target"));
}
if(this.getAttribute("id")){
var id=this.getAttribute("id");
this.removeAttribute("id");
_2c.setAttribute("id",id);
}
});
_2b="div.hovertip_wrap0";
window.setTimeout(function(){
$(_2b).hovertipActivate(_2a,targetSelectById,hovertipPrepare,hovertipTargetPrepare);
},0);
window.setTimeout(function(){
$(_2b).hovertipActivate(_2a,targetSelectByTargetAttribute,hovertipPrepare,hovertipTargetPrepare);
},0);
var _2e="span.hovertip";
$(_2e).css("display","block").addClass("hovertip_wrap3").wrap("<span class='hovertip_wrap0'><span class='hovertip_wrap1'><span class='hovertip_wrap2'>"+"</span></span></span>").each(function(){
var _2f=this.parentNode.parentNode.parentNode;
if(this.getAttribute("target")){
_2f.setAttribute("target",this.getAttribute("target"));
}
if(this.getAttribute("id")){
var id=this.getAttribute("id");
this.removeAttribute("id");
_2f.setAttribute("id",id);
}
});
_2e="span.hovertip_wrap0";
window.setTimeout(function(){
$(_2e).hovertipActivate(_2a,targetSelectByPrevious,hovertipPrepare,hovertipTargetPrepare);
},0);
}


