/* JavaScript Document */

/********************** Quik Switch v 0.1  *********************************/
/* call this function for quick switching of pages. The pages should be
 * enclosed in divs with the id of the argument passed in, with the initial
 * page in a div with the id "initial" */
current = "initial";

/* set current page */
function set_current(div)
{
	expanded = div;
}

function quikswitch(div)
{
	current_page = document.getElementById(current);
	new_page = document.getElementById(div);
	
	current_page.style.display = "none";
	new_page.style.display = "";
	current = div;
}

/************************** End Quik Switch Code ********************************/

/******************************** Quik Hider v 0.1  ****************************/
/* call this function for quick hiding of page elements. The elements should
 * be given the id of the argument passed in, with the initial hidden element
 * having the id "initial" */
current_hidden = "hideable_initial";

/* set current page */
function set_current(div)
{
	expanded = div;
}

function quikhide(div)
{
	current_hidden_element = document.getElementById(current_hidden);
	new_hidden_element = document.getElementById(div);
	
	new_hidden_element.style.display = "none";
	current_hidden_element.style.display = "";
	current_hidden = div;
}

/************************** End Element Xpander Code ********************************/

/*************** JSGET v 0.1 - http://www.thelostviking.com**************************/


GET = new Array();

if (document.URL.indexOf("?") >= 0)
	getGET();


function getGET()
{
		varstring = document.URL.split("?")[1];
		vars = varstring.split("&");
		for (i=0; i < vars.length; i++)
		{
				arrayvalue = vars[i].split("=");
				GET[arrayvalue[0]] = arrayvalue[1];
		}
}

/********************************** End JSGET ************************************/

