	$(document).ready(function(){
	
			//insert contact pop-up controls
			$("#fade").click(function(){contactClose();});
			$("#store-caption").click(function(){toggleStores();});

			//document.getElementById("closeContact").onclick = contactClose;
	

	});
	
	function setContent(obj,value)
	{
		//$(obj).text(value);
		$(obj).html(value)
	}
	
	// Hides the desired element
	function hideElement(obj)
	{
		$(obj).css('display', 'none');
	}
	
	// Shows the desired element
	function showElement(obj)
	{
		$(obj).css('display', 'block');

	}
	
	/* Handles the load and unload of the dropdown list */
	function toggleStores()
	{
		if(document.getElementById('dropdown-list').style.display == 'block')
		{
			document.getElementById('dropdown-list').style.display = 'none';
		}
		else
		{
			document.getElementById('dropdown-list').style.display = 'block';	
		}
	}
	
	function contact() {
		document.getElementById('light').style.display = 'block';
		document.getElementById('fade').style.display = 'block';
		//return false;
	}
	
	function contactClose() {
		document.getElementById('light').style.display = 'none';
		document.getElementById('fade').style.display = 'none';
		//return false;
	}
	
	function switchClass(obj,className)
	{
		$(obj).attr('class', className);
	}
