$(function() {
  $("#error_msg").dialog({
    bgiframe: true,
    height: 170,
    width: 400,
    modal: true,
    autoOpen: false,
    title: 'Authentication Error',
    buttons: {
       Ok: function() {
           $(this).dialog('close');
           }
       }
});
});


function submit_login(formid, hiddenbtn_id, btnvalue){
    document.getElementById(hiddenbtn_id).value = btnvalue;
    document.getElementById(formid).submit();
}

/*Hover Effects */

$(function() {
// OPACITY OF BUTTON SET TO 50%
$(".admin_logo").css("opacity","0.5");
$(".admin_logo").css("border","0");

// ON MOUSE OVER
$(".admin_logo").hover(function () {
 
// SET OPACITY TO 100%
$(this).stop().animate({
opacity: 1.0
}, "fast");
},
 
// ON MOUSE OUT
function () {
// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 0.5
}, "fast");
});
});


