//Analytics

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-16024783-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();



function mmLoadMenus() {
  if (window.mm_menu_0106190145_0) return;
  window.mm_menu_0106190145_0 = new Menu("root",177,43,"Geneva, Arial, Helvetica, sans-serif",13,"#FFFFFF","#FFFFFF","#695c4c","#017DD2","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0106190145_0.addMenuItem("INTENDED&nbsp;PARENTS","location='ip-main.php'");
  mm_menu_0106190145_0.addMenuItem("SURROGATES","location='sur-main.php'");
  mm_menu_0106190145_0.addMenuItem("PROFESSIONAL","location='pro-main.php'");
   mm_menu_0106190145_0.fontWeight="bold";
   mm_menu_0106190145_0.hideOnMouseOut=true;
   mm_menu_0106190145_0.bgColor='#5D5040';
   mm_menu_0106190145_0.menuBorder=1;
   mm_menu_0106190145_0.menuLiteBgColor='#5D5040';
   mm_menu_0106190145_0.menuBorderBgColor='#5D5040';

mm_menu_0106190145_0.writeMenus();
} // mmLoadMenus()




function setupFeatured() {
    $("#ipButton").click(function () {featured(1);});
    $("#surButton").click(function () {featured(2);});
    $("#profButton").click(function () {featured(3);});
}

function featured(featType) {
    
    imgSrc = "images/featured/slide0" + featType + "img.gif";
    htmlContent = "";
    
    switch (featType) {
        case 1:
           featTitle = "Intended Parents";
           descText = "As intended parents not only do you want to make sure your surrogates insurance needs are met, but you want to make sure your future bab(ies) are covered.  We cover your	surrogate as well as have programs for your bab(ies). Our goal is to cover all of your needs.";
           readLink = "ip-main.php";
           titleClass = "blueTitle";
           
           break;

        case 2:
            featTitle = "Surrogates";
            descText = "As a surrogate you want to make sure that you are covered from receipt of the oocyte to the birth of your IP’s bab(ies).  We offer programs that will cover your insurance needs.";
            readLink = "sur-main.php";
            titleClass = "greenTitle";

            break;
            
        case 3:
            featTitle = "Professionals";
            descText = "As intended parents not only do you want to make sure your surrogates insurance needs are met but you want to make sure your future bab(ies) are covered.  We cover your surrogate as well as have programs for your bab(ies).  Our goal is to cover all of your needs.";
            readLink = "pro-main.php";
            titleClass = "brownTitle";

            break;
    }

    //Prep Text
    htmlContent = "<h2 class='" + titleClass + "'>" + featTitle + "</h2>";
    htmlContent = htmlContent + "<p>" + descText + "</p>";
    htmlContent = htmlContent + "<p align='right'><a href='" + readLink + "'>read more</a></p>";

    //Load Image
    $("#featImg").attr("src", imgSrc);

    //Load Title and Text
    $("div.featuredContent").html(htmlContent);

}

function checkMsg() {

    if ($("#fName").val() == "" ) {

        alert("Please enter a full name");
        $("#fName").focus();
        return false;
    }

    if ($("#email").val() == "" ) {

        alert("Please enter an email address");
        $("#email").focus();
        return false;
    }

    if ($("#agency").val() == "" ) {

        alert("Please enter an agency");
        $("#agency").focus();
        return false;
    }

    if ($("#msg").val() == "" ) {

        alert("Please enter a message");
        $("#msg").focus();
        return false;
    }
    return true;
}
