var doc=document;/*This code is from Dynamic Web Coding www.dyn-web.com
Copyright 2001 by Sharon Paine
Permission granted to use this code as long as this entire notice is included.*/
var exclude=1;
var agt=navigator.userAgent.toLowerCase();
var win=0;var mac=0;var lin=1;
if(agt.indexOf('win')!=-1){win=1;lin=0;}
if(agt.indexOf('mac')!=-1){mac=1;lin=0;}
var lnx=0;if(lin){lnx=1;}
var ice=0;
var ie=0;var ie4=0;var ie5=0;var ie6=0;var com=0;var dcm;
var op5=0;var op6=0;var op7=0;
var ns4=0;var ns6=0;var ns7=0;var mz7=0;var kde=0;var saf=0;
var fx=0;
var dom = (doc.getElementById) ? true : false;
var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
var fx = (agt.indexOf("firefox")>-1) ? true: false;
if(typeof navigator.vendor!="undefined" && navigator.vendor=="KDE"){
var thisKDE=agt;
var splitKDE=thisKDE.split("konqueror/");
var aKDE=splitKDE[1].split("; ");
var KDEn=parseFloat(aKDE[0]);
if(KDEn>=2.2){
kde=1;
ns6=1;
exclude=0;
}
}
else if(agt.indexOf('webtv')!=-1){exclude=1;}
else if(typeof window.opera!="undefined"){
exclude=0;
if(/opera[\/ ][5]/.test(agt)){op5=1;}
if(/opera[\/ ][6]/.test(agt)){op6=1;}
if(/opera[\/ ][7-9]/.test(agt)){op7=1;}
}
else if(typeof document.all!="undefined"&&!kde){
exclude=0;
ie=1;
if(typeof document.getElementById!="undefined"){
ie5=1;
if(agt.indexOf("msie 6")!=-1){
ie6=1;
dcm=document.compatMode;
if(dcm!="BackCompat"){com=1;}
}
}
else{ie4=1;}
}
else if(typeof document.getElementById!="undefined"){
exclude=0;
if(agt.indexOf("netscape/6")!=-1||agt.indexOf("netscape6")!=-1){ns6=1;}
else if(agt.indexOf("netscape/7")!=-1||agt.indexOf("netscape7")!=-1){ns6=1;ns7=1;}
else if(agt.indexOf("gecko")!=-1){ns6=1;mz7=1;}
if(agt.indexOf("safari")!=-1 || (typeof document.childNodes!="undefined" && typeof document.all=="undefined" && typeof navigator.taintEnabled=="undefined")){mz7=0;ns6=1;saf=1;}
}
else if((agt.indexOf('mozilla')!=-1)&&(parseInt(navigator.appVersion)>=4)){
exclude=0;
ns4=1;
if(typeof navigator.mimeTypes['*']=="undefined"){
exclude=1;
ns4=0;
}
}
if(agt.indexOf('escape')!=-1){exclude=1;ns4=0;}
if(typeof navigator.__ice_version!="undefined"){exclude=1;ie4=0;}
var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;
var origWidth, origHeight;
if (ns4) {
origWidth = window.innerWidth; origHeight = window.innerHeight;
window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}
if (nodyn) event = "nope";
var tipFollowMouse = false; //true
var tipWidth = 0;
var offX = 8; //8
var offY = 12; //12
var tipFontFamily = "Verdana, arial";
var tipFontSize = "8pt";
var tipFontColor = "#000000";
var tipBgColor = "#ffffff";
var tipBorderColor = "#000000";
var tipBorderWidth = 1;
var tipBorderStyle = "solid";
var tipPadding = 4;
var tooltip, tipcss;
function init() {
if (nodyn) return;
tooltip = (ns4)? doc.tipDiv.doc: (ie4)? doc.all['tipDiv']: (ie5||ns5||ns6||ns7||fx)? doc.getElementById('tipDiv'): null;
if (tooltip == null) {
return;
}
tipcss = (ns4)? doc.tipDiv: tooltip.style;
if (ie||ns5||fx) { // ns4 would lose all this on rewrites
tipcss.width = tipWidth+"px";
tipcss.fontFamily = tipFontFamily;
tipcss.fontSize = tipFontSize;
tipcss.color = tipFontColor;
tipcss.backgroundColor = tipBgColor;
tipcss.borderColor = tipBorderColor;
tipcss.borderWidth = tipBorderWidth+"px";
tipcss.padding = tipPadding+"px";
tipcss.borderStyle = tipBorderStyle;
}
if (tooltip&&tipFollowMouse) {
if (ns4) doc.captureEvents(Event.MOUSEMOVE);
doc.onmousemove = trackMouse;
}
}
window.onload = init;
var t1,t2;
var tipOn = false;
function doTooltip(evt,txt) {
txt=unescape(txt);
if (!tooltip) return;
if (mac) return; //no mac, sorry!
if (t1) clearTimeout(t1); if (t2) clearTimeout(t2);
tipOn = true;
isOverDiv=true;
if (ns4||fx||ns7) {
tip = '<table bgcolor="' + tipBorderColor + '" width="' + tipWidth + '" cellspacing="0" cellpadding="' + tipBorderWidth + '" border="0"><tr><td><table bgcolor="' + tipBgColor + '" width="100%" cellspacing="0" cellpadding="' + tipPadding + '" border="0"><tr><td><span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + tipFontColor + ';">' + txt + '</span></td></tr></table></td></tr></table>';
tooltip.write(tip);
tooltip.close();
} else if (ie||ns5||ns6) {
tip = txt;
tooltip.innerHTML = "<nobr>" + tip + "</nobr>";
}
if (!tipFollowMouse) positionTip(evt);
}
var mouseX, mouseY;
function trackMouse(evt) {
mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + doc.body.scrollLeft;
mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + doc.body.scrollTop;
if (tipOn) positionTip(evt);
}
function positionTip(evt) {
if (!tipFollowMouse) {
mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + doc.body.scrollLeft;
mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + doc.body.scrollTop;
}
var tpWd = (ns4)? tooltip.width: (ie)? tooltip.clientWidth: tooltip.offsetWidth;
var tpHt = (ns4)? tooltip.height: (ie)? tooltip.clientHeight: tooltip.offsetHeight;
var winWd = (ns4||ns5)? window.innerWidth-20+window.pageXOffset: doc.body.clientWidth+doc.body.scrollLeft;
var winHt = (ns4||ns5)? window.innerHeight+window.pageYOffset: doc.body.clientHeight+doc.body.scrollTop;
if ((mouseX+offX+tpWd)>winWd)
tipcss.left = (ns4)? mouseX-(tpWd+offX): mouseX-(tpWd+offX)+"px";
else tipcss.left = (ns4)? mouseX+offX: mouseX+offX+"px";
if ((mouseY+offY+tpHt)>winHt)
tipcss.top = (ns4)? mouseY-(tpHt+offY): mouseY-(tpHt+offY)+"px";
else tipcss.top = (ns4)? mouseY+offY: mouseY+offY+"px";
t1=setTimeout("tipcss.visibility='visible'",100);
}
function hideTip() {
if (!tooltip) return;
t2=setTimeout("tipcss.visibility='hidden'",100);
tipOn = false;
}