  $(document).ready(function(){
   
	$("#liInfoDirections").hide();
	$("#liInfoAssistance").hide();
	$("#liInfoClients").hide();
	
   	$("#hServices").click(function () {
	
		$("#liInfoServices").show("slow");
		$("#liInfoDirections").hide("slow");
		$("#liInfoAssistance").hide("slow");
		$("#liInfoClients").hide("slow");
	
	})
	
	$("#hDirections").click(function () {
	
		$("#liInfoServices").hide("slow");
		$("#liInfoDirections").show("slow");
		$("#liInfoAssistance").hide("slow");
		$("#liInfoClients").hide("slow");
	
	})
	
	$("#hAssistance").click(function () {
	
		$("#liInfoServices").hide("slow");
		$("#liInfoDirections").hide("slow");
		$("#liInfoAssistance").show("slow");
		$("#liInfoClients").hide("slow");
	
	})

	$("#hClients").click(function () {
	
		$("#liInfoServices").hide("slow");
		$("#liInfoDirections").hide("slow");
		$("#liInfoAssistance").hide("slow");
		$("#liInfoClients").show("slow");
	
	})
	
	
	
  });



$(document).ready( function() { 

		$('#design_showcase').innerfade({ animationtype: 'fade', speed: 1750, timeout: 5000, type: 'random', containerheight: '1em' }); 
}); 



 $(document).ready(function(){
$('#CW_DateScheduled').DatePicker({
	format:'m/d/Y',
	date: $('#CW_DateScheduled').val(),
	current: $('#CW_DateScheduled').val(),
	starts: 1,
	position: 'r',
	onBeforeShow: function(){
		$('#CW_DateScheduled').DatePickerSetDate($('#CW_DateScheduled').val(), true);
	},
	onChange: function(formated, dates){
		$('#CW_DateScheduled').val(formated);
	}
})});


 $(document).ready(function(){
$('#CW_Desired_Completion_Date').DatePicker({
	format:'m/d/Y',
	date: $('#CW_Desired_Completion_Date').val(),
	current: $('#CW_Desired_Completion_Date').val(),
	starts: 1,
	position: 'r',
	onBeforeShow: function(){
		$('#CW_Desired_Completion_Date').DatePickerSetDate($('#CW_Desired_Completion_Date').val(), true);
	},
	onChange: function(formated, dates){
		$('#CW_Desired_Completion_Date').val(formated);
	}
})});



function validator(theForm) {
if (theForm.CW_Contact_Firstname.value == "")
  	{
    alert("Please enter your first name.");
    theForm.CW_Contact_Firstname.focus();
    return (false);
  	}

if (theForm.CW_Contact_Lastname.value == "")
  	{
    alert("Please enter your last name.");
    theForm.CW_Contact_Lastname.focus();
    return (false);
  	}

  
if (theForm.CW_Contact_Email.value == "")
  	{
    	alert("Please enter your email.");
		theForm.CW_Contact_Email.focus();
    	return (false);
  	}  

if (theForm.CW_Contact_Phone.value == "")
  	{
    	alert("Please enter your main phone number.");
    	theForm.CW_Contact_Phone.focus();
    	return (false);
  	}

if(theForm.CW_Website_URL != null) {
	if (theForm.CW_Website_URL.value == "") {
    		alert("Please enter your website address.");
    		theForm.CW_Website_URL.focus();
    		return (false);
  	}
}

if(theForm.CW_DateScheduled != null) {	
if (theForm.CW_DateScheduled.value == "")
  	{
    	alert("Please enter desired time to meet.");
    	theForm.CW_DateScheduled.focus();
    	return (false);
  	}	
}


  	
      RunSubmitContactForm();
      return (true);
	
}



function bookmark(url,title){
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}
