//dojo.provide("emmapp");
//dojo.requireLocalization("emm.res", "userMessages");

// define the emmapp place holder
emmapp = { 

	isGuestUser: true,
	
	// init
	init: function() {
		console.debug("emmapp.init");
			
		// initialize the page
		emmapp.page.init();
		
		console.debug("emmapp.init done");
	},

	showWaitCursor: function() {
		document.body.style.cursor = 'wait';
		//document.body.style.cursor = url('/images/ajax-loader.gif');
	},
	
	showDefaultCursor: function() {
		document.body.style.cursor = 'default';
	},
	
	openWindow: function(title, url) {	
		var w = window.open(url, title, 
				'width=1024,height=760,status=no,toolbar=no,scrollbars=yes,resizable=yes');
	    
	    return w;
	    
	}
	
	/*
	openDialog: function(title, url) {

		emmapp.page.childDialog = new dijit.Dialog({
	        title: title,
	        style: "width: 450px; height: 400px",
	        href: url
	    });

		emmapp.page.childDialog.show();
	},

	closeDialog: function() {

		if ( emmapp.page.childDialog != null ) {
			emmapp.page.childDialog.hide();
			emmapp.page.childDialog = null;
		}
	},
	*/
		
	
	
};

//define the page load event to init the emmapp
dojo.addOnLoad(function(){
	emmapp.init();
	});

//alert("emm.js done");

