// riconoscimento browser
    
 function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0)
	this.ie5 = (this.version.indexOf('MSIE 5')>0)
	this.min = (this.ns||this.ie)
}
is = new BrowserCheck()


// funzione per rollover immagine 

	function rollover(imgName,imgSrc,a)
	{
		if(document.images)
		{
        if (is.ie)
			document.images[imgName].src=imgSrc;
		
        else
        
        if (a==1)
            eval('document.contenuti.document.images["'+imgName+'"].src = "'+imgSrc+'"')
       }
	}   
	
	
// FUNZIONE POP UP

	function pop_up_foto(filename)
	{
	window.open(filename,'pop_foto','menubar=no,location=no,toolbar=no,status=no,scrollbars=no,resizable=no,width=410,height=320')
	}
	
	function pop_up_foto_vert(filename)
	{
	window.open(filename,'pop_foto_vert','menubar=no,location=no,toolbar=no,status=no,scrollbars=no,resizable=no,width=310,height=405')
	}
    
	function pop_up_vendita(filename)
	{
	window.open(filename,'pop_vendita','menubar=no,location=no,toolbar=no,status=no,scrollbars=no,resizable=no,width=310,height=455')
	}
    
	function pop_up_vendita2(filename)
	{
	window.open(filename,'pop_vendita2','menubar=no,location=no,toolbar=no,status=no,scrollbars=no,resizable=no,width=410,height=356')
	}
	
// funzione mostra, nascondi layer 

	function showObject(obj) {
	        if (ns4) obj.visibility = "show"
	        else if (ie4) obj.visibility = "visible"
	}
	
	function hideObject(obj) {
	        if (ns4) obj.visibility = "hide"
	        else if (ie4) obj.visibility = "hidden"
	}




