var offsetfromcursorX=12
var offsetfromcursorY=10
var offsetdivfrompointerX=10
var offsetdivfrompointerY=14
document.write('
')
document.write('
')
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""
var pointerobj=document.all? document.all["dhtmlpointer"] : document.getElementById? document.getElementById("dhtmlpointer") : ""
function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function ddrivetip(thetext, thewidth, thecolor){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}
function positiontip(e){
if (enabletip){
var nondefaultpos=false
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
var winwidth=ie&&!window.opera? ietruebody().clientWidth : window.innerWidth-20
var winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight-20
var rightedge=ie&&!window.opera? winwidth-event.clientX-offsetfromcursorX : winwidth-e.clientX-offsetfromcursorX
var bottomedge=ie&&!window.opera? winheight-event.clientY-offsetfromcursorY : winheight-e.clientY-offsetfromcursorY
var leftedge=(offsetfromcursorX<0)? offsetfromcursorX*(-1) : -1000
if (rightedge 0) n.className = 'topli';
attachEvents(n, level);
break;
case 'A':
if(getInnerUL(obj)) n.className = 'parent';
n.onmouseover = function(){ mnuOver(this, level) }
n.onmouseout = mnuOut;
break;
}
}
}
function mnuOut(){
clearTimeout(timeoutInterval);
timeoutInterval = setTimeout('hideSubmenu(0)', DELAY);
}
function getInnerUL(o){
var i = o.childNodes.length;
while(i--) if(o.childNodes[i].nodeName == 'UL') return o.childNodes[i];
return null;
}
function mnuOver(o, level){
clearTimeout(timeoutInterval);
hideSubmenu(level);
var obj = getInnerUL(o.parentNode);
if(obj){
activeElement[level] = obj;
obj.style.display = 'block';
}
}
function hideSubmenu(index){
var i = activeElement.length - 1;
while(i >= index){
if(activeElement[i]){
activeElement[i].style.display = 'none';
activeElement.splice(i--, 1);
}
}
}
// IE5 Fix, it has no support fpr splice:
if (typeof Array.prototype.splice == "undefined") {
Array.prototype.splice = function(offset, length) {
var temp = [];
for(var i=this.length - 1; i >= 0; i--){
if (i < offset || i > (offset + length - 1)) {
temp[temp.length] = this[i];
}
this.length--;
}
for(var i=this.length - 1; i >= 0; i--){
this[this.length] = temp[i];
}
}
}
function toggleLayer(szDivID, iState) // 1 visible, 0 hidden
{
if(document.layers) //NN4+
{
document.layers[szDivID].visibility = iState ? "show" : "hide";
}
else if(document.getElementById) //gecko(NN6) + IE 5+
{
var obj = document.getElementById(szDivID);
obj.style.visibility = iState ? "visible" : "hidden";
}
else if(document.all) // IE 4
{
document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
}
}
function email2(u,d) {
document.write('Email '+u+'<\/a>')
}
function email(u,d) {
document.write(''+u+'@'+d+'<\/a>')
}