xGap=(navigator.appName == "Netscape")?11:9;
yGap=(navigator.appName == "Netscape")?31:29;

function puntivendita(quale)
{
	var xCrd=(screen.availWidth-600-xGap)/2;
	var yCrd=(screen.availHeight-438-yGap)/2;
	windowFeatures = 'width=600,height=438,status=no,top='+yCrd+',left='+xCrd
	newWindow=window.open('../'+quale+'.asp', 'pop', windowFeatures);
	newWindow.focus();
}

function puntimondo()
{
	var xCrd=(screen.availWidth-600-xGap)/2;
	var yCrd=(screen.availHeight-438-yGap)/2;
	windowFeatures = 'width=600,height=438,status=no,top='+yCrd+',left='+xCrd
	newWindow=window.open('../punti_mondo.html', 'pop', windowFeatures);
	newWindow.focus();
}
function apriVideoBackstage()
{
	var xCrd=(screen.availWidth-800-xGap)/2;
	var yCrd=(screen.availHeight-450-yGap)/2;
	windowFeatures = 'width=800,height=450,status=no,top='+yCrd+',left='+xCrd
	newWindow=window.open('/video_backstage.html', 'pop', windowFeatures);
	newWindow.focus();
}

function apriRadio(){
	window.open("http://www.tailoradio.it/conbipel/popup/index.html","radio","width=318,height=150,left=50,top=50,resizable=no,menubar=no,toolbar=no,scrollbars=no,status=no,location=no");
}

function openCredits()
{
	var xCrd=(screen.availWidth-300-xGap)/2;
	var yCrd=(screen.availHeight-300-yGap)/2;
	windowFeatures = 'width=300,height=300,status=no,top='+yCrd+',left='+xCrd
	newWindow=window.open("credits.html", "credits", windowFeatures);
}

function showDonna(){
	document.getElementById('collezioneDonna').style.display='block';
	document.getElementById('collezioneUomo').style.display='none';
}
function showUomo(){
	document.getElementById('collezioneDonna').style.display='none';
	document.getElementById('collezioneUomo').style.display='block';
}
function hide(){
	document.getElementById('collezioneDonna').style.display='none';
	document.getElementById('collezioneUomo').style.display='none';
}
function showThumbs(){
	document.getElementById('bottone').style.display='none';
	document.getElementById('thumbs').style.display='block';
}


function showHide(quale)
{
	if (document.layers)
	{
		current = (document.layers[quale].display == 'block') ? 'none' : 'block';
		document.layers[quale].display = current;
	}
	else if (document.all)
	{
		current = (document.all[quale].style.display == 'block') ? 'none' : 'block';
		document.all[quale].style.display = current;
	}
	else if (document.getElementById)
	{
		vista = (document.getElementById(quale).style.display == 'block') ? 'none' : 'block';
		document.getElementById(quale).style.display = vista;
	}
	
	if(quale == "popupModale"){
		var selects = document.getElementById("page").getElementsByTagName("select");
			for (i = 0; i != selects.length; i++) {
				if(selects[i].style.visibility == "hidden"){
					selects[i].style.visibility = "visible";
				}else{
					selects[i].style.visibility = "hidden";
				}
				
		}
	}
	
	
}

function zoomPromo(immagine)
{
	var xCrd=(screen.availWidth-424-xGap)/2;
	var yCrd=(screen.availHeight-600-yGap)/2;
	windowFeatures = 'width=424,height=600,status=no,top='+yCrd+',left='+xCrd
	newWindow=window.open("promo.asp?immagine="+immagine+"", "credits", windowFeatures);
}
function zoomPromoOriz(immagine)
{
	var xCrd=(screen.availWidth-600-xGap)/2;
	var yCrd=(screen.availHeight-334-yGap)/2;
	windowFeatures = 'width=600,height=334,status=no,top='+yCrd+',left='+xCrd
	newWindow=window.open("promo.asp?immagine="+immagine+"", "credits", windowFeatures);
}
function collezioneZoom(quale)
{
	var xCrd=(screen.availWidth-840-xGap)/2;
	var yCrd=(screen.availHeight-620-yGap)/2;
	windowFeatures = 'width=840,height=620,status=no,top='+yCrd+',left='+xCrd
	newWindow=window.open('http://www.conbipel.it/ita/collezione_zoom/dettaglio_'+quale+'.html', 'popCollZoom', windowFeatures);
	newWindow.focus();
}