$(document).ready(function()
{
    // Dialog
    $('#itemDialog').dialog({
        autoOpen: false,
        width: 400,
        maxWidth: 600,
        height: 200,
        minHeight: 200,
        maxHeight: 400,
        dialogClass: "dialog",
    //        buttons: {
    //            "Ok": function() {
    //                $(this).dialog("close");
    //            }
    //        }
    });

    // Dialog
    $('#historyDialog').dialog({
        autoOpen: false,
        width: 400,
        maxWidth: 600,
        height: 200,
        minHeight: 200,
        maxHeight: 400,
        dialogClass: "dialog",
    //        buttons: {
    //            "Ok": function() {
    //                $(this).dialog("close");
    //            }
    //        }
    });
    docReady("#tabsAjax");
    setupLinks("#primaryDiv");
	try
	{
		$('#switcher').themeswitcher();
	}
	catch (e)
	{
	}
    $(document).ajaxStart(function(){
        $("#ajaxLoader").show();
    });
    $(document).ajaxStop(function(){
        $("#ajaxLoader").hide();
    });
});

