function FrontEnd() {
	
	this.wait = function (w) {
		if (w)
			document.body.style.cursor = "wait";
		else
			document.body.style.cursor = "default";
	}
	
	this.getParam = function (ji) {
		hu = window.location.search.substring(1);
		gy = hu.split("&");
		for (i=0;i<gy.length;i++) {
			ft = gy[i].split("=");
			if (ft[0] == ji) {
				return ft[1];
			}
		}
		return null;
	}
	
	this.loadPage = function(address) {
		document.location.href = address;
	}
}

var fe = new FrontEnd();





// funzioni per il cambio di immagine nel dettaglio negozio
function changePvImage(image_id) 
{ 
    var m = $('pv_image'); 
    //alert(""+m +  ":" + $(image_id));
    //m.set('src',$(image_id).src); 
    m.src = $(image_id).src;
    /*
    var fx = new Fx.Tween(m,{ 
    duration: 1500, 
    onComplete: function(){  
    m.set('src','/img/' + $(image_id).get('src')); 
    m.fade('in'); 
    } 
    }); 
    fx.start('opacity',1,0); 
    */
}

function zoomDivMap() {
 	mappa.loadTo('contenitoreBig');
 	/*
	var pos = $('contenitore').getStyle("position");
	if (pos == 'absolute') {
		$('contenitore').setStyle("position",'relative');
	} else {
		$('contenitore').setStyle("width",'100%');
		$('contenitore').setStyle("height",'250px');
		$('contenitore').setStyle("left",'0');
		$('contenitore').setStyle("top",'0');
		$('contenitore').setStyle("position",'absolute');
	}
	*/
	
}
