<!-- Begin
// This is the image mouseover script
// HTML CODE SYNTAX:  onmouseover="document.ChangeToDivID.src='NEW IMAGE GOES HERE';" onmouseout="document.ChangeToDivID.src='ORIGINAL IMAGE GOES HERE';"

function movepic(img_name,img_src) {
document[img_name].src=img_src;
}
// End -->



<!-- Begin
// This is the DIV toggle script
// MAKE SURE that the referenced DIV has a style and it contains either 'display: block;' (on) or 'display: none;' (off)
// HTML CODE SYNTAX:  onclick="toggle_visibility('ChangeToDivID');"

function toggle_visibility(id) {
	var e = document.getElementById(id);
	
	if (e.style.display == 'none')
		e.style.display = 'block';
	else
		e.style.display = 'none';
}
// End -->


sfHover = function() {
	var sfEls = document.getElementById("topNav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



<!-- BEGIN
//Open new window script
 function openPopup(href, name, width, height, menu, status, scroll, loc, resize, title, toolbar){
	 var attributes = '';
	 attributes = attributes + ',width=' + width;
	 attributes = attributes + ',height=' + height;
	 attributes = attributes + ',left=' +(screen.width - width) / 2;
	 attributes = attributes + ',top=' +(screen.height - height) / 2;
	 attributes = attributes + ',menubar=' + (menu==1?'yes':'no');
	 attributes = attributes + ',status=' + (status==1?'yes':'no');
	 attributes = attributes + ',scrollbars=' + (scroll==1?'yes':'no');
	 attributes = attributes + ',location=' + (loc==1?'yes':'no');
	 attributes = attributes + ',titlebar=' + (title==1?'yes':'no');
	 attributes = attributes + ',toolbar=' + (toolbar==1?'yes':'no');
	 attributes = attributes + ',resizable=' + (resize==1?'yes':'no');
	 attributes = attributes.substring(1,attributes.length);
	 var Popup = window.open(href, name, attributes)
}
// END -->

<!-- BEGIN
//pop up a YouTube clip
	function popYT(id) {
		openPopup('/media.pop.asp?id='+id, 'RBJ_YT', 450, 360, 0, 1, 0, 0, 0, 0, 0);
	}
// END -->

<!-- Begin
//This is the menu fade-in fade-out script
menufadeObjects = new Object();
menufadeTimers = new Object();

function menufade(object, destOp, loopdelay, changepercentage){
if (!document.all)
return
    if (object != "[object]"){  //do this so I can take a string too
        setTimeout("menufade("+object+","+destOp+","+loopdelay+","+changepercentage+")",0);
        return;
    }
        
    clearTimeout(menufadeTimers[object.sourceIndex]);
    
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    changepercentage=Math.min(direction*diff,changepercentage);
    object.filters.alpha.opacity+=direction*changepercentage;

    if (object.filters.alpha.opacity != destOp){
        menufadeObjects[object.sourceIndex]=object;
        menufadeTimers[object.sourceIndex]=setTimeout("menufade(menufadeObjects["+object.sourceIndex+"],"+destOp+","+loopdelay+","+changepercentage+")",loopdelay);
    }
}
// End -->


function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
		if (oldonload) {
			oldonload();
		}
			func();
		}
	}
}
