dojo.require("dijit.form.Button");
dojo.require("dojo.parser");	// scan page for widgets and instantiate them

dojo.addOnLoad(_initIndex);


function _initIndex(){


		switch (user.userLevel) {
			case "VISIT":
				dojo.byId("welcomeMessage").innerHTML = translation.welcomeMessage;
				break;
			case "SUPERADMIN":
				break;
			default:
				dojo.byId("welcomeMessage").innerHTML = translation.loggedMessage;
				break;
		}

	if (conference.urlWebSite != "" && user.response == false) {

	  backButton = new dijit.form.Button({
	                                     id : "backButtonWidget"
	                                    ,label  : translation.BackButton 
	                                    ,onClick : backButton
	  });
		dojo.byId("backButton").appendChild(backButton.domNode)
	}
		

} // fin 	_initIndex

function backButton() {

	document.location = "http://" + conference.urlWebSite;
		
}	// fin backButton
