	function setCookie(cookieName, value, expire){
//		alert("setCookie : " + cookieName + " " + value + " " + expire);
		MTVlaUtils.Cookie.set(cookieName,value,expire);
	}
	function getCookie(cookieName){
		var cookieValue = MTVlaUtils.Cookie.get(cookieName);
//		alert("getCookie : " + cookieValue);
		return cookieValue;
	}

	function getCurrentPath(){
		return MTVlaUtils.getPageUrl;
	}
	
	function getDomAndGateway(){
		var gateway = location.protocol + '//' + location.host + "/fs/gateway.php";
		return gateway;
	}		

	function loadChar(frame) {
		/*
		thisMovie("flashMenuSwf").goChar(frame);
		if (thisMovie("gameSlideSwf") != undefined) thisMovie("gameSlideSwf").goChar(frame-1);
		if (thisMovie("flashLoginSwf").goChar != undefined) thisMovie("flashLoginSwf").goChar(frame-1);
		//Set cookie of selected character
		MTVlaUtils.Cookie.set("CHARACTER",frame,30);
		*/
	}	

	function thisMovie(movieName) {
		if (navigator.appName.indexOf("Microsoft") != -1) {
			return window[movieName];
		}
		else {
			return document[movieName];
		}
	}
	
	function getCurrentUserLoged()
	{
		var retValue = 0;
		if( Boolean(MTVlaUtils.Cookie.get("CURRENTUSERID"))){ retValue = MTVlaUtils.Cookie.get("CURRENTUSERID");}
		return retValue;
	}
	
	function getDataServicePath()
	{
		return (Boolean(paramDataPerfil))? paramDataPerfil:"/userManager/data/mundonick.xml";
	}
	
	function getRedirectionPathParam()
	{
		var paramRedir = MTVlaUtils.Query.get("rdu");
		
		return (Boolean(paramRedir))? paramRedir:"";
	}
	
	function getInstanceID()
	{
		return (Boolean(MTVlaUtils.Query.get("pid")))? MTVlaUtils.Query.get("pid") : paramIID;
	}
	
	function jsAlert(msg)
	{
		if (Boolean(msg)) alert(msg);
	}