function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("liste").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}


	
<!------------------------------------------------------------------------------------------------->
function resizePopUp(monImage, monTitre)
  {
  w = window.open('','chargement','width=10,height=10');
  w.document.write( "<html><head><title>Scred.net - "+monTitre+"</title>\n" ); 
  w.document.write( "<script language='JavaScript'>\n"); 
  w.document.write( "IE5=NN4=NN6=false;\n"); 
  w.document.write( "if(document.all)IE5=true;\n"); 
  w.document.write( "else if(document.getElementById)NN6=true;\n"); 
  w.document.write( "else if(document.layers)NN4=true;\n"); 
  w.document.write( "function autoSize() {\n"); 
  w.document.write( "if(IE5) self.resizeTo(document.images[0].width+10, document.images[0].height+31)\n"); 
  w.document.write( "else if(NN6) self.sizeToContent();\n");
  w.document.write( "else window.resizeTo(document.images[0].width, document.images[0].height+20)\n"); 
  w.document.write( "self.focus();\n"); 
  w.document.write( "}\n</script>\n"); 
  w.document.write( "</head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad='javascript:autoSize();'>" );
  w.document.write( "<a href='javascript:window.close();'><img src='"+monImage+"' border=0 alt='Scred.net - "+monTitre+"'></a>" ); 
  w.document.write( "</body></html>" );
  w.document.close(); 
  }


function resizePopUpVideo(mavideo, monTitre)
  {
	  
  w = window.open('','chargement','width=160,height=120');
  w.document.write( "<html><head><title>Scred.net - "+monTitre+"</title>\n" ); 
  w.document.write( "</head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>" );
  w.document.write( '<object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab" type="application/x-oleobject" width="160" height="120" standby="Loading Microsoft Windows Media Player components..." id="mediaPlayer">');
  w.document.write( '<param name="fileName" value="'+mavideo+'"> ');
  w.document.write( '<param name="animationatStart" value="true"> ');
  w.document.write( '<param name="transparentatStart" value="true"> ');
  w.document.write( '<param name="autoStart" value="true"> ');
  w.document.write( '<param name="showControls" value="false">'); 
  w.document.write( '<param name="ShowStatusBar" value="false"> ');
  w.document.write( '<param name="loop" value="1"> ');
  w.document.write( '<embed type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" src="'+mavideo+'" width="160" height="120" autostart="1" displaysize="4" autosize="0" bgcolor="black" showcontrols="0" showtracker="0" ShowStatusBar="0" showdisplay="0" videoborder3d="0" loop="1"></embed>');
  w.document.write( '</object> ');
  w.document.write( "</body></html>" );
  w.document.close(); 
  }


function js_open()
{
   var telecharger=window.open("index_ajout_photo.php", null,"width=460,height=200,scrollbars=0,location=no,status=no,toolbar=no,left=" +((screen.width - 460)/2) + ",top=" + ((screen.height - 150)/2) )
}

function js_aide()
{
   var telecharger=window.open("index_google.php", null,"width=650,height=620,scrollbars=0,location=no,status=no,toolbar=no,left=" +((screen.width - 460)/2) + ",top=" + ((screen.height - 150)/2) )
}

function js_close()
{
   var telecharger=window.open("index_photo_wait.php", null,"width=460,height=200,scrollbars=0,location=no,status=no,toolbar=no,left=" +((screen.width - 460)/2) + ",top=" + ((screen.height - 150)/2) )
}

<!------------------------------------------------------------------------------------------------->
function texte_ds_barre_etat(){ status="www.scred.net - Le chat des rencontres discrčtes entre Mecs" }

<!------------------------------------------------------------------------------------------------->
function email()
{
document.write(unescape("%3Ca%20href%3D%22mailto%3A%26%23105%26%23110%26%23102%26%23111%26%23064%26%23115%26%23111%26%23102%26%23116%26%23045%26%23108%26%23101%26%23097%26%23114%26%23110%26%23105%26%23110%26%23103%26%23046%26%23099%26%23111%26%23109%3Fsubject%3DInfo gites%22%3E%26%23105%26%23110%26%23102%26%23111%26%23064%26%23115%26%23111%26%23102%26%23116%26%23045%26%23108%26%23101%26%23097%26%23114%26%23110%26%23105%26%23110%26%23103%26%23046%26%23099%26%23111%26%23109%3C/a%3E"));
}
<!------------------------------------------------------------------------------------------------->
function Confirmer(Titre) 
{
return(confirm("Etes-vous sūr de vouloir "+Titre+" votre compte  ?"));
}

function Confirmer_supp(Titre) 
{
return(confirm("Etes-vous sūr de vouloir "+Titre));
}

<!------------------------------------------------------------------------------------------------->
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) { //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_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];}
}





/***********************************************
* Gradual Highlight image script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var baseopacity=30

function slowhigh(which2){
imgobj=which2
browserdetect=which2.filters? "ie" : typeof which2.style.MozOpacity=="string"? "mozilla" : ""
instantset(baseopacity)
highlighting=setInterval("gradualfade(imgobj)",50)
}

function slowlow(which2){
cleartimer()
instantset(baseopacity)
}

function instantset(degree){
if (browserdetect=="mozilla")
imgobj.style.MozOpacity=degree/100
else if (browserdetect=="ie")
imgobj.filters.alpha.opacity=degree
}

function cleartimer(){
if (window.highlighting) clearInterval(highlighting)
}

function gradualfade(cur2){
if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.1, 0.99)
else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}


