﻿function popup_gallery2(str) 
{
	searchWin = window.open(str,'popup',"top=100,left=80,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,WIDTH=800,HEIGHT=550");
}


var esel = new Object();

esel.ad_url = escape('/catalogo/galleria/nuovaApertura/nuova_apertura.html?popup=1');     //  l'url a seconda della pagina che vuoi che appaia ogni volta che clicchi 


var path_popup = '/catalogo/galleria/nuovaApertura/nuova_apertura.html';
esel.small_path = '/catalogo/angolo/esel_s.swf';		//    Angolino Chiuso flash <---lascia invariato
esel.small_image = escape('/catalogo/angolo/image/beispiel_s.swf');	//   Immagine dietro quando piccolo <--- lascia invariato
esel.big_path = '/catalogo/angolo/esel_b.swf';				//   Lascia invariato flash aperto
esel.big_image = escape('/catalogo/angolo/image/tempg.gif');     //   Immagine dietro 


// --------------------------------------------------------- PUOI CAMBIARE SOLO GRANDEZZE ANGOLO

esel.small_width = '100'; //larghezza chiuso
esel.small_height = '100';//altezza chiuso
esel.small_params = 'ico=' + esel.small_image;
esel.big_width = '650'; //larghezza aperto 
esel.big_height = '650'; //altezza aperto
esel.big_params = 'big=' + esel.big_image + '&ad_url=' + esel.ad_url;
function sizeup987(){
	document.getElementById('eselcornerBig').style.top = '0px';
	document.getElementById('eselcornerSmall').style.top = '-1000px';
}
function sizedown987(){
	document.getElementById("eselcornerSmall").style.top = "0px";
	document.getElementById("eselcornerBig").style.top = "-1000px";
}
esel.putObjects = function () {
document.write('<div id="eselcornerSmall" onclick="javascript:popup_gallery2(\''+path_popup+'\');" style="position:absolute;width:'+ esel.small_width +'px;height:'+ esel.small_height +'px;z-index:9999;right:0px;top:0px;">');
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="eselcornerSmallObject" width="'+esel.small_width+'" height="'+esel.small_height+'">');
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ esel.small_path +'?'+ esel.small_params +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+esel.small_params+'"/>');
document.write('<embed src="'+ esel.small_path + '?' + esel.small_params +'" name="eselcornerSmallObject" wmode="transparent" quality="high" width="'+ esel.small_width +'" height="'+ esel.small_height +'" flashvars="'+ esel.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div></script>');
document.write('<div id="eselcornerBig" onclick="javascript:popup_gallery2(\''+path_popup+'\');" style="position:absolute;width:'+ esel.big_width +'px;height:'+ esel.big_height +'px;z-index:9999;right:0px;top:0px;">');
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="eselcornerBigObject" width="'+ esel.big_width +'" height="'+ esel.big_height +'" >');
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ esel.big_path +'?'+ esel.big_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ esel.big_params +'"/>');
document.write('<embed src="'+ esel.big_path + '?' + esel.big_params +'" id="eselcornerBigEmbed" name="eselcornerBigObject" wmode="transparent" quality="high" width="'+ esel.big_width +'" height="'+ esel.big_height +'" flashvars="'+ esel.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
setTimeout('document.getElementById("eselcornerBig").style.top = "-1000px";',1000);
}
esel.putObjects();
