﻿/// <reference path="jquery-1.4.1-vsdoc.js" />
//hover states on the static widgets
$(document).ready(function() {
    $('.ui-state-default').hover(
                function() { $(this).addClass('ui-state-hover'); },
                function() { $(this).removeClass('ui-state-hover'); }
         );
});

$(document).ready(function() {
    $('.ui-state-default').focus(
                function() { $(this).addClass('ui-state-focus'); }
         );
});

$(document).ready(function() {
    $('.ui-state-default').blur(
                function() { $(this).removeClass('ui-state-focus'); }
         );
});

//Dialogs
function showDialog(selector) {    
    jQuery(selector).dialog('open');
};

function showDialogNoEffect(selector) {

    var effect = jQuery(selector).dialog('option', 'show');

    jQuery(selector).dialog('option', 'show', '');
    jQuery(selector).dialog('open');
    jQuery(selector).dialog('option', 'show', effect);
};

function hideDialog(selector) {
    jQuery(selector).dialog('close');
};

