
$(document).ready(function(){

	$('#menu ul').superfish();

	$('#slideBox').serialScroll({
		items: 'li',
		prev: '#prevSlide',
		next: '#nextSlide',
		axis: 'x',
		offset: 0,
		start: 0,
		duration: 1000,
		interval: 15000,
		force: true,
		constant: false,
		step: 1,
		stop: true,
		lock: false,
		cycle: true,
		jump: false
	});

	$('#page hr').replaceWith('<div class="hr"><hr /></div>');

});

function validateInquiryForm(){
	if(document.frmInquiry.First_name.value == ""){
		alert("Please enter a value for the 'Full Name' field.");
		document.frmInquiry.First_name.focus();
		document.frmInquiry.First_name.select();
		return (false);
	}

	if(document.frmInquiry.Title.value == ""){
		alert("Please enter a value for the 'Job Title' field.");
		document.frmInquiry.Title.focus();
		document.frmInquiry.Title.select();
		return (false);
	}

	if(document.frmInquiry.Company_name.value == ""){
		alert("Please enter a value for the 'Company' field.");
		document.frmInquiry.Company_name.focus();
		document.frmInquiry.Company_name.select();
		return (false);
	}

	if(document.frmInquiry.Street_address.value == ""){
		alert("Please enter a value for the 'Street Address' field.");
		document.frmInquiry.Street_address.focus();
		document.frmInquiry.Street_address.select();
		return (false);
	}

	if(document.frmInquiry.City.value == ""){
		alert("Please enter a value for the 'City' field.");
		document.frmInquiry.City.focus();
		document.frmInquiry.City.select();
		return (false);
	}

	if(document.frmInquiry.State.value == ""){
		alert("Please enter a value for the 'County (State)' field.");
		document.frmInquiry.State.focus();
		document.frmInquiry.State.select();
		return (false);
	}

	if(document.frmInquiry.Country.value == ""){
		alert("Please enter a value for the 'Country' field.");
		document.frmInquiry.Country.focus();
		document.frmInquiry.Country.select();
		return (false);
	}

	if(document.frmInquiry.Email.value == "" || (document.frmInquiry.Email.value.indexOf ('@') == -1) || (document.frmInquiry.Email.value.indexOf ('.') == -1)){
		alert("Please enter a value for the 'Email' field.");
		document.frmInquiry.Email.focus();
		document.frmInquiry.Email.select();
		return (false);
	}

	return (true);
}
