// JavaScript Document
function finestra(url,lar,alt){
	window.open(url,"finestra","width="+lar+",height="+alt+",scrollbars=1");	
}

function showdiv(nome){
	if( eval("document.getElementById(\""+nome+"\").style.display == 'block'") ) {eval("document.getElementById(\""+nome+"\").style.display = 'none'");
	}else{eval("document.getElementById(\""+nome+"\").style.display = 'block'")}
}

function displaydiv(nome){
	eval("document.getElementById(\""+nome+"\").style.display = 'block'");
}
function hiddendiv(nome){
	eval("document.getElementById(\""+nome+"\").style.display = 'none'");
}

function msgandgo(msg,goto){
	if( confirm(msg) ){ window.location=goto; }
}
function showslide(div){
	if( document.getElementById(div).style.display == 'none'){
		new Effect.SlideDown(div,{ duration: 0.5 } );	
	} else {
		new Effect.SlideUp(div,{ duration: 0.5 } );		
	}
	return;
}
function showslides(div){ showslide(div); }

function showfade(div){
	if( document.getElementById(div).style.display == 'none'){
		new Effect.Appear(div,{ duration: 0.5 } );	
	} else {
		new Effect.Fade(div,{ duration: 0.5 } );		
	}
	return;
}

function showblind(div){
	if( document.getElementById(div).style.display == 'none'){
		new Effect.BlindDown(div,{ duration: 0.5 } );	
	} else {
		new Effect.BlindUp(div,{ duration: 0.5 } );		
	}
	return;
}

function multiflash(){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="680" height="60">');
	document.write('<param name="movie" value="banner.swf"><param name="quality" value="high">');
	document.write('<embed src="banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="680" height="60"></embed>');
	document.write('</object>');
}

function vetrina(){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="200">');
    document.write('<param name="movie" value="vetrina.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="vetrina.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="200"></embed>');
	document.write('</object>');
}
function carraro(){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="680" height="140">');
    document.write('<param name="movie" value="bannercarraro.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="bannercarraro.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="680" height="140"></embed>');
	document.write('</object>');
}