function AgrandirI(Titre, Nomimage) {
	var Xin = null;
	Xin = window.open("",'CosmoPopup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=10,height=10,top=10,left=10');
	Xin.document.open();
	Xin.resizeTo(10,10);
	Xin.document.writeln('<HTML><HEAD><TITLE>Cosmostreet</TITLE><link rel="stylesheet" href="../style.css" type="text/css"></HEAD><body LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><table border="0" cellspacing="0" cellpadding="0" align="center" width="100%"><tr><td class="txt12blb" align="center">&nbsp;' + Titre + '&nbsp;</td></tr><tr><td align="center">&nbsp;</td></tr><tr><td align="center"><img src="' + Nomimage + '" border=0 alt="" NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+100)"></td></tr><tr><td align="center">&nbsp;</td></tr><tr><td align="center" valign="top" class="txt12bl"><A href="javascript:self.close()" class="txt12bl">Fermer la fenêtre</A></td></tr></table></body></html>');
	Xin.document.close();
	if (Xin) Xin.focus();
}

function afMax(chemin) {
	if (window.popupImage != null) {
		popupImage.close();
	}
	i1 = new Image;
	i1.src = chemin;
	html = '<HTML><HEAD><TITLE>Cosmostreet</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER><IMG SRC="'+chemin+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+32)"></CENTER></BODY></HTML>';
	popupImage = window.open('','CosmoPopup','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
	popupImage.document.open();
	
	popupImage.document.write(html);
	popupImage.document.focus();
}
	
function popup(url, nom)
{
        var fiche=window.open(url,nom,'location=0,directories=0,status=0,menubar=0, toolbar=0,scrollbars=1,resizable=1, copyhistory=0,width=600,height=500');
        if (navigator.appVersion.substring(1,0)>="3")
        {
        fiche.focus(); 
        }
}

function Pop2Show(strUrl, strName, isizeX, isizeY) {
  var iPop2Show = null;
  iPop2Show = window.open(strUrl, strName, 'width='+isizeX+',height='+isizeY+',toolbar=no,scrollbars=yes,statusbar=no,menubar=no,left=30,top=80,resizable=yes,personalbar=no,locationbar=no');
  if (iPop2Show) iPop2Show.focus();
}

function Pop2Musik() {
  var iPop2Musik = null;
  iPop2Musik = window.open('../flash/musik.htm', 'CosmoStreetMusik', 'width=150,height=50,toolbar=no,scrollbars=no,statusbar=no,menubar=no,left=15,top=15,resizable=no,personalbar=no,locationbar=no');
  if (iPop2Musik) iPop2Musik.focus();
}

function Pop2Rotation() {
  var iPop2Rotation = null;
  iPop2Rotation = window.open('../flash/rotation.htm', 'CosmoStreetRotation', 'width=300,height=200,toolbar=no,scrollbars=no,statusbar=no,menubar=no,left=15,top=15,resizable=no,personalbar=no,locationbar=no');
  if (iPop2Rotation) iPop2Rotation.focus();
}


function Pop2Video(strUrl, strName, isizeX, isizeY) {
  var iPop2Video = null;
  iPop2VideoShow = window.open(strUrl, strName, 'width='+isizeX+',height='+isizeY+',toolbar=no,scrollbars=no,statusbar=no,menubar=no,left=15,top=15,resizable=no,personalbar=no,locationbar=no');
  if (iPop2Video) iPop2Video.focus();
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i>a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i>d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


/* MISE EN FAVORIS
*/
function add_favoris()
{
<!-- ATTENTION laissez bien "' et '" dans les deux lignes ci-dessous!!! -->
nom_site = "'Cosmostreet'";
url_site = "'http://cosmostreet.creditmutuel.fr'";
if (navigator.appName == "Netscape")
alert ('Utilisateur de Netscape, il vous suffit d\'appuyer sur CTRL+d  pour ajouter cette page à vos signets');
else {document.write('<a href="javascript:window.external.AddFavorite('+url_site+','+nom_site+');">ajouter aux favoris</a>');}
}

function swapMenu(n){window.focus();d=eval("document.all.d"+n);if (d.style.display=="none"){d.style.display="block";eval("document.all.btn"+n+".src='gif/btnmoins.gif'");}else{d.style.display="none";eval("document.all.btn"+n+".src='gif/btnplus.gif'");}}

