// JavaScript Document
  var last_link = null;
  var last_link2 = null;
  function activate(id1)
	  {
		  if( last_link != null ) last_link.className = "#";
		  if(id1 != null){
			  var the_selection = document.getElementById(id1);
			  if(the_selection != null){
			  the_selection.className = "current";
			  }
				last_link = the_selection;
		  }
	  }
  function activate2(id3)
	  {
		  if( last_link2 != null ) last_link2.className = "#";
		  var the_selection2 = document.getElementById(id3);
		  
		  the_selection2.className = "current";
		  last_link2 = the_selection2;

	  }
	  

  function activate_testi(id3)
	  {
		  var the_selection2 = document.getElementById(id3);
		  if(the_selection2 != null)
		  {
			  the_selection2.className = "current";
		  }
	  }


  function activateTop(id2)
	  {
		  var the_selection1 = document.getElementById(id2);
		  if (the_selection1 != null)
			  the_selection1.className = "current";
	  }

//GUP = Get URL Parameter, one input param, the name of the query string you want to pull the value from.
// for example, http://website.com?variable1=123, you would call gup('variable1') and it would return 123.
function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}