
// Checks to see if the textval is in the box,
// and if it is, clears it out.
function checkForClear(obj, textval)
{
	if (obj)
	{
		if (obj.value == textval)
		{
			obj.value = '';
		}
	}
}

// Checks to see if the appropriate text box is blank,
// and if it is, restores the textval
function checkForBlank(obj, textval)
{
	if (obj)
	{
		if (obj.value == '')
		{
			obj.value = textval;
		}
	}
}

// Toggle the header
function ToggleHeader()
{
	Effect.toggle($('headerWrapper'), 'slide', '');
	
	if ($('navArrow').src.indexOf('Down') != -1)
	{
		$('navArrow').src = '/common/images/whiteArrowUp.gif';
		
		// Redo sIFR, since this was hidden originally
		//if (typeof sIFR == "function")
		//{
		//	sIFR.replaceElement("h4", named({sFlashSrc: "/common/sifr/doom.swf", sColor: "#ad5e36", sLinkColor: "#ad5e36", sWmode: "transparent"}));
		//	alert("sIFR replaced!");
		//}
	}
	else
		$('navArrow').src = '/common/images/whiteArrowDown.gif';
		
}


// Load the large image viewer
function loadLargeSSP()
{
  	if ($('topContent'))
	 	Element.hide('topContent');
	else if ($('mainContent'))
		Element.hide('mainContent');
	else if ($('singleContent'))
		Element.hide('singleContent');
		
	Element.show('largeImageViewer');
}

function closeLargePlayer()
{
	Element.hide('largeImageViewer');
  
  	if ($('topContent'))
	 	Element.show('topContent');
	else if ($('mainContent'))
		Element.show('mainContent');
	else if ($('singleContent'))
		Element.show('singleContent');
}
