function positionForm(l){
	if(l=="top")
	{
		$('.form form').css("z-index","100");
		$('.form').css("visibility","visible");
	} else{
		$('.form form').css("z-index","0");
	}
}

function revealForm(){
	if(form2){
		document.getElementById('order').submit();
	} else if (document.getElementById("flash")) { 
		document.getElementById("flash").jsRevealForm();
	}
}

function sendPhone(){
	if (document.getElementById("flash")) { 
		document.getElementById("flash").jsSetPhone(phoneNumber, quantum);
	}
	$('p#header_phone').replaceWith('<p class="right orange" style="padding:4px 20px 0 0">Call '+phoneNumber+'</p>');
	$('.form').css("visibility","visible");
}
function alertFail(){
	Sexy.info('<h1>Please Try Again</h1><p>We don\'t have record of that priority code. Please re-enter your code or give us a call at the phone number to your left.</p>');
}

function togglePrice(which,amt){
	if(which){
		$('#save').replaceWith('<p class="green abs" id="save">'+amt+'</p>');	
	} else{
		$('#save').replaceWith('<p class="green abs" id="save">'+amt+'</p>');
	}
}
$(document).ready(function() {
	//sendPhone(phoneNumber);
	setTimeout("sendPhone();",1500);
});

// ============================
// = BLANK INPUT TEXT DEFAULT =
// ============================

function clearText(thefield){
	if (thefield.defaultValue==thefield.value)
	thefield.value = ""
}
