function view(url,title)
	{
	var fenetre=window.open('','Photo','resizable=1,scrollbars=0,width=640,height=580,left=100,top=100');
	fenetre.document.open();
	with (fenetre.document)
		{
		writeln('<html>\n<head>\n<title>Photo</title>\n<style>\nbody{margin:0px;background-color:black;}\n</style>');
		writeln('<sc'+'ript>\nvar NS_browser,MS_browser;\n');
		writeln('if (parseInt(navigator.appVersion.charAt(0))>=4)\n{');
		writeln('  NS_browser=(navigator.appName=="Netscape")?1:0;');
		writeln('  MS_browser=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;\n}\n');
		writeln('function reSizeToImage()');
		writeln('{\n  if (MS_browser)\n  {');
		writeln('    window.resizeTo(document.images[0].width,document.images[0].height+100);\n  }');
		writeln('\n if (NS_browser)\n  {');       
		writeln('    window.innerWidth=document.images["myPic"].width;');
		writeln('    window.innerHeight=document.images["myPic"].height+100;\n  }\n}');
		writeln('function doTitle(){document.title="'+title+'";}');
		writeln('</sc'+'ript>');
		writeln('</head>\n<body bgcolor="000000" scroll="no" link="FFCC00" vlink="FFCC00" alink="FFCC00" onload="reSizeToImage();doTitle();self.focus()">')
		writeln('<a href="javascript:window.close();"><img name="myPic" src="'+url+'" style="display:block" border="0"></a>');
		writeln('<br>\n<div align="right">\n<font size="2" face="Arial"><b><a style="text-decoration:none" href="javascript:window.close();">[ X ] FERMER</a></b></font>&nbsp;&nbsp;\n</div>\n</body>\n</html>');
		close();		
		}
	}

function inscription(id_soiree) {
fenetrePers =window.open('inscription.php?'+id_soiree+'','Inscription','STATUS=NO,RESIZABLE=YES,MENUBAR=NO,SCROLLBARS=NO,WIDTH=500,HEIGHT=620');
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}

function chtembrouille(texte)
{
	var maxindex=texte.length-1;
	var resultat='';
	var codascii;
	for(i=0 ; i<=maxindex ; i++)
	{
	codascii = texte.charCodeAt(i)-1;
	resultat = resultat + String.fromCharCode(codascii);
	}
	document.write("<a href="+"mai"+"lto:"+resultat+">"+resultat+"</a>");
}

function chtembrouille_forum(adresse,nom)
{
	var maxindex=adresse.length-1;
	var resultat='';
	var codascii;
	for(i=0 ; i<=maxindex ; i++)
	{
	codascii = adresse.charCodeAt(i)-1;
	resultat = resultat + String.fromCharCode(codascii);
	}
	document.write("<a href="+"mai"+"lto:"+resultat+">"+nom+"</a>");
}

function addFacebook()
{
	window.open('http://www.facebook.com/share.php?u=' + document.location.href);
}
	
function fbs_click()
{
		u=location.href;
		t=document.title;
		window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
		return false;
}
		
		
		
		
		
		
		
		