/**************************************************************************************************************************************
* Javascript Function Library (lib.js)
* Contains a library of javascript functions that are used throughout the web site as well as global variables
* Copyright (c) TAG Internet Services 2001-2008. All Rights Reserved.
**************************************************************************************************************************************/

// Global Variables


// Functions

/*=====================================================================================================================================
* [Function Name]
* Function: [What function does]
* Arguments:
*	[arg1]: Type=[arg1 datatype]; [information regarding argument]
*	[arg2]: Type=[arg1 datatype]; [information regarding argument]
=====================================================================================================================================*/

/*=====================================================================================================================================
* bg_swap
* Function: Swaps the background of an object.
* Arguments:
*	id:		Type=String; getElementByID string name referencing the object
*	type:	Type=Integer; what is being swapped
*	swap:	Type=String; what is replacing what is being swapped
=====================================================================================================================================*/

function bg_swap(id,type,swap)
{
	var obj = document.getElementById(id).style;
	// Background color
	if (type == 0)
	{
		obj.backgroundColor = swap;
	}
	// Background image
	else if (type == 1)
	{
		obj.backgroundImage = "url('" + swap + "')";
	}
	else
	{
		return;
	}
}
