//Read a page's GET URL variables and return them as an associative array.
function getUrlVars()
{
    var vars = {}, hash;
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');

    for(var i = 0; i < hashes.length; i++)
    {
        hash = hashes[i].split('=');
        vars[hash[0]] = hash[1];
    }

    return vars;
}


function loadAjaxContent(container,url, updateURL, additionalparams, dontshow) {

	var doAjax = function() {
			var params = getUrlVars();
			params["ajax"] = true;
			if (additionalparams)
			  $.each(additionalparams, function(k,v) {
				params[k] = v;
			  });
		    
			$.ajax(url, {
		      data: params,
//		      encoding: "ISO-8859-1",
		      success: function(r) {
		          $('#'+container).html(r);
			      if (!dontshow) {
			        
			        $('#'+container).slideDown();				  
				  }
			//      FB.XFBML.parse($('#'+container)); 
			    }
			});
			
	};
//	if ($(container).visible())
//	  Effect.SlideUp(container, {afterFinish: doAjax} );
//	else 
		doAjax();
	} 
var eventlist_shown=false;
var eventlist_sliding=false;

var showEventList = function() {
	if (!eventlist_shown &&! eventlist_sliding) { eventlist_sliding = true; Effect.SlideDown('eventlist_container', {afterFinish: function( ) { eventlist_sliding=false; eventlist_shown = true;}	} ); }; 	
}

var hideEventList = function() {
if (eventlist_shown && !eventlist_sliding) { eventlist_sliding = true; Effect.SlideUp('eventlist_container', {afterFinish: function( ) { eventlist_sliding=false; eventlist_shown = false;}	} ); };
}
<!-- Copyright 2006,2007 Bontrager Connection, LLC
//http://bontragerconnection.com/ and http://www.willmaster.com/
//Version: July 28, 2007
var cX = 0; var cY = 0; var rX = 0; var rY = 0;
var UpdateCursorPosition = function(e){ cX = e.pageX; cY = e.pageY;}
var UpdateCursorPositionDocAll = function(e){ cX = event.clientX; cY = event.clientY;}
if(document.all) { document.onmousemove = UpdateCursorPositionDocAll; }
else { document.onmousemove = UpdateCursorPosition; }
var AssignPosition = function(d) {
if(self.pageYOffset) {
	rX = self.pageXOffset;
	rY = self.pageYOffset;
	}
else if(document.documentElement && document.documentElement.scrollTop) {
	rX = document.documentElement.scrollLeft;
	rY = document.documentElement.scrollTop;
	}
else if(document.body) {
	rX = document.body.scrollLeft;
	rY = document.body.scrollTop;
	}
if(document.all) {
	cX += rX; 
	cY += rY;
	}
d.style.left = (cX+10) + "px";
d.style.top = (cY+10) + "px";
}
var HideContent=function(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
var ShowContent=function(d) {
if(d.length < 1) { return; }
var dd = document.getElementById(d);
AssignPosition(dd);
dd.style.display = "block";
}
var ReverseContentDisplay = function(d) {
if(d.length < 1) { return; }
var dd = document.getElementById(d);
AssignPosition(dd);
if(dd.style.display == "none") { dd.style.display = "block"; }
else { dd.style.display = "none"; }
}


function goLite(FRM,BTN)
{
   window.document.forms[FRM].elements[BTN].style.backgroundColor = "#DDDDDD";
}

function goDim(FRM,BTN)
{
   window.document.forms[FRM].elements[BTN].style.backgroundColor = "#FFFFFF";
}


