//<script language="javascript">function MM_openBrWindow(theURL,winName,features) { //v2.0
	wndView=window.open(theURL,winName,features);
	wndView.focus();
}

  function mOvr(src,clrOver) {
    if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'hand';
	  src.bgColor = clrOver;
	}
  } 
  function mOut(src,clrIn) {
	if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.bgColor = clrIn;
	}
  }


function RollOver(strImgName, strPageImg) {
		this.strImgOff = strImgName + "_0.gif";
		this.strImgOn = strImgName + "_1.gif";
		this.objPageImg = null;
		this.strPageImg = strPageImg;
		this.objImgOn = new Image();
		this.objImgOff = new Image();
		this.rollOn = rollOn;
		this.rollOff = rollOff;
		this.objImgOn.src = this.strImgOn;
		this.objImgOff.src = this.strImgOff;
	}
	function rollOn() {
	   if (this.objPageImg != null) this.objPageImg.src = this.objImgOn.src;
	   else if ((this.objPageImg = eval("document.images." + this.strPageImg)) != null) this.objPageImg.src = this.objImgOn.src;
	}
	function rollOff() {
	   if (this.objPageImg != null) this.objPageImg.src = this.objImgOff.src;
	   else if ((this.objPageImg = eval("document.images." + this.strPageImg)) != null) this.objPageImg.src = this.objImgOff.src;
	}
	
		// create rollover buttons, for header...
	roHome = new RollOver("../images/home_up", "home");
	roEmail = new RollOver("../images/email", "email");
	roLalipu = new RollOver("../images/lalipu_up", "lalipu");
	roSostienici = new RollOver("../images/sostie_up", "sostienici");
	roEventi = new RollOver("../images/eventi_up", "eventi");
	roOasi = new RollOver("../images/oasi_up", "oasi");
	roSedi = new RollOver("../images/sedi_up", "sedi");


<!-- Abbigliamento (function13,16 sono free)-->
function openUnder00()
{     window.open('em_412.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder0()
{     window.open('em_440.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder1()
{     window.open('em_740.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder2()
{     window.open('em_741.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder3()
{     window.open('em_742.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder4()
{     window.open('em_743.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder5()
{     window.open('em_750.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder6()
{     window.open('em_751.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder7()
{     window.open('em_752.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder8()
{     window.open('em_753.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}
function openUnder9()
{     window.open('em_730.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}
function openUnder10()
{     window.open('em_731.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}
function openUnder11()
{     window.open('em_732.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}
function openUnder12()
{     window.open('em_708.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=510,marginwidth=0,marginheight=0');
}

function openUnder14()
{     window.open('em_722.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=460,marginwidth=0,marginheight=0');
}
function openUnder15()
{     window.open('em_720.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}
function openUnder16()
{     window.open('em_733.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder17()
{     window.open('em_724.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}
function openUnder18()
{     window.open('em_709.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=480,marginwidth=0,marginheight=0');
}
function openUnder19()
{     window.open('em_489.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}
function openUnder20()
{     window.open('em_490.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}
function openUnder21()
{     window.open('em_186.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}
function openUnder22()
{     window.open('em_773.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

<!-- fine Abbigliamento -->

<!-- Peluche -->

function openUnder0ps()
{     window.open('em_242.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder1ps()
{     window.open('em_252.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder2ps()
{     window.open('em_143.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder3ps()
{     window.open('em_241.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder4ps()
{     window.open('em_464.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder5ps()
{     window.open('em_760.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder6ps()
{     window.open('em_761.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder7ps()
{     window.open('em_762.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder8ps()
{     window.open('em_763.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder9ps()
{     window.open('em_771.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder10ps()
{     window.open('em_470.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder11ps()
{     window.open('em_251.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder12ps()
{     window.open('em_772.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder13ps()
{     window.open('em_773.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

<!-- fine Peloche -->

<!-- Audiovisivi -->

function openUnder0p()
{     window.open('em_102.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder1p()
{     window.open('em_106.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}
<!-- fine Audiovisivi -->

<!-- Oggettistica -->
function openUnder0og()
{     window.open('em_502.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder1og()
{     window.open('em_706.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder2og()
{     window.open('em_707.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder3og()
{     window.open('em_158.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder4og()
{     window.open('em_164.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder5og()
{     window.open('em_401.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder6og()
{     window.open('em_154.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder7og()
{     window.open('em_330.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder8og()
{     window.open('em_702.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=350,height=480,marginwidth=0,marginheight=0');
}

function openUnder9og()
{     window.open('em_703.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder10og()
{     window.open('em_280.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder11og()
{     window.open('em_711.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder12og()
{     window.open('em_714.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=480,marginwidth=0,marginheight=0');
}

function openUnder13og()
{     window.open('em_513.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder14og()
{     window.open('em_705.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

function openUnder15og()
{     window.open('em_775.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}
<!-- fine Oggettistica -->

<!-- inizio Libri -->

function openUnder1lb()
{     window.open('em_12.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}
function openUnder2lb()
{     window.open('em_13.htm','navigation','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,width=560,height=450,marginwidth=0,marginheight=0');
}

<!-- fine Libri -->

//modifiche rbessone per carrello/emporio	//funzione per formattare il prezzo
	function formattaPrezzo(thisone){
		var wd
		wd="w"
		var tempnum=thisone
			for (i=0;i<tempnum.length;i++){
				if (tempnum.charAt(i)=="."){
					wd="d"
					break
				}
			}
			if (wd=="w")
				return tempnum+".00"
			else{
				if (tempnum.charAt(tempnum.length-2)=="."){
					return tempnum+"0"
				}
				
				else{
					tempnum=Math.round(tempnum*100)/100
					return tempnum
				}
			}
	}		//funzione per controllare il campo vuoto
	function campoVuoto(campo,messaggio)
	{
		if(campo.value.trim() == ''){
			alert(messaggio);
			campo.focus();
			return (0);
		}
	}
	
	//funzione per controllare il valore con una regexp
	function campoRegExp(campo,exp,messaggio)
	{
		var reg = exp
		if(!reg.test(campo.value)){
			alert(messaggio);
			campo.focus();
			return (0);
		}
	}
	
	//funzione per controllare la selezione di una combo box
	function selectVuoto(campo,messaggio)
	{
		if(campo.value == "0"){
			alert(messaggio);
			campo.focus();
			return (0);
		}
	}
	
	//funzione per controllare la lunghezza di una textarea
	function maxChars(ogg,maxchars)
	{
		if (ogg.value.length > maxchars){
		  ogg.value=ogg.value.substr(0,maxchars);
		}
	}			/*function : format_number()  
	version: 1.0.0  
	This function formats a numeric value passed in to it with specified number of  
	decimal values. numeric value will not be rounded.  
	pnumber : numeric value to be formatted.  
	decimals : number of decimal points desired.  

	Author: Buddhike de Silva  
	Date: 21-Nov-2002 11:16 AM*/  

	/*  
	revision: 1.1.0  
	Author: M. Cassim Farook  
	Date: 21-Nov-2002 10:16 PM  
	Notes: No offense buddhike...but i had to rewrite the code  
	works for ADT (any dam thing)  
	usage: x = format_number(123.999, 2)  
	*/  

	/*  
	revision: 1.2.0  
	Authors: Buddhike de Silva  
	Date: 22-Nov-2002 12:07 PM  
	Notes: Optimized for best performence.  
	usage: x = format_number(123.999, 2)  
	*/  

	/* 
	 * Revision: 1.3 
	 * Author: Mike Robb (JS-X.com) 
	 * Date: May 26, 2003 
	 * Notes:  Changed to deal with negative numbers. 
	 *         Fixed length of final answer. 
	 *         Work-around for javascript internal math problem with rounding negative numbers. 
	 */ 

	/*
	 * Revision 1.4
	 * Author: LeAnn Roberts
	 * Date: September, 2003
	 * Note: Modified the if logic: Math.pow()
	 */

	/*
	 * Revision 1.5
	 * Author: Robert Heggdal
	 * Date: February, 2004
	 * Note: Modified check for negative number by replacing parseInt with parseFloat so that negative numbers between zero and minus one are recognized as such.
	 */ 

	/*
	 * Revision 1.6
	 * Author: Naveen
	 * Date: February, 2004
	 * Note: Rewrote format_number to correct a logic problem.
	 */

	/*
	 * Revision 1.7
	 * Author: JS-X.com
	 * Date: February, 2004
	 * Note: Added wrapper around format_number as negative values were dropped from
	 *       the logic.
	 */

	function format_number(p,d) 
	{
	  var r;
	  if(p<0){p=-p;r=format_number2(p,d);r="-"+r;}
	  else   {r=format_number2(p,d);}
	  return r;
	}
	function format_number2(pnumber,decimals) 
	{
	  var strNumber = new String(pnumber);
	  var arrParts = strNumber.split('.');
	  var intWholePart = parseInt(arrParts[0],10);
	  var strResult = '';
	  if (isNaN(intWholePart))
	    intWholePart = '0';
	  if(arrParts.length > 1)
	  {
	    var decDecimalPart = new String(arrParts[1]);
	    var i = 0;
	    var intZeroCount = 0;
	     while ( i < String(arrParts[1]).length )
	     {
	       if( parseInt(String(arrParts[1]).charAt(i),10) == 0 )
	       {
	         intZeroCount += 1;
	         i += 1;
	       }
	       else
	         break;
	    }
	    decDecimalPart = parseInt(decDecimalPart,10)/Math.pow(10,parseInt(decDecimalPart.length-decimals-1)); 
	    Math.round(decDecimalPart); 
	    decDecimalPart = parseInt(decDecimalPart)/10; 
	    decDecimalPart = Math.round(decDecimalPart); 

	    //If the number was rounded up from 9 to 10, and it was for 1 'decimal' 
	    //then we need to add 1 to the 'intWholePart' and set the decDecimalPart to 0. 

	    if(decDecimalPart==Math.pow(10, parseInt(decimals)))
	    { 
	      intWholePart+=1; 
	      decDecimalPart="0"; 
	    } 
	    var stringOfZeros = new String('');
	    i=0;
	    if( decDecimalPart > 0 )
	    {
	      while( i < intZeroCount)
	      {
	        stringOfZeros += '0';
	        i += 1;
	      }
	    }
	    decDecimalPart = String(intWholePart) + "." + stringOfZeros + String(decDecimalPart); 
	    var dot = decDecimalPart.indexOf('.');
	    if(dot == -1)
	    {
	      decDecimalPart += '.'; 
	      dot = decDecimalPart.indexOf('.'); 
	    } 
	    var l=parseInt(dot)+parseInt(decimals); 
	    while(decDecimalPart.length <= l) 
	    {
	      decDecimalPart += '0'; 
	    }
	    strResult = decDecimalPart;
	  }
	  else
	  {
	    var dot; 
	    var decDecimalPart = new String(intWholePart); 

	    decDecimalPart += '.'; 
	    dot = decDecimalPart.indexOf('.'); 
	    var l=parseInt(dot)+parseInt(decimals); 
	    while(decDecimalPart.length <= l) 
	    {
	      decDecimalPart += '0'; 
	    }
	    strResult = decDecimalPart;
	  }
	  return strResult;
	}
		
	//trim di stringhe
	function stringTrim() 
	{
		return this.replace(/^\s+/, '').replace(/\s+$/, '');
	}
	
	String.prototype.trim = stringTrim;
	
		
	//funzione per il redirect temporizzato
	function redirect(url,secondi)
	{
		if(url!=''){
			if(secondi==''||isNaN(secondi)) secondi = 5;
			window.setTimeout("window.location='"+url+"'",secondi*1000);}
	}
