﻿$(function () {
    $('.lglnk').hover(function (e) {
        $('#logindrop').attr('class', 'right logindrop');
    });
});

$(function () {
    $('#logindrop').mouseleave(function (e) {
        $('#logindrop').attr('class', 'right logindrop hidden');
    });
});

$(function () {
    $('#hidepop').click(function (e) {
        $('#firsttime').hide();
    });
});

function ShowPopupWindow(url, name, height, width)
{ var helpWindow; helpWindow = window.open(url, name, "toolbar=no,menubar=no,statusbar=no,scrollbars=no,height=" + height + ",width=" + width); helpWindow.focus(); }

function ShowPopupWindow(url, name, height, width, scrollbars)
{ var helpWindow; helpWindow = window.open(url, name, "toolbar=no,menubar=no,statusbar=no,scrollbars=" + (scrollbars ? "yes,resizable=yes" : "no") + ",height=" + height + ",width=" + width); helpWindow.focus(); }

function PromptBeforeRedirect(url) {
    $(function() {    
     $('[id*="ol"]').attr('class', 'visible');
     $('[id*="dvMsg"]').attr('class', 'popupcontainer');
     $('[id*="btnMainAction"]').prop("href", url);
    });
}

function HidePromptPopup()
{
  $(function() {
     $('[id*="ol"]').attr('class', 'hidden');
     $('[id*="dvMsg"]').attr('class', 'hidden popupcontainer');
     $('[id*="btnMainAction"]').prop("href", url);
    });
}


//**********************
//Menu delays jquery
//**********************

$(function () {

    $('#menudelay').mouseover(function () {
        pop = setTimeout("enableMenu()", 75);
    });

    $('.holdall').mouseover(function () {
        enableMenu();
    });

    $('#menudelay').mouseout(function () {
        clearTimeout(pop);
        disableMenu();
    });

    $('.holdall').mouseout(function () {
        //disableMenu();
    });
});

function enableMenu() {
    $('#menudelay').removeClass('delay');
}

function disableMenu() {
    $('#menudelay').addClass('delay');
}
//Menu delays jquery END
//**********************


