function animate(temp) {
	$("#PictureWrapper").fadeOut("slow", function () {$("#HomeImage").attr({src:emp_photos[temp]});}).animate({opacity: 1}, 600); 
	$("#PictureWrapper").fadeIn("slow");
	temp=temp+1;
	if(temp==2){temp=0;}
	setTimeout("animate("+temp+")", 7000);

}

$(document).ready(function(){
   // Your code here
   setTimeout("animate(0)", 7000);
});

function emailobs (email) { 
	var string1 = email;
	var string2 = "@";
	var string3 = "thomasfinancial.com";
	var string4 = string1 + string2 + string3;
	document.location="mail" + "to:" + string4;
}

function handleSubmit()
    {
        //name is required
        if (document.getElementById("NAME").value == "") 
        {
            alert("Name is a required field. Please enter your name and try again.");
            document.getElementById("NAME").focus();
            return false;
        }

        if (document.getElementById("EMAIL").value == "")
        {
            alert("Please enter a valid E-Mail address.")
            document.getElementById("EMAIL").focus();
            return false;
        }   
        
        document.getElementById("hAction").value = "Clicked";
        document.frmContactUs.submit();
        return true;
    }