<!-- 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="tabInactive"');
                //eval(layerRef+'"'+layerName+'tabB"'+closeBracket+'.className=""');
                removeothermenus(layerName);
        }       

        function showLayer(layerName){
                eval(layerRef+'"'+layerName+'"'+styleSwitch+'.visibility="visible"');
                //eval(layerRef+'"'+layerName+'tab"'+closeBracket+'.className="tabActive"');
                //eval(layerRef+'"'+layerName+'tabB"'+closeBracket+'.className="tabActive"');
                removeothermenus(layerName);
        }
        
        function removeothermenus(layerName){
                intmenunumber=intnumofmenuitems;                
                while (intmenunumber>0){
                intcountdown="Submenu"+intmenunumber;
									if (intcountdown!=layerName){
										eval(layerRef+'"'+intcountdown+'"'+styleSwitch+'.visibility="hidden"');
										//eval(layerRef+'"'+intcountdown+'tab"'+closeBracket+'.className="tabInactive"');
										//eval(layerRef+'"'+intcountdown+'tabB"'+closeBracket+'.className=""');
									}
                intmenunumber-=1;
                intcountdown="Submenu"+intmenunumber;
                }
        }
//  End -->

<!-- Begin
// This is the calendar DIV script
// Works in all current browsers
// Copywrite 2005 Flex360 and Arkansas Business

				var intnumofmenuitemsC=7;
                
        function calTabber(layerNameC){
        		showLayerC(layerNameC);
        }
        
        function hideLayerC(layerNameC){
                eval(layerRef+'"'+layerNameC+'"'+styleSwitch+'.visibility="hidden"');
                eval(layerRef+'"'+layerNameC+'tab"'+closeBracket+'.className="calInactive"');
                eval(layerRef+'"'+layerNameC+'tabB"'+closeBracket+'.className=""');
                removeothermenusC(layerNameC);
        }       

        function showLayerC(layerNameC){
                eval(layerRef+'"'+layerNameC+'"'+styleSwitch+'.visibility="visible"');
                eval(layerRef+'"'+layerNameC+'tab"'+closeBracket+'.className="calActive"');
                eval(layerRef+'"'+layerNameC+'tabB"'+closeBracket+'.className="calActive"');
                removeothermenusC(layerNameC);
        }
        
        function removeothermenusC(layerNameC){
                intmenunumberC=intnumofmenuitemsC;                
                while (intmenunumberC>0){
                intcountdownC="calendar"+intmenunumberC;
									if (intcountdownC!=layerNameC){
										eval(layerRef+'"'+intcountdownC+'"'+styleSwitch+'.visibility="hidden"');
										eval(layerRef+'"'+intcountdownC+'tab"'+closeBracket+'.className="calInactive"');
										eval(layerRef+'"'+intcountdownC+'tabB"'+closeBracket+'.className=""');
									}
                intmenunumberC-=1;
                intcountdownC="calendar"+intmenunumberC;
                }
        }
//  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
function popWin(url) {
	var w = 550; var h = 555;
	var l = (screen.width - w) / 2;
	var t = (screen.height - h) / 2;
	
	newWindow = window.open(url,'mywin','width='+w+',height='+h+',left='+l+',top='+t+',scrollbars=yes,resizable=yes');
}

//  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 -->

<!-- Begin



// This is the DIV toggle script

// MAKE SURE that the referenced DIV style contains either 'display: block;' (on) or 'display: none;' (off)



function toggle_visibility(id) {

var e = document.getElementById(id);



if (e.style.display == 'none')

	e.style.display = 'block';

else

	e.style.display = 'none';

}

// End -->
