﻿
/* use header login pop up */

$(document).ready(function() {


    $("#ctl00_divloginpopMasterSecond").click(function() {

       /***********get page name This is used if user is on createaccountpage then hide the new user link in login popup start**/
       var sPath = window.location.pathname;
       var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
       /***********get page name This is used if user is on createaccountpage then hide the new user link in login popup end**/
        if ($("#divloginpopMaster").is(":hidden")) {
            $("#divloginpopMaster").slideDown("slow");
        }
        else {
            $("#divloginpopMaster").slideUp("slow");
        }
        /*********** This is used if user is on createaccountpage then hide the new user link in login popup start**/
         if(sPage=="CreateAccount.aspx")
          {document.getElementById("RloginpopupClose").style.display='none';}
         else
         {document.getElementById("RloginpopupClose").style.display='block';}
         /*********** This is used if user is on createaccountpage then hide the new user link in login popup end**/
    });

    $("#loginpopupClose").click(function() {
        $("#divloginpopMaster").slideUp("slow");
    });

    $("#RloginpopupClose").click(function() {
        $("#divloginpopMaster").slideUp("fast");showLogin();
    });
    
    
    

    $("#aloginpopup").click(function() {
        if ($("#divloginpopMaster").is(":hidden")) {
            $("#divloginpopMaster").slideDown("slow");

        }
        else {
            $("#divloginpopMaster").slideUp("slow");
        }
    });
});


/* use header login pop up */
