var active ='init'; 

function MoveDropDownHeader(){
	
	var  topPosition = 74  
	var leftPosition = 244
	
	if ((navigator.appVersion.indexOf("Mac") != -1)) {
		
		//alert("navigator.appVersion = " + navigator.appVersion)
		
		if ((navigator.appVersion.indexOf("OS X") != -1)) {
			
			
		  //alert("OS X")
				
		  // set Mac OS X variables
		   topPosition = 79
		  leftPosition = 290
		
		}else{
			
		  // set Mac variables
		   topPosition = 79
		  leftPosition = 384
		}
		
	}

	document.getElementById('dropMenuHolder').style.position = "absolute"
	document.getElementById('dropMenuHolder').style.top      = topPosition
	document.getElementById('dropMenuHolder').style.left     = leftPosition
	
	document.getElementById('dropDown').style.position = "absolute"
	document.getElementById('dropDown').style.top      = "0"
	document.getElementById('dropDown').style.left     = "0"	
}

function MoveDropDownFooter(){	
	
	var topPosition = 535  // IE
	
	// global "leftPosition" variable defined on "header.asp"
	
	if (navigator.appName == "Netscape"){
	
	    // reposition for FireFox
		 topPosition = 541
		leftPosition = leftPositionNetscape
	}
	
	if ((navigator.appVersion.indexOf("Mac") != -1)) {
		
		if ((navigator.appVersion.indexOf("OS X") != -1)) {
						
		  //alert("OS X")
				
		  // set Mac OS X variables
		   topPosition = 538
		  leftPosition = leftPositionMac - 119
		
		}else{
		
		  // set Mac variables
		   topPosition = 538
		  leftPosition = leftPositionMac	
		}
	}
	
	document.getElementById("dropMenuHolder").style.position = "absolute"
	document.getElementById("dropMenuHolder").style.top      = topPosition
	document.getElementById("dropMenuHolder").style.left     = leftPosition	
	document.getElementById("dropDown").style.position       = "absolute"
	document.getElementById("dropDown").style.top            = "0"
	document.getElementById("dropDown").style.left           = "0"	
}

function ToggleLayer(id, NNtype, IEType) { 
	active = id; 
	if (document.all) {
		document.all[active].style.visibility = IEType;
	} 
	if(document.layers){
		document.layers[active].visibility = NNtype;
	}
	if(document.getElementById) {
		document.getElementById(active).style.visibility=IEType;
	}
}

function submitForm (whichForm) {
	var formName = whichForm;
	document[formName].submit();
	//hide the form
	ToggleLayer('dropDown','hide','hidden');
	return false;
}


function submitHairTypeForm (whichForm, hairType) {
	//var formName = whichForm;
	//formName.selectedType.value = hairType;
	//alert(formName.selectedType.value);
	//document[formName].submit();
//	formName.submit();
	//ToggleLayer('dropDown','hide','hidden');
	//return false;
}

