function popi(aaid) {
	OWin('pic.php?idimg='+aaid,'Photo',500,400);
}
function dw(stri) {
	document.write(stri);
}
function meov(ref) {
//ref.style.background='';
//ref.style.backgroundColor='#FFFFFF';

ref.style.cursor='hand';
ref.title='Cliquez';
}
function tel_numeric(ref) {
	initial=ref.value;
	len=initial.length;
	
	tfinal='';
	for (i=0;i<len;i++) {
		car=initial.substr(i,1);
		if ((!isNaN(car))&&(car!=' ')) {
			tfinal=tfinal+car;
		}
	}
	if (initial!=tfinal) {
		ref.value=tfinal;
	}	
}
function meou(ref) {
//ref.style.background='pic/menu/fond1.gif';
ref.style.cursor='auto';
}
function isnav() {
agent =navigator.userAgent.toLowerCase();
 this.major = parseInt(navigator.appVersion);
this.minor = parseFloat(navigator.appVersion);
this.ns = ((agent.indexOf('mozilla') != -1) && ((agent.indexOf('spoofer') == -1) && (agent.indexOf('compatible') == -1)));
this.ns4 = (this.ns && (this.major == 4));
this.ns6 = (this.ns && (this.major >= 5));
// alert(agent + this.major);
}
var isnav = new isnav();
var isNS = (isnav.ns4);
var ismacIE = (navigator.platform == "MacPPC") && (navigator.appName == "Microsoft Internet Explorer");
var ismacNS = (navigator.platform == "MacPPC") && (navigator.appName == "Netscape");
// var isMacIE = ( (navigator.userAgent.indexOf("IE4")  > -1) && (navigator.userAgent.indexOf("Mac")  > -1) );
var isNS6 = (isnav.ns6);
// définition des accés aux objet selon le navigateur
var layerRef = (isNS) ? "document" : "document.all";
var styleRef = (isNS) ? "" : ".style";
var isDynamic = (document.layers || document.all || document.getElementById) ;
var activeMenu = 0;
function sdiv(ref) {
	if (ref!=activeMenu) {	
		if (activeMenu>0) {
		if (document.getElementById) {
			document.getElementById('m'+activeMenu).style.visibility = "hidden";
		} else {
		 	document.all['m'+activeMenu].style.visibility="hidden";
		 }
		}
		 if (document.getElementById) {
		 	document.getElementById('m'+ref).style.visibility = "visible";
		 } else {
			//eval(document.all + '["' + 'm'+ref + '"]' + styleRef + '.visibility = "visible"');
			document.all['m'+ref].style.visibility="visible";
		}
		activeMenu=ref;
	}
}
function swlay(nam,sh) {
	//alert(nam+' '+sh);
	if (sh>0) {
		if (document.getElementById) {document.getElementById(nam).style.visibility = "visible";}
		else {document.all[nam].style.visibility="visible";}
	} else {
		if (document.getElementById) {document.getElementById(nam).style.visibility = "hidden";}
		else {document.all[nam].style.visibility="hidden";}
	}
}

function fim(ref) {
	ref.style.filter="progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=4,Duration=1,Enabled=false)";
	//ref.style.filter="progid:DXImageTransform.Microsoft.Strips(Duration=5, Motion='leftdown')";
	ref.filters[0].apply();
	ref.filters[0].play();
}
function fom(ref) {
	ref.style.filter="";
	}
function omb(im,ver,ll,hh,flaload,gohref) {
var quot='"';
var blo="'";
dw("<table border='0' cellspacing='0' cellpadding='0'><tr><td>");
if (flaload>0) {
	monimage(im,hh,ll);
} else {
	if (ll>0) {tailletxt=' WIDTH="'+ll+'" HEIGHT="'+hh+'" ';} else {tailletxt='';}
	if (gohref) {
		dw('<a href="'+gohref+'"><IMG SRC="'+im+'" '+tailletxt+' BORDER=0></a>');
		// onmouseover="fim(this);" onmouseout="fom(this);"
	} else {
		dw('<IMG SRC="'+im+'" '+tailletxt+' BORDER=0>');
	}
}
dw("</td><td width='6' valign='top' background='pic/omb/"+ver+"/d.gif'><img src='pic/omb/"+ver+"/hd.gif'></td></tr><tr><td height='7' background='pic/omb/"+ver+"/b.gif'><img src='pic/omb/"+ver+"/bg.gif'></td><td><img src='pic/omb/"+ver+"/bd.gif' width='6' height='7'></td></tr></table>");
}
function omba(im,ver,ll,hh,flaload,gohref,alttext) {
var quot='"';
var blo="'";
dw("<table border='0' cellspacing='0' cellpadding='0'><tr><td>");
if (flaload>0) {
	monimage(im,hh,ll);
} else {
	if (ll>0) {tailletxt=' WIDTH="'+ll+'" HEIGHT="'+hh+'" ';} else {tailletxt='';}
	if (gohref) {
		dw('<a href="'+gohref+'"><IMG SRC="'+im+'" '+tailletxt+' ');
		if (alttext) {dw('alt="'+alttext+'" ');}
		dw('BORDER=0></a>');
		// onmouseover="fim(this);" onmouseout="fom(this);"
	} else {
		dw('<IMG SRC="'+im+'" '+tailletxt+' ');
		if (alttext) {dw('alt="'+alttext+'" ');}
		dw('BORDER=0>');
	}
}
dw("</td><td width='6' valign='top' background='pic/omb/"+ver+"/d.gif'><img src='pic/omb/"+ver+"/hd.gif'></td></tr><tr><td height='7' background='pic/omb/"+ver+"/b.gif'><img src='pic/omb/"+ver+"/bg.gif'></td><td><img src='pic/omb/"+ver+"/bd.gif' width='6' height='7'></td></tr></table>");
}
function gofullscreen () {
	//s_left=4;s_top=122;
	s_left=4;s_top=100;
  //	EcranWidth = screen.Width+s_left+24;
  	EcranWidth = screen.Width+s_left+8;
	EcranHeight = screen.Height+s_top+28;
	window.moveTo((-s_left-2),(-s_top-1));	
  	window.resizeTo(EcranWidth,EcranHeight);
}
function cadretour(larg,ver,hautbas) {
 if (ver=='') {
	ver='1';
 }
 if (hautbas==1) {
	if (larg) {
		dw('<table border="0" width="'+larg+'" cellpadding="0" cellspacing="0">');
	} else {
		dw('<table border="0" cellpadding="0" cellspacing="0">');
	}
	dw('<tr><td width="10" height="10" valign="bottom"><img src="cad/'+ver+'/hg.gif" width="10" height="10"></td>');
	dw('<td height="10" valign="bottom" nowrap background="cad/'+ver+'/h.gif" class="my"><img src="cad/'+ver+'/trans.gif"></td>');
	dw('<td width="10" height="10" valign="bottom"><img src="cad/'+ver+'/hd.gif" width="10" height="10"></td></tr>');
	dw('<tr><td width="10" background="cad/'+ver+'/g.gif"><img src="cad/'+ver+'/trans.gif"></td><td valign="top">');
 } else {
	dw('</td><td width="10" background="cad/'+ver+'/d.gif"><img src="cad/'+ver+'/trans.gif"></td></tr>');
	dw('<tr height="20"><td width="10" height="10"><img src="cad/'+ver+'/bg.gif" width="10" height="10"></td>');
	dw('<td  height="10" background="cad/'+ver+'/b.gif" ><img src="cad/'+ver+'/trans.gif"></td>');
	dw('<td width="10" height="10"><img src="cad/'+ver+'/bd.gif" width="10" height="10"></td></tr></table>');
 }
}
function OWin(theURL,POPTITLE,wid,hei) {
	winfeatures="top=0,left=0,width="+wid+",height="+hei+" ";
	window.open(theURL,POPTITLE,winfeatures);
}
function gt(ref) {
	if (ref) {document.location=ref;}
}

//var MM_contentVersion = 6;
//var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
//if ( plugin ) {
//		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
//	    for (var i = 0; i < words.length; ++i)
//	    {
//		if (isNaN(parseInt(words[i])))
//		continue;
//		var MM_PluginVersion = words[i]; 
//	    }
//	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
//}
//else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
//   && (navigator.appVersion.indexOf("Win") != -1)) {
//	dw('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
//	dw('on error resume next \n');
//	dw('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
//	dw('</SCR' + 'IPT\> \n');
//}
function monimage(mov,haut,larg) {
	//if ( MM_FlashCanPlay ) {
	dw('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	dw('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
	dw('  WIDTH="'+larg+'" HEIGHT="'+haut+'">');
	dw(' <PARAM NAME=movie VALUE="img/PIC.swf?purl='+mov+'"> <PARAM NAME=quality VALUE=high><PARAM NAME=scale VALUE="exactfit"> <PARAM NAME=bgcolor VALUE=#FFFFFF>  '); 
	dw(' <EMBED src="img/PIC.swf?purl='+mov+'" quality=high bgcolor=#FFFFFF scale="exactfit" ');
	dw(' swLiveConnect=FALSE WIDTH="'+larg+'" HEIGHT="'+haut+'"');
	dw(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
	dw(' </EMBED>');
	dw(' </OBJECT>');
	//} else{
	//	dw('<IMG SRC="'+mov+'" WIDTH="'+larg+'" HEIGHT="'+haut+'" BORDER=0>');
	//}
}