// since have h elements in the content area was messing up the ie6 bug fixes,
// calling sifr once the page is done loading solves the problem
function do_sIFR(){
	if(typeof sIFR == "function"){
	    sIFR.replaceElement(named({sSelector:"body h3", sFlashSrc:"http://dev.platinumsystems.net/spaceport/resources/sifr/CommandorWideShort.swf", sColor:"#FFFFFF", sWmode:"transparent", sLinkColor:"#FFFFFF", sBgColor:"#FFFFFF", sHoverColor:"#FFFFFF", nPaddingTop:0, nPaddingBottom:2, sFlashVars:"textalign=center&offsetTop=-2"}));
		sIFR.replaceElement(named({sSelector:"body h2", sFlashSrc:"http://dev.platinumsystems.net/spaceport/resources/sifr/CommandorWideShort.swf", sColor:"#699A2F", sWmode:"transparent", sLinkColor:"#699A2F", sBgColor:"#FFFFFF", sHoverColor:"#699A2F", nPaddingTop:0, nPaddingBottom:2, sFlashVars:"textalign=left&offsetTop=0"}));
		sIFR.replaceElement(named({sSelector:"body h1", sFlashSrc:"http://dev.platinumsystems.net/spaceport/resources/sifr/CommandorWideShort.swf", sColor:"#013B69", sWmode:"transparent", sLinkColor:"#013B69", sBgColor:"#FFFFFF", sHoverColor:"#013B69", nPaddingTop:0, nPaddingBottom:2, sFlashVars:"textalign=left&offsetTop=0"}));
	};
}

soundManager.url = 'http://dev.platinumsystems.net/spaceport/resources/soundmanager2.swf';
soundManager.debugMode = false;
soundManager.consoleOnly = false;
soundManager.onload = function() {
	soundManager.createSound('blade1','http://dev.platinumsystems.net/spaceport/resources/blade1.mp3');
	soundManager.setVolume('blade1',25);
	soundManager.createSound('blade2','http://dev.platinumsystems.net/spaceport/resources/blade2.mp3');
	//soundManager.play('blade1');
}


function SearchBoxForm_Validator(theForm)
{
	submitonce(theForm);
	if (theForm.SearchTerm.value.length < 3)
	{
	alert('Please enter at least 3 characters in the Search For field.');
	theForm.SearchTerm.focus();
	submitenabled(theForm);
	return (false);
	}
	return (true);
}



var clearInputValue = Array();
function clearInput(thisObj){
    if(!clearInputValue[thisObj]){
        clearInputValue[thisObj] = thisObj.value;
		thisObj.value = "";
        thisObj.style.color = "black";
        
    }
}
function replaceInput(thisObj){
	if(thisObj.value == ""){
		thisObj.value = clearInputValue[thisObj];
		thisObj.style.color = "#999999";
		clearInputValue[thisObj]= false;
	}
}

function swapImg(thisObj, newSrc){ thisObj.src = newSrc; }

