
function onBackorg(mm)
{
	mm.style.background = 'url(/images/b8r.jpg)';
	mm.style.cursor='hand';
}
function onBackdest(mm)
{
	mm.style.background = 'url(/images/b8.jpg)';
}

function go2(t2)
{
	document.getElementById("eventsID").src = "script/infoevents.asp?Type=1&id="+t2 ;
	Minimize_map();
}

function goEvents(t2)
{
	document.getElementById("eventsID").src = "script/infoevents.asp?Type=2&id="+t2 ;
	Minimize_map();
}

function clipme3(image)
{
	var Hauteur;
	var Largeur;
	var Letop;
	var Leleft;
	var clipwin3;
	
	clipwin3 = window.open("", "", "width=500,height=500");
	clipwin3.document.write('<body topmargin=0 leftmargin=0 onLoad="if (window.focus) window.focus()"><center>');
	clipwin3.document.write('<a href="javascript:window.close()">');
	clipwin3.document.write('<img border=0 src="' + image + '">');
	clipwin3.document.write('</a>');
	clipwin3.document.write('</center></body>');
	clipwin3.document.title = "<Cliquer pour fermer l'image>";
	
	if (clipwin3.document.images[0].complete == false)
	{
		setTimeout("AdjustWindow(clipwin3)",200);
	}
	
	//Hauteur = clipwin3.document.images[0].height + 30;

	//Largeur = clipwin3.document.images[0].width;
	//Letop=(screen.height-hauteur)/2;
	//Leleft=(screen.width-largeur)/2;
	//clipwin3.moveTo(0,0);
	//window.alert(Hauteur);
	//clipwin3.resizeTo(clipwin3.document.images[0].width,clipwin3.document.images[0].height+30);
	//clipwin3.moveTo(0,0);
	//clipwin3.document.close();
}

function clipme2(img) {
titre="Agrandissement";

w=open("",'image','width=760,height=760,toolbar=no,scrollbars=no,resizable=no');

w.document.write("<HTML><HEAD><TITLE>"+ "Il Laziale" + "</TITLE></HEAD>");
w.document.write("<script language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+20,document.images[0].height+45);  if(document.images[0].height + 45 > window.screen.availHeight){ window.resizeTo(document.images[0].width+20, window.screen.availHeight); }  window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT>");
w.document.write("<BODY onload='checksize()' onblur = 'window.close()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
w.document.write("<TABLE width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'><TR>");
w.document.write("<TD valign='middle' align='center'><IMG src='"+img+"' border=0 >");
w.document.write("</TD></TR></TABLE>");
w.document.write("</BODY></HTML>");
w.document.close();
}

function AdjustWindow(clipwin3){
	
	if (clipwin3.document.images[0].complete == false)
	{
		setTimeout("AdjustWindow(clipwin3)",200);
	}

	clipwin3.resizeTo(clipwin3.document.images[0].width,clipwin3.document.images[0].height+30);
	clipwin3.moveTo(0,0);
	clipwin3.document.close();
}

function Maximize_map(){

	document.getElementById("eventsID").height = 625;

}

function Minimize_map(){

	document.getElementById("eventsID").height = 140;

}

function P_Quebec(){

	alert("Fonctionnalité ā venir");

}

function addslashes (str) {
    // Escapes single quote, double quotes and backslash characters in a string with backslashes  
    // 
    // version: 1109.2015
    // discuss at: http://phpjs.org/functions/addslashes    // +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +   improved by: Ates Goral (http://magnetiq.com)
    // +   improved by: marrtins
    // +   improved by: Nate
    // +   improved by: Onno Marsman    // +   input by: Denny Wardhana
    // +   improved by: Brett Zamir (http://brett-zamir.me)
    // +   improved by: Oskar Larsson Högfeldt (http://oskar-lh.name/)
    // *     example 1: addslashes("kevin's birthday");
    // *     returns 1: 'kevin\'s birthday'    
	return (str + '').replace(/[\\"']/g, '\\$&').replace(/\u0000/g, '\\0');
}
