	function checkAmount(elem,minValue){
		if(elem.value < minValue){
//			alert("Attenzione: non puoi comprare il prodotto a meno di " + minValue + " euro");
			Lightbox.show('../i/txt/attenzione-importo.gif', "L'importo minimo per questo prodotto &egrave; di " + minValue + " euro. Clicca su close per tornare al form d'ordine.");
//			elem.focus();
			return false;
		}else{
			return true;
		}
	}

	//	niftycube behaviour
	
	//	niftycube behaviour
		NiftyLoad = function(){
			Nifty("div#tr-box h2","fixed-height transparent big top");
			if(document.getElementById("home")){
				Nifty("div#tr-box ul","fixed-height transparent big br");
				Nifty("div#goleft","fixed-height transparent big bl");
				Nifty("div#goright","fixed-height transparent big br");
				Nifty("div#vetrina h2","fixed-height transparent big top");
			}
			
			if
			(
				document.getElementById("chi-siamo") || 
				document.getElementById("perche") || 
				document.getElementById("faq") || 
				document.getElementById("personalizza") || 
				document.getElementById("contattaci")
			){
				Nifty("div#tr-box p","fixed-height transparent big br");
			}
			if(document.getElementById("spot-mio-helpstyle")){
				Nifty("div#spot-mio-helpstyle","fixed-height transparent big bottom");
			}
			if(document.getElementById("spot-br")){
				Nifty("div#spot-br","fixed-height transparent big bottom");
				Nifty("div#spot-br h2","fixed-height transparent big top");
			}
			if(document.getElementById("prodotti")){
				Nifty("div.box-cat-prod h2","fixed-height transparent big top");
			}
		
		//	lista prodotti
			if(document.getElementById("prodotti")){
				Nifty("div#tr-box p","fixed-height transparent big br");
			}
		
		//	scheda
		
			if(document.getElementById("scheda")){
				Nifty("div#tr-box ul","fixed-height transparent big br");
			}
			if(document.getElementById("dettaglio-tl")){
				Nifty("div#dettaglio-tl","fixed-height transparent big bottom");
			}
			if(document.getElementById("sold-out")){
				Nifty("div#sold-out","fixed-height transparent big");
			}
		}


	//	mootools behaviour
		
		function toolTipsScheda() {
			var tipsScheda = new Tips($$('.qmark'), {
				initialize:function(){
					this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 400, wait: false}).set(0);
				},
				onShow: function(toolTip) {
					this.fx.start(1);
				},
				onHide: function(toolTip) {
					this.fx.start(0);
				}
			});
		}
		
		function toolTipsNews() {
			var tipsNews = new Tips($$('.tickerElement'), {
				initialize:function(){
					this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 400, wait: false}).set(0);
				},
				onShow: function(toolTip) {
					this.fx.start(1);
				},
				onHide: function(toolTip) {
					this.fx.start(0);
				}
			});
			
			
		}
		


	//	loadstuff
	
		var oldonload=window.onload;
		if(typeof(NiftyLoad)!='function') NiftyLoad=function(){};
		if(typeof(oldonload)=='function')
			window.onload=function(){
				oldonload();
//				AddCss();
				NiftyLoad();											// niftycube
				if(document.getElementById("home")){
					spotProdottiToggler();								// accordion div.spot-prodotti
					newsTicker();										// news ticker home page
					scrollerVetrina();									
					mioTicker();									
				}
				if(document.getElementById("ticker")){ toolTipsNews(); }
				if(document.getElementById("scheda")){ toolTipsScheda(); }
			};
			else
			window.onload=function(){
//				AddCss();
				NiftyLoad();											// niftycube
				if(document.getElementById("home")){
					spotProdottiToggler();								// accordion div.spot-prodotti
					newsTicker();										// news ticker home page
					scrollerVetrina();									
					mioTicker();									
				}
				if(document.getElementById("ticker")){ toolTipsNews(); }
				if(document.getElementById("scheda")){ toolTipsScheda(); }
			};

