<!--
var flag = false;
var category;
var specialcase = ((navigator.userAgent.indexOf('Mac') != -1) || document.all)
var flag = 0;
var msg = 'This image is protected by copyright.\nWe request you not to copy it.';
var x,y,x1,y1,copyAttempt;

// This function is called with OnLoad() and caches the rollover images in the brower
function imageLoad() {  
	if (document.images) {
		HomOn = new Image();
		HomOn.src = "/library/gif/buttonHomeOn.gif";
		AccountOn = new Image();
		AccountOn.src = "/library/gif/buttonAccountOn.gif";
		AdvantageOn = new Image();
		AdvantageOn.src = "/library/gif/buttonAdvantageOn.gif";
		AccreditedTrainersOn = new Image();
		AccreditedTrainersOn.src = "/library/gif/buttonATOn.gif";
		PayrollServicesAgentsOn = new Image();
		PayrollServicesAgentsOn.src = "/library/gif/buttonPSAOn.gif";
		
		ProfessionalPartnersOn = new Image();
		ProfessionalPartnersOn.src = "/library/gif/buttonPPOn.gif";		
		ResellersOn = new Image();
		ResellersOn.src = "/library/gif/buttonResellersOn.gif";		
		SubscriptionOn = new Image();
		SubscriptionOn.src = "/library/gif/buttonSubscriptionOn.gif";	
		EnterpriseSolutionsOn = new Image();
		EnterpriseSolutionsOn.src = "/library/gif/buttonEnterpriseSolutionsOn.gif";		
		return (flag = true);  // set the flag and let the function know know it can work	 	
    }	
}
// load the Off images in the normal way as they don't need to be cached
if (document.images) {   
	HomOff = new Image();
	HomOff.src = "/library/gif/buttonHomeOff.gif";
	AccountOff = new Image();
	AccountOff.src = "/library/gif/buttonAccountOff.gif";
	AdvantageOff = new Image();
	AdvantageOff.src = "/library/gif/buttonAdvantageOff.gif";	
	AccreditedTrainersOff = new Image();
	AccreditedTrainersOff.src = "/library/gif/buttonATOff.gif";	
	PayrollServicesAgentsOff = new Image();
	PayrollServicesAgentsOff.src = "/library/gif/buttonPSAOff.gif";	
	
	ProfessionalPartnersOff = new Image();
	ProfessionalPartnersOff.src = "/library/gif/buttonPPOff.gif";		
	ResellersOff = new Image();
	ResellersOff.src = "/library/gif/buttonResellersOff.gif";		
	SubscriptionOff = new Image();
	SubscriptionOff.src = "/library/gif/buttonSubscriptionOff.gif";	
	EnterpriseSolutionsOff = new Image();
	EnterpriseSolutionsOff.src = "/library/gif/buttonEnterpriseSolutionsOff.gif";	
 }

// This function calls the cached image when an OnMousOver is active during the image rollover process
function imageOn(imgName) {
    if (document.images && (flag == true)) {
		if (document[imgName].src == eval(imgName + "On.src")) {
			category = imgName;		
		}
		else {
        	document[imgName].src = eval(imgName + "On.src");
		}
    }
}

// This function calls the cached image when an OnMouseout is done during the image rollover process
function imageOff(imgName) {  
    if (document.images){	
		if (imgName != category) {
	        document[imgName].src = eval(imgName + "Off.src");
		}
	}
}

// This function sets a status bar message when an OnMouseOver is active during the image rollover process
function setMsg(msg) {
	window.status = msg;
	return true;
}
 
// Called by Menu's at load.
if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

// Open a new window
function show(aim){
	remotewin = open(aim,"remotewin","scrollbars=yes,toolbar=no,width=500,height=450");
}

// Hide and Show Tower Ad
function showHideSidebar() {
	var iWidth = 800;
	if (document.body) {
		iWidth = document.body.clientWidth;
	}
	else {
		try {
			iWidth = screen.availWidth;
		}
		catch (e) {}
	}
       
	if (document.getElementById){
		try {
			document.getElementById("sidebar").style.display = (iWidth > 800 ? '' : 'none');
			document.getElementById("sidebar").style.width = (iWidth > 800 ? 160 : 0);
			document.getElementById("bodyTable").style.width = (iWidth > 800 ? 920 : 760);	
		}
		catch (e) {}
	}
	else {
		try {
			document.all.sidebar.style.display = (iWidth > 800 ? '' : 'none');
			document.all.sidebar.style.width = (iWidth > 800 ? 160 : 0);
			document.all.bodyTable.style.width = (iWidth > 800 ? 920 : 760);										   
		}
		catch (e) {}
	}
}
showHideSidebar();   

<!--

function init()
{
	imageLoad();
	if (!(document.getElementById || document.all || document.layers)) return;
	if (specialcase && document.layers)
	{
		document.captureEvents(Event.MOUSEMOVE);
		document.onmousemove = special;
	}
	for (i=0;i<document.images.length;i++)
	{
		document.images[i].onmousedown = checkIt;
		document.images[i].onmouseup = function() {return false};
		if (specialcase)
		{
			document.images[i].onmousemove = special;
			document.images[i].onclick = clearIt;
		}
	}
	
}

function checkIt(e)
{
	copyAttempt = 0;
	if (window.Event)
	{
		x = e.screenX;
		y = e.screenY;
		theButt = (e.which == 3);
	}
	else
	{
		x = window.event.clientX;
		y = window.event.clientY;
		theButt = (window.event.button == 2);
	}
	if (theButt)
	{
		copyAttempt = 1;
		flag = 0;
		alert(msg);
		return false; // NN4 only
	}
	if (specialcase) flag = 1;
	return false;
}

function special(e)
{
	theObj = '';
	if (window.Event)
	{
		x1 = e.screenX;
		y1 = e.screenY;
		if (e.target.parentNode) theObj = e.target.parentNode.tagName;
	}
	else
	{
		x1 = window.event.clientX;
		y1 = window.event.clientY;
		theObj = window.event.srcElement.parentElement.tagName;
	}
	var isLink = (theObj == 'A');
	if (flag && (!isLink || ((Math.abs(x-x1) > 10000) || (Math.abs(y-y1) > 10000))))
	{
		copyAttempt = 1;
		flag = 0;
		return false;
	}
}

function clearIt()
{
	flag = 0;
	if (copyAttempt)
	{
		copyAttempt = 0;
		return false;
	}
}





-->
