<!-- Begin
function ConfirmEndo() {
     var response = window.confirm("This site contains information for licensed healthcare professionals in the United States. By entering this website you acknowledge that you are a licensed healthcare professional practicing in the United States.");
     if (response) {
          window.parent.location.href = "./endocrinologists/index.html";
     }
}
function ConfirmSurg() {
     var response = window.confirm("This site contains information for licensed healthcare professionals in the United States. By entering this website you acknowledge that you are a licensed healthcare professional practicing in the United States.");
     if (response) {
          window.parent.location.href = "./surgeons/index.html";
     }
}
function ConfirmNurse() {
     var response = window.confirm("This site contains information for licensed healthcare professionals in the United States. By entering this website you acknowledge that you are a licensed healthcare professional practicing in the United States.");
     if (response) {
          window.parent.location.href = "./nurses/index.html";
     }
}

function ConfirmEndo2() {
     var response = window.confirm("This site contains information for licensed healthcare professionals in the United States. By entering this website you acknowledge that you are a licensed healthcare professional practicing in the United States.");
     if (response) {
          window.parent.location.href = "../endocrinologists/index.html";
     }
}
function ConfirmSurg2() {
     var response = window.confirm("This site contains information for licensed healthcare professionals in the United States. By entering this website you acknowledge that you are a licensed healthcare professional practicing in the United States.");
     if (response) {
          window.parent.location.href = "../surgeons/index.html";
     }
}
function ConfirmNurse2() {
     var response = window.confirm("This site contains information for licensed healthcare professionals in the United States. By entering this website you acknowledge that you are a licensed healthcare professional practicing in the United States.");
     if (response) {
          window.parent.location.href = "../nurses/index.html";
     }
}
function ConfirmEndo3(url) {
     var response = window.confirm("This site contains information for licensed healthcare professionals in the United States. By entering this website you acknowledge that you are a licensed healthcare professional practicing in the United States.");
     if (response) {
         window.parent.location.href = url;
     }
}

function ConfirmLink1() {
     var response = window.confirm("You are now leaving the SUPPRELINLA.com web site and moving to an external web site independently operated and not managed by Endo Pharmaceuticals. Because Endo Pharmaceuticals does not control the content of the web site you are about to visit, and due to its constantly changing nature, we cannot be responsible for its content, accuracy, practices, or standards. If you do not wish to leave this site, click Cancel. Click OK to continue. ");
     if (response) {
          window.open("http://www.lwpes.org");
     }
}

function ConfirmLink2() {
     var response = window.confirm("You are now leaving the SUPPRELINLA.com web site and moving to an external web site independently operated and not managed by Endo Pharmaceuticals. Because Endo Pharmaceuticals does not control the content of the web site you are about to visit, and due to its constantly changing nature, we cannot be responsible for its content, accuracy, practices, or standards. If you do not wish to leave this site, click Cancel. Click OK to continue. ");
     if (response) {
          window.open("http://www.magicfoundation.org");
     }
}

function ConfirmLink3() {
     var response = window.confirm("You are now leaving the SUPPRELINLA.com web site and moving to an external web site independently operated and not managed by Endo Pharmaceuticals. Because Endo Pharmaceuticals does not control the content of the web site you are about to visit, and due to its constantly changing nature, we cannot be responsible for its content, accuracy, practices, or standards. If you do not wish to leave this site, click Cancel. Click OK to continue. ");
     if (response) {
          window.open("http://www.mayoclinic.com");
     }
}

function ConfirmLink4() {
     var response = window.confirm("You are now leaving the SUPPRELINLA.com web site and moving to an external web site independently operated and not managed by Endo Pharmaceuticals. Because Endo Pharmaceuticals does not control the content of the web site you are about to visit, and due to its constantly changing nature, we cannot be responsible for its content, accuracy, practices, or standards. If you do not wish to leave this site, click Cancel. Click OK to continue. ");
     if (response) {
          window.open("http://www.webmd.com");
     }
}

function ConfirmLink5() {
     var response = window.confirm("You are now leaving the SUPPRELINLA.com web site and moving to an external web site independently operated and not managed by Endo Pharmaceuticals. Because Endo Pharmaceuticals does not control the content of the web site you are about to visit, and due to its constantly changing nature, we cannot be responsible for its content, accuracy, practices, or standards. If you do not wish to leave this site, click Cancel. Click OK to continue. ");
     if (response) {
          window.open("http://www.caresfoundation.org");
     }
}

function ConfirmVideo1() {
     var response = window.confirm("You are now leaving the SUPPRELINLA.com web site and moving to an external web site independently operated and not managed by Endo Pharmaceuticals. Because Endo Pharmaceuticals does not control the content of the web site you are about to visit, and due to its constantly changing nature, we cannot be responsible for its content, accuracy, practices, or standards. If you do not wish to leave this site, click Cancel. Click OK to continue. ");
     if (response) {
          window.open("http://www.wfaa.com/video/?z=y&nvid=284256");
     }
}

function ConfirmVideo2() {
     var response = window.confirm("You are now leaving the SUPPRELINLA.com web site and moving to an external web site independently operated and not managed by Endo Pharmaceuticals. Because Endo Pharmaceuticals does not control the content of the web site you are about to visit, and due to its constantly changing nature, we cannot be responsible for its content, accuracy, practices, or standards. If you do not wish to leave this site, click Cancel. Click OK to continue. ");
     if (response) {
          window.open("http://itvisus.com/programs/hbhm/episode_913_PrecociousPuberty.asp");
     }
}

function popup() {
    window.open("./Family_Experience_3.06.09.mov","Window1","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=320,height=255");
}
//added by Chris Sitaram (20100414): as this utils.js file is specific to Parents section, the below applies to Parents section only.
//this shows Spanish PI button on the sidenav on all Parents pages.  With this there was no need to insert button on every page.
$(document).ready(function() {
    var d = new Date();
    var pathname = window.location.pathname;
    var HTMLfileName = pathname.substring(pathname.lastIndexOf('/') + 1).toLowerCase(); //index.html, brochure.html
    var MARCNum1="SP-1007/June 2009";
    var MARCNum2="SP00003042010";
    var MARCNum3="SP00004042010";
//the if and else is to switch between classes 'over' and 'off'; this is for the mouseover colors    
    if (HTMLfileName=="spanish-pi-for-supprelinla.html") {
	    $("div ul#sidenav").append("<li id='sideSpanishPI' class='over'><a href='../Spanish-PI-for-SupprelinLA.html'><span>Glossary</span></a></li>");
    }
    else {
	    $("div ul#sidenav").append("<li id='sideSpanishPI' class='off'><a href='../Spanish-PI-for-SupprelinLA.html'><span>Glossary</span></a></li>");
    }
//remove copyright year and assoc content; insert year (dynamically); all this without doing anything on individual pages

    if (HTMLfileName=="spanish-pi-for-supprelinla.html") {
       $("div#subfootright").html("&copy;&nbsp;" + d.getFullYear() + "&nbsp;Endo Pharmaceuticals.  All rights reserved.<br />SUPPRELIN<sup>&reg;</sup> LA is a registered trademark of Endo Pharmaceuticals.<br />" + MARCNum2 + "<br /><br /><a href='http://www.endo.com/privacy_legal.aspx' target='_blank'>Privacy/Legal</a>");
    }
    else if (HTMLfileName=="brochure.html") {
       $("div#subfootright").html("&copy;&nbsp;" + d.getFullYear() + "&nbsp;Endo Pharmaceuticals.  All rights reserved.<br />SUPPRELIN<sup>&reg;</sup> LA is a registered trademark of Endo Pharmaceuticals.<br />" + MARCNum3 + "<br /><br /><a href='http://www.endo.com/privacy_legal.aspx' target='_blank'>Privacy/Legal</a>");    
    }

});

// End -->