

function doTab(tNum){
	
	if(tNum == 1){
		$('scienceVids').style.display = "none";
		$('amputeeVids').style.display = "block";
		$('amputeeCTA').style.display = "none";
		$('scienceCTA').style.display = "block";		
		$('mainMediaTitle').innerHTML = '<span style="color:#39466a;">Amputee Testimonials</span>';
	}
	
	if(tNum == 2){
		$('scienceVids').style.display = "block";
		$('amputeeVids').style.display = "none";
		$('amputeeCTA').style.display = "block";
		$('scienceCTA').style.display = "none";
		$('mainMediaTitle').innerHTML = '<span style="color:#39466a;">Science Testimonials</span>';
	}
	
}



function popupVideoController(){

		$('videoViewerContainer').style.display = "block";
}
function goawayVideoController(){

		$('videoViewerContainer').style.display = "none";

}



function GetXmlHttpObject()
	{ 
		var objXMLHttp=null
		if (window.XMLHttpRequest)
		{
			objXMLHttp=new XMLHttpRequest()
		}
		else if (window.ActiveXObject)
		{
			objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
		}
		return objXMLHttp
	} 
function hideStuff(){
	$('videoViewerContainer').style.display = "none";

}

function doTan(){
		$('topNavBody').style.backgroundColor = "#C7BCA1";
}
function doBlue(){
	$('topNavBody').style.backgroundColor = "#B5C4ED";
}
function doPurple(){
	$('topNavBody').style.backgroundColor = "#1D0A18";
}

function checkInput(field){
	if(field.value == "Amputee"){
		$('newField1').style.display = 'table-row';
		$('newField2').style.display = 'table-row';
	}else{
		$('newField1').style.display = 'none';
		$('newField2').style.display = 'none';
	}
}
window.addEvent('domready', function(){
		$('videoViewerContainer').style.display = "none";

});


