var trombo2=null;
var trombo=null;
var page=null;
var picture=null;

//AFFICHER UN POPUP taille fixe

function popup(nom)	{
if (!trombo || trombo.closed) 		{
		
trombo=window.open(nom,'','width=550,height=550,toolbar=no,location=no,directories=yes,status=yes,scrollbars=yes,resizable=yes');
trombo.focus();	
						
} 
else {
trombo.window.close();
parent=this;
trombo=window.open(nom,'','width=550,height=550,toolbar=no,location=no,directories=yes,status=yes,scrollbars=yes,resizable=yes');		
trombo.focus();
		}
	}


//AFFICHER UN POPUP avec ascenceurs (au choix) pour page en dur
//pour l'ascenceur : 'yes' ou 'no'

function popup_page(nom,largeur,hauteur,ascenceur)	{
if (!page || page.closed) 		{
		
page=window.open(nom,'','width='+largeur+',height='+hauteur+',toolbar=no,location=no,directories=no,status=no,scrollbars='+ascenceur+',resizable=no');
page.focus();	
						
} 
else {
page.window.close();
parent=this;
page=window.open(nom,'','width='+largeur+',height='+hauteur+',toolbar=no,location=no,directories=no,status=no,scrollbars='+ascenceur+',resizable=no');		
page.focus();
		}
	}



//AFFICHER UNE PHOTO, un titre, une légende et un mail dans un tableau

function popup_image(photo,largeur,hauteur,titre,legende,email)	{
	
	ltabplus=20;
	htabplus=80;
	lplus=40;
	hplus=140;

	limage=eval(largeur);
	himage=eval(hauteur);
	
	ltableau=limage + ltabplus;
	htableau=himage + htabplus;

	lpage=limage + lplus;
	hpage=himage + hplus;
	
	
if (!picture || picture.closed) 		{
		
	picture=window.open('','','width='+lpage+',height='+hpage+',toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no');
	picture.document.write('<HTML><HEAD><TITLE>'+legende+'</TITLE><link rel=stylesheet href=http://www.rennet.org/php/styles.css></HEAD><BODY bgcolor=#57809F>');
	picture.document.write('<table width='+ltableau+' border=0 cellspacing=0 cellpadding=0 align=center><tr><td><div align=right><a href=javascript:self.close();><img src=http://www.rennet.org/php/media/angle_h_croix.gif width=15 height=14 align=top border=0></a></div></td></tr></table><table width='+ltableau+' border=0 cellspacing=0 cellpadding=1 bgcolor=#FFFFFF align=center><tr><td><table width=100% border=0 cellspacing=0 cellpadding=0 bgcolor=#3E5E71><tr><td class=courrierclair width=100%> <img src=http://www.rennet.org/php/media/1pix_transp.gif width=8 height=30 align=absmiddle><img src=http://www.rennet.org/php/media/4_carres.gif width=14 height=14 align=absmiddle><font size=4> '+titre+'</font></td><td class=courrierclair valign=top align=right><img src=http://www.rennet.org/php/media/angle_dh_2.gif width=14 height=14></td></tr></table><table width=100% border=0 cellspacing=0 cellpadding=0 bgcolor=#84A4BB><tr><td><div align=center><br><img src='+photo+' width='+limage+' height='+himage+' align=middle border=0><br><b>'+legende+'</b><br></div></td></tr></table><table width=100% border=0 cellspacing=0 cellpadding=0><tr bgcolor=#84A4BB><td valign=bottom nowrap class=pti-detail-color><img src=http://www.rennet.org/php/media/angle_gb_1.gif width=15 height=15 align=absbottom></td></tr></table></td></tr></table><table width='+ltableau+' border=0 cellspacing=0 cellpadding=0 align=center><tr><td><a href=javascript:self.close();><img src=http://www.rennet.org/php/media/angle_b_croix.gif width=15 height=14 align=top border=0></a></td><td valign=right class=ptidetailcolor><div align=right>Contact : <a href=mailto:'+email+'?subject='+titre+'>'+email+'</a></div></td></tr></table>');


	picture.focus();	
						
} 
else {
	
	
	picture.window.close();
	picture=window.open('','','width='+lpage+',height='+hpage+',toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no');
	picture.document.write('<HTML><HEAD><TITLE>'+legende+'</TITLE><link rel=stylesheet href=http://www.rennet.org/php/styles.css></HEAD><BODY bgcolor=#57809F>');
	picture.document.write('<table width='+ltableau+' border=0 cellspacing=0 cellpadding=0 align=center><tr><td><div align=right><a href=javascript:self.close();><img src=http://www.rennet.org/php/media/angle_h_croix.gif width=15 height=14 align=top border=0></a></div></td></tr></table><table width='+ltableau+' border=0 cellspacing=0 cellpadding=1 bgcolor=#FFFFFF align=center><tr><td><table width=100% border=0 cellspacing=0 cellpadding=0 bgcolor=#3E5E71><tr><td class=courrierclair width=100%> <img src=http://www.rennet.org/php/media/1pix_transp.gif width=8 height=30 align=absmiddle><img src=http://www.rennet.org/php/media/4_carres.gif width=14 height=14 align=absmiddle><font size=4> '+titre+'</font></td><td class=courrierclair valign=top align=right><img src=http://www.rennet.org/php/media/angle_dh_2.gif width=14 height=14></td></tr></table><table width=100% border=0 cellspacing=0 cellpadding=0 bgcolor=#84A4BB><tr><td><div align=center><br><img src='+photo+' width='+limage+' height='+himage+' align=middle border=0><br><b>'+legende+'</b><br></div></td></tr></table><table width=100% border=0 cellspacing=0 cellpadding=0><tr bgcolor=#84A4BB><td valign=bottom nowrap class=pti-detail-color><img src=http://www.rennet.org/php/media/angle_gb_1.gif width=15 height=15 align=absbottom></td></tr></table></td></tr></table><table width='+ltableau+' border=0 cellspacing=0 cellpadding=0 align=center><tr><td><a href=javascript:self.close();><img src=http://www.rennet.org/php/media/angle_b_croix.gif width=15 height=14 align=top border=0></a></td><td valign=right class=ptidetailcolor><div align=right>Contact : <a href=mailto:'+email+'?subject='+titre+'>'+email+'</a></div></td></tr></table>');
		
	picture.focus();
		}
	}












// AFFICHER LIEU DE CONCERT

function lieu(nom)	{
var trombo2=null;
if (!trombo2 || trombo2.closed) 		{
		
trombo2=window.open(nom,'new','width=280,height=320,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes');
trombo2.focus();							
} 
else {
trombo2.window.close();
parent=this;
trombo2=window.open(nom,'new','width=280,height=320,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes');		
trombo2.focus();
		}
	}