

// passe la langue a lightbox.js pour les boutons fermer


function openWindow2(theURL,winName,features,w,h,c) {
if (c=="centered"){
  posx=(screen.availWidth-w)/2; 
  posy=(screen.availHeight-h)/2;
  window.open(theURL,winName,features+',width='+w+',height='+h+',left='+posx+',top='+posy);
}
else{
  window.open(theURL,winName,features+',width='+w+',height='+h+',left=50,top=50');
}
}

function CreateBookmarkLink() {
	if (window.sidebar) { 
	// Mozilla Firefox Bookmark		
	window.sidebar.addPanel(document.title, location.href,"");	
	}else if( window.external ) {
	 // IE Favorite		
	 window.external.AddFavorite( location.href, document.title); 
	}else if(window.opera && window.print) {
	  // Opera Hotlist		
	  return true;
	 } 
}


// popup
function openWindow(theURL,winName,features,w,h,c) {
	if (c=="centered"){
	  posx=(screen.availWidth-w)/2;
	  posy=(screen.availHeight-h)/2;
	   Win = window.open(theURL,winName,features+',width='+w+',height='+h+',left='+posx+',top='+posy);
	}
	else{
	  Win = window.open(theURL,winName,features+',width='+w+',height='+h+',left=50,top=50');
	}
	Win.window.focus();
}

function showTexte(i) {
	if (document.getElementById("textePlus"+i).style.display == "block"){
		document.getElementById("textePlus"+i).style.display = "none";
	}else{
		document.getElementById("textePlus"+i).style.display = "block";
	}
}

function donothing(){void(0);}

function load() {
	  if (GBrowserIsCompatible()) {
	
		// fonction pour centrer la carte et ajuster le zoom
		var map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());
		map.setCenter(new GLatLng(45.457813,-73.616617), 16);
		
		// fonction pour créer les marqueurs appelées plus bas
		function createMarker(point, number) {
		  var marker = new GMarker(point);
		  GEvent.addListener(marker, "click", function() {
		    marker.openInfoWindowHtml(number);
		  });
		  return marker;
		}
	
	// Ajoute le marqueur
	  var point = new GLatLng(45.457813,-73.616617);
	  map.addOverlay(createMarker(point, "<p>Association du Camionnage du Québec</p>"));
	
	  }
	}
/*http://maps.google.fr/maps?f=q&hl=fr&geocode=&time=&date=&ttype=&q=6450,+rue+Notre-Dame+Ouest&sll=47.15984,2.988281&sspn=12.699823,29.882813&ie=UTF8&ll=45.457813,-73.616617&spn=0.006397,0.014591&z=16&om=0*/