<!-- Begin
// This is the weekly edition DIV script
// Works in all current browsers
// Copywrite 2005 Flex360 and Arkansas Business
var w3c = document.getElementById ? true : false;
var iex = document.all ? true : false;
var ns4 = document.layers ? true : false;

var intnumofmenuitems=3;
var layerRef, styleSwitch, closeBracket;

if(w3c) {
	layerRef="document.getElementById(";
	styleSwitch=").style";	
	closeBracket=")";
} else if(ns4) {
	layerRef="document.layers[";
	styleSwitch="]";
	closeBracket="]";
} else if(iex) {
	layerRef="document.all[";
	styleSwitch="].style";	
	closeBracket="]";
}
                
        function tabber(layerName){
        		showLayer(layerName);
        }
        
        function hideLayer(layerName){
                eval(layerRef+'"'+layerName+'"'+styleSwitch+'.visibility="hidden"');
                eval(layerRef+'"'+layerName+'tab"'+closeBracket+'.className="greyC"');
                eval(layerRef+'"'+layerName+'tabB"'+closeBracket+'.className="whiteC"');
                removeothermenus(layerName);
        }       

        function showLayer(layerName){
                eval(layerRef+'"'+layerName+'"'+styleSwitch+'.visibility="visible"');
                eval(layerRef+'"'+layerName+'tab"'+closeBracket+'.className="blueC"');
                eval(layerRef+'"'+layerName+'tabB"'+closeBracket+'.className="blueC"');
                removeothermenus(layerName);
        }
        
        function removeothermenus(layerName){
                intmenunumber=intnumofmenuitems;                
                while (intmenunumber>0){
                intcountdown="cal"+intmenunumber;
									if (intcountdown!=layerName){
										eval(layerRef+'"'+intcountdown+'"'+styleSwitch+'.visibility="hidden"');
										eval(layerRef+'"'+intcountdown+'tab"'+closeBracket+'.className="greyC"');
										eval(layerRef+'"'+intcountdown+'tabB"'+closeBracket+'.className="whiteC"');
									}
                intmenunumber-=1;
                intcountdown="cal"+intmenunumber;
                }
        }
//  End -->



<!-- Begin

// This is the image mouseover script
function msover(doc_item,textimage)
    {document[doc_item].src=textimage;}

//This is the new window script
function OpenWin(theURL,winName,features) 
    {window.open(theURL,winName,features);}
    
//This removes the link border on images
function RemoveDot()
{
for (a in document.links) document.links[a].onfocus = document.links[a].blur;
}
if (document.all)
{
document.onmousedown = RemoveDot;
}
file:

//  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);
    }
}

function ValidateForm(myForm) {
	var validate = true;
	var el; var firstEl;
	
	for(i=0; i < myForm.length; i++) {
		el = myForm.elements[i];
		if (el.className.indexOf('required') != -1) {
			if(el.value == '') {
				// set the background color and set validate to false
				var old_color = el.style.backgroundColor;
				el.style.backgroundColor = '#FFFFCF';
				el.onblur = function() {
					if(this.value != '') {
						this.style.backgroundColor = old_color;
					}
				}
				validate = false;
				
				// if this is the first one, focus on it (later)
				if(firstEl == null) {firstEl = el;}
			}
		}
	}
	
	if(validate) {
		return true;
	} else {
		alert("Please fill in all required fields");
		firstEl.focus();
	}
	return false;
}
// End -->
