////////////////////////////////////////////////////////////////////////////////////////////////
//CLEAR FORM - onFocus="alterNate(this)" onBlur="alterNate(this)"///
///////////////////////////////////////////////////////////////////////////////////////////////
function alterNate(elm){
	if (!elm.base) elm.base = elm.value
	if (elm.value == elm.base) elm.value = "";
	else if (elm.value == "") elm.value = elm.base;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////
<!--  SET DISPLAY - onClick="SetDisplay('Layer1')"
//////////////////////////////////////////////////////////////////////////////////////////////////////
function SetDisplay(whichDiv){
 elm2 = document.getElementById( whichDiv );
 elm2.style.display="block";
 elm2.style.visibility="visible";
}
function SetBack(whichDiv){
 elm2 = document.getElementById( whichDiv );
 elm2.style.display="none";
 elm2.style.visibility="hidden";
}
//////////////////////////////////////////////////////////////////////////////////////////////////////
//GET URL ONCLICK - onClick="JavaScript:button_input('www.google.com')"
////////////////////////////////////////////////////////////////////////////////////////////////////////
function button_input(url){
	window.location.href = url 
}
//////////////////////////////////////////////////////////////////////////////////////////////////////
//MENU SCRIPTS
////////////////////////////////////////////////////////////////////////////////////////////////////////
// This function is used for the Suckerfish (flyout) menus

sfHover = function() {
	var sfEls = document.getElementById("nav").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);

// menuExpandable.js - implements an expandable menu based on a HTML list
// Author: Dave Lindquist (http://www.gazingus.org)

if (!document.getElementById)
    document.getElementById = function() { return null; }

function initializeMenu(menuId, actuatorId) {
    var menu = document.getElementById(menuId);
    var actuator = document.getElementById(actuatorId);

    if (menu == null || actuator == null) return;

    //if (window.opera) return; // I'm too tired

   actuator.parentNode.style.background = "url(../img/arrow-down-sm.gif) 90% 10px no-repeat";
    actuator.onclick = function() {
        var display = menu.style.display;
        this.parentNode.style.background =
            (display == "block") ? "url(../img/arrow-down-sm.gif) 90% 10px no-repeat" : "url(../img/arrow-up-sm.gif) 90% 10px no-repeat";
        menu.style.background = "url(/images/square.gif)";
        menu.style.display = (display == "block") ? "none" : "block";

        return false;
    }
}


// Preload images

function Preload() {
 	var args = simplePreload.arguments;
	document.imageArray = new Array(args.length);
	for(var i=0; i<args.length; i++) {
		document.imageArray[i] = new Image;
		document.imageArray[i].src = args[i];
	}
   }
   
//////////////////////////////////////////////////////////////////////////////////////////////////////
//RANDOM IMAGE
////////////////////////////////////////////////////////////////////////////////////////////////////////
var theImages = new Array()

theImages[0] = 'ln2.gif'
theImages[1] = 'ln3.gif'
theImages[2] = 'ln4.gif'
theImages[3] = 'ln5.gif'
theImages[4] = 'ln6.gif'
theImages[4] = 'ln7.gif'
theImages[6] = 'ln8.gif'
theImages[7] = 'ln9.gif'
theImages[8] = 'ln10.gif'
theImages[9] = 'ln11.gif'
theImages[10] ='ln12.gif'

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}   