<!--
var Xpos=0, Ypos=0;
var ie = document.all;
var d_on_r = d_on_t = "";
var tmid = null;
var aff=-1;

lebr0 = new Image; lebr0.src = "images/lebr0.gif";
lebr1 = new Image; lebr1.src = "images/lebr1.gif";
ribr0 = new Image; ribr0.src = "images/ribr0.gif";
ribr1 = new Image; ribr1.src = "images/ribr1.gif";

function MM_swapImgRestore(){
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(){
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){
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);
//if(!x && d.getElementsByTagName) x=d.getElementsByTagName(n);
return x;
}

function MM_swapImage(){
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];}
}

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

function soumission(leform){
	if ((f=MM_findObj(leform))!=null) f.submit();
}

function writein(s) {
if ((x=MM_findObj("ds"))!=null) {x.innerHTML=s.options[s.selectedIndex].value;}
}

function showtext (tex){
if ((x=MM_findObj("dt"))!=null) {x.innerHTML=(tex==""?"&nbsp;":tex);}
}

function showdiv (i,n){
for (k=0;k<n;k++) {
	if ((x=MM_findObj('d'+k))!=null) {x.style.display="none";x.style.visibility="hidden";}
}
if ((x=MM_findObj('d'+i))!=null) {x.style.display="block";x.style.visibility="visible";}
}

function insertflash (anim, w, h)
{
	document.write('<div><object type="application/x-shockwave-flash" data="'+anim+'" style="width:'+w+'px; height:'+h+'px;">');
	document.write('<param name="movie" value="'+anim+'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="loop" value="false" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<img src="'+anim+'.gif" style="width:'+w+'px; height:'+h+'px;" alt="Veuillez installer Flash Player pour visualiser cette animation..." />');
	document.write('<br />Veuillez installer Flash Player pour visualiser cette animation...');
	document.write('</object></div>');
}

function zoomimg(fic,thewi,thehe){
var wi=thewi+75,he=thehe+75;
window.open(fic,"","toolbar=no,scrollbars=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width="+wi+",height="+he+",left=100,top=50");
}

function video(v){
window.open("multimedia/videos/index.php?video="+v,"","width=360,height=420");
}

function gospop(fichier){
	window.open("pop-"+fichier,"","toolbar=no,location=no,directories=no,status=no,width=400,height=280");
}

function infobulle(info){
	window.open("infobulle/index.php?info="+info,"","toolbar=no,location=no,directories=no,status=no,width=400,height=280");
}

function lienfrompop(lien){
window.opener.open(lien, "");
}

function wiwi() {
if (window.innerWidth) return window.innerWidth;
else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
else return 0;
}

// Defilement vertical
function NewsInit(){
if ((mta=MM_findObj("maintable"))!=null && (mtd=MM_findObj("maintd"))!=null && (mn=MM_findObj("newsdiv"))!=null && (nc=MM_findObj("newstd"))!=null && (nr=MM_findObj("newstable"))!=null){
mn.style.left=(mta.offsetLeft+mtd.offsetLeft+nc.offsetLeft+nr.offsetLeft)+'px';
mn.style.top=(mta.offsetTop+mtd.offsetTop+nc.offsetTop+nr.offsetTop)+'px';
mn.style.width=(nc.offsetWidth-1)+'px';
mn.style.height=(nc.offsetHeight-1)+'px';
ScrollNews();
}
}

var newsblock;
var tn=new Array();
var tinit=220;	// point de depart
var I=0;		// index dans le tableau de news
var OldI=0;		// index precedent
var T=tinit;	// valeur courante
var prem=1;
var tw=wiwi();
function ScrollNews(){

if (!tw) tw=wiwi();
if (wiwi()!=tw)	tw=wiwi();

//if ((tn=document.getElementsByName("news"))!=null){
for (n=0; n<5; n++) if ((x=MM_findObj("news"+(n)))!=null) tn[n]=x;

if (tn[0]!=null || tn[1]!=null || tn[2]!=null || tn[3]!=null || tn[4]!=null) {
if (T==0){
	OldI=I;
	I>=(tn.length-1)?I=0:I++;
	T=tinit;
	setTimeout("ScrollNews()",2500);
	prem=0;
	return false;
}

if (T==(tinit-1)) {tn[OldI].style.top=(tinit)+'px';}
T--;
tn[I].style.top=(T)+'px';
if (!prem){tn[OldI].style.top=(T-tinit)+'px';}
setTimeout("ScrollNews()",5);
}
}

function calcxy(ev){
if (ie)	{Xpos=event.clientX+document.body.scrollLeft; Ypos=event.clientY+document.body.scrollTop;}
else	{Xpos=ev.pageX; Ypos=ev.pageY;}
return true;
}

function changexy(ds){ds.style.left=(Xpos)+'px';ds.style.top=(Ypos)+'px';}

function pause (m) {dt=new Date();do {var dtc = new Date();} while(dtc-dt<m);}

function mask(i,n) {
	for (k=0;k<n;k++) {
		if ((k!=i) && (x=MM_findObj('d'+k))!=null) {x.style.display="none";x.style.visibility="hidden";}
	}
	aff=-1;
}

function showlgd (d,i,n){
if (i==-1 || i!=aff) {
	tmid = setTimeout("mask("+i+","+n+")",50);
}
//pause (50);
if ((x=MM_findObj(d+i))!=null) {
//	if (aff!=i) changexy(x);
	if(tmid)	clearTimeout(tmid); tmid=null;
	x.style.display="block";x.style.visibility="visible";
	aff = i;
}
}

var im_table, im_nb, im_timer = 0, im_aff = 0;

function im_play_pause () {
	b = MM_findObj('bouton_play_pause');
	if (im_timer) {clearTimeout(im_timer); im_timer=null; if(b) b.src = "images/bouton-play.gif";}
	else {im_timer = setTimeout("im_change()",3000); if(b) b.src = "images/bouton-pause.gif";}
}

function im_pre (add) {
	if ((x=MM_findObj('pre'))!=null) {
		im_aff = (im_aff+add+im_nb) % im_nb;
		x.style.background = "url(pre/pre-"+im_table[im_aff]+".jpg) top left no-repeat";
	}
}

function im_change () {
	im_pre(1);
	im_timer = setTimeout("im_change()",3000);
}

function im_load () {
	im_table = im_load.arguments;
	im_nb = im_table.length;
	im_pre(0);
	im_change();
}

function im_preload () {
	var d=document;
	if(d.images){
		d.imp=new Array();
		var j=0;
		for (i=0; i<im_nb; i++) {d.imp[j]=new Image; d.imp[j++].src="pre/pre-"+im_table[i]+".jpg";}
	}
}

function im_zoom() {
	zoomimg ("images/photos.php?im=pre-"+im_table[im_aff]+".jpg", 600, 400);
}

function googleload() {
	if (GBrowserIsCompatible()) {
		var mark_point = new GLatLng(48.88657,2.402404);
		var mark_zoom = 15;
		var mark_descr = '<a href="http://www.jeux-caracol.com.fr/">SARL Caracol</a><br />18, rue du 14 juillet<br />93310 Le Pr&eacute;-Saint-Gervais - France';

		var map = new GMap2(document.getElementById("map"));

		map.enableContinuousZoom();
		map.enableScrollWheelZoom();

		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());
		map.setCenter(mark_point, mark_zoom);

		var marker = new GMarker(mark_point);
		map.addOverlay(marker);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(mark_descr);
		});
		marker.openInfoWindowHtml(mark_descr);
	}
}

//-->
