dojo.require("dojo.fx"); //for dojo.fx.chain and dojo.fx.combine
dojo.require("dojo.parser");
dojo.require("dijit.form.Button");
dojo.require("dijit.Tooltip");
dojo.require("dijit.Dialog");
dojo.require("dijit.form.ComboBox");




dojo.addOnLoad(function() {
            		    
		    expand = dojo.animateProperty({node: "animDiv",duration: 1000,properties: {width: {end: 450},height:{end:60}}});
		    contract = dojo.animateProperty({node: "animDiv",duration: 1000,properties: {width: {end: 160},height:{end:60}}});
		    
		    fadeOut = dojo.fadeOut({node: "toolbar",duration: 1000});
		    fadeIn = dojo.fadeIn({node: "toolbar",duration: 1000});

		    wipeOut = dojo.fx.wipeOut({node: "toolbar",duration: 1000});
		    wipeIn = dojo.fx.wipeIn({node: "toolbar",duration: 1000});
            
            rollup = dojo.fx.combine([fadeOut, wipeOut]);
		    rollout = dojo.fx.combine([fadeIn, wipeIn]);
		    
		 
});


function showFindDialog(){
    // set the content of the dialog:
    dijit.byId("finddiv").show();
}
function showSearchDialog(){
    // set the content of the dialog:
    dijit.byId("searchdiv").show();
}
function showHelpDialog(){
    // set the content of the dialog:
    dijit.byId("helpdiv").show();
}
function showUpdateDialog(){
    // set the content of the dialog:
    dijit.byId("updatediv").show();
}
function showAboutDialog(){
    // set the content of the dialog:
    dijit.byId("aboutdiv").show();
}
function showIncidentAlert(){
    dijit.byId("incidentdiv").show();
}
function hideIncidentAlert(){
    dijit.byId("incidentdiv").hide();
}

function showAvailableDates(){
    dijit.byId("availabledatesdiv").show();
}

function showLoadingDialog(){
    // set the content of the dialog:
    dijit.byId("loadingdiv").show();
}

function hideLoadingDialog(){
    // set the content of the dialog:
    dijit.byId("loadingdiv").hide();
}

function showMaxDateDialog(){
    dijit.byId("maxDateDiv").show();    
}
function hideMaxDateDialog(){
    dijit.byId("maxDateDiv").hide();    
}
