/*
***************************************************************************
*  This work is the copyright and intellectual property of Deborah Figg.  *
*  Reproduction by any means is strictly prohibited unless prior written  *
*  permission is obtained from the copyright holder.                      *
***************************************************************************
*/
NS60	= (navigator.userAgent.indexOf("Netscape6") != -1)
Opera	= (navigator.userAgent.indexOf('Opera') != -1) || (navigator.appName.indexOf('Opera') != -1) || (window.opera)
Opera7	= (navigator.userAgent.indexOf('Opera/7') != -1)
IE4		= (navigator.userAgent.indexOf('MSIE') != -1)
MAC		= ((IE4) && (navigator.appVersion.indexOf("Mac") != -1))
DOM		= document.documentElement && !IE4 && !Opera
NS4		= navigator.appName.indexOf("Netscape") >-1 && !DOM
WIN		= (navigator.appVersion.indexOf("Windows") != -1 || navigator.appVersion.indexOf("WinNT") != -1)
if		(NS60)				var uagent = 'NS60';
else if	(NS4)				var uagent = 'NS4';
else if	(Opera || Opera7)	var uagent = 'Opera';
else if	(MAC)				var uagent = 'MAC';
else if	(IE4)				var uagent = 'IE4';
else if	(DOM)				var uagent = 'DOM';

function funGetEvent(evt) {
	// Return the appropriate event object
	if  (evt == null) {
		return event;
	} else {
		return evt;
	}
}
function funGetTarget(evt) {
	// Return the appropriate target object
	if  (evt.target == null) {
		return evt.srcElement;
	} else {
		return evt.target;
	}
}
function funMouseDown(evt) {
	// Change the element's style
	var objTarget = funGetTarget(funGetEvent(evt));
	if  (objTarget.type == 'button' || objTarget.type == 'submit' || objTarget.type == 'reset') {
		objTarget.style.borderColor ='#069 #BBE #BBE #069';
	}
}
function funMouseUp(evt) {
	// Change the element's style
	var objTarget = funGetTarget(funGetEvent(evt));
	if  (objTarget.type == 'button' || objTarget.type == 'submit' || objTarget.type == 'reset') {
		objTarget.style.borderColor ='#BBE #069 #069 #BBE';
	}
}
document.onmousedown = funMouseDown;
document.onmouseup   = funMouseUp;
document.onmouseout  = funMouseUp;