﻿

// Extended Tooltip Javascript
// copyright 9th August 2002, 3rd July 2005
// by Stephen Chapman, Felgall Pty Ltd

// permission is granted to use this javascript provided that the below code is not altered
//var DH = 0;var an = 0;var al = 0;var ai = 0;if (document.getElementById) {ai = 1; DH = 1;}else {if (document.all) {al = 1; DH = 1;} else { browserVersion = parseInt(navigator.appVersion); if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)) {an = 1; DH = 1;}}} function fd(oi, wS) {if (ai) return wS ? document.getElementById(oi).style:document.getElementById(oi); if (al) return wS ? document.all[oi].style: document.all[oi]; if (an) return document.layers[oi];}
//function pw() {return window.innerWidth != null? window.innerWidth: document.body.clientWidth != null? document.body.clientWidth:null;}
//function mouseX(evt) {if (evt.pageX) return evt.pageX; else if (evt.clientX)return evt.clientX + (document.documentElement.scrollLeft ?  document.documentElement.scrollLeft : document.body.scrollLeft); else return null;}
//function mouseY(evt) {if (evt.pageY) return evt.pageY; else if (evt.clientY)return evt.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop); else return null;}
//function popUp(evt,oi) {if (DH) {var wp = pw(); ds = fd(oi,1); dm = fd(oi,0); st = ds.visibility; if (dm.offsetWidth) ew = dm.offsetWidth; else if (dm.clip.width) ew = dm.clip.width; if (evt.type == 'mouseout') { ds.visibility = "hidden"; } else {tv = mouseY(evt) + 30; lv = mouseX(evt)+ 290 - (ew/4); if (lv < 2) lv = 2; else if (lv + ew > wp) lv -= ew/2; if (!an) {lv += 'px';tv += 'px';} ds.left = lv; ds.top = tv; ds.visibility = "visible";}}}

function showHide(eId)
{
    if(!document.getElementById) return;
    myElement = document.getElementById(eId);
    if (myElement !=null) {
        if (myElement.style.display == 'block') {
            myElement.style.display = 'none'
        } else {
            myElement.style.display = 'block'
            //myElement.getElementById(eId).focus();
        }
    }
}

// JScript File
//function NewWindow(mypage, myname, w, h, scroll) {

//var winl = (screen.width - w) / 2;
//var wint = ((screen.height - 50)- h) / 2;

//winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresize'
//win = window.open(mypage, myname, winprops)

//if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
//}


// ++++++++++++++++++++++++++++++++++++++++++++++ //
// OPEN NEW WINDOW IN CENTER OF SCREEN FOR NOTIFY //
// ++++++++++++++++++++++++++++++++++++++++++++++ //

//function NotifyWarn(notifyurl, linkid, mypage) {

//var width = 500;
//var height = 350;
//var winl = (screen.width - width) / 2;
//var wint = ((screen.height - 50)- height) / 2;

//winprops = 'height='+height+',width='+width+',top='+wint+',left='+winl+',scrollbars=no,noresize'

//win = window.open(notifyurl + "?linkId=" + linkid, 'Warning', winprops)

//if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
//}

// ++++++++++++++++++++++++++++++++++++++++++ //
// OPEN NEW WINDOW FOR IMAGES                 //
// ++++++++++++++++++++++++++++++++++++++++++ //

//var newWindow;

//function NewImgWindow(newURL, newTitle, w, h) {
//var baseURL = '/js/imgwindow.html?';
//baseURL += escape(newURL);
//baseURL += "&" + escape(newTitle);

//var winLeft = (screen.width - w) / 2;
//var winTop = ((screen.height - 50)- h) / 2;

//if(newWindow && !newWindow.closed) {
//newWindow.close();
//}

//newWindow = window.open(baseURL,'imgWindow','width='+w+',height='+h+',top='+winTop+',left='+winLeft+',scrollbars=no');
//if (parseInt(navigator.appVersion) >= 4) { newWindow.window.focus(); }
//}

//// ++++++++++++++++++++++++++++++++++++++++++ //
//// SPAWN EXTERNAL LINK NOTICE WINDOW          //
//// ++++++++++++++++++++++++++++++++++++++++++ //

//function extern(mypage) {
//var w = 500;
//var h = 350;
//var winl = (screen.width - w) / 2;
//var wint = ((screen.height - 50)- h) / 2;
//winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,noresize'
//win = window.open(mypage, 'extern', winprops)
//if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
//}
