function validate_shutdown()
{

}

/**
* ouvre une popup modal afin d'afficher le détail
* sur un magasin (photo et texte)
*/	
function showPopup(contenu){
	$.modal(contenu, {onOpen: function (dialog) {
 			dialog.overlay.fadeIn('slow', function () {
			dialog.container.slideDown('slow', function () {
				dialog.data.fadeIn('slow'); 
    		});
 			});
		}, onClose: function (dialog) {
			dialog.data.fadeOut(1000);
			dialog.container.fadeOut(1000);
			dialog.overlay.fadeOut(1000, function () {
		        $.modal.close(); // closes the dialog after all events
   			});
		}
	});
}

function trim (myString)
{
	return myString.replace(/^\s+/g,'').replace(/\s+$/g,'')
}
	
// Cette méthode à été trouvée sur internet car elle semble plus rapide
// pour un remplacement de texte.
function replaceHtml(el, html) {
	var oldEl = (typeof el === "string" ? document.getElementById(el) : el);
	/*@cc_on // Pure innerHTML is slightly faster in IE
	oldEl.innerHTML = html;
	return oldEl;
	@*/
	var newEl = oldEl.cloneNode(false);
	newEl.innerHTML = html;
	oldEl.parentNode.replaceChild(newEl, oldEl);
	/* Since we just removed the old element from the DOM, return a reference
	to the new element, which can be used to restore variable references. */
	return newEl;
};



// -----------------------------------------------------------------------------
// Globals Flash accueil.
AC_FL_RunContent = 0;
DetectFlashVer = 0;
var requiredMajorVersion = 8;	// Major version of Flash required
var requiredMinorVersion = 0;	// Minor version of Flash required
var requiredRevision = 24;		// Revision of Flash required
// -----------------------------------------------------------------------------


	