// JavaScript Document
function ajouterFavoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel("Office de Tourisme Montauban","http://www..fr/",""); }
else { window.external.AddFavorite("http://www..fr/","Office de Tourisme Montauban"); }
}

function cacher(){
	if(document.getElementById('erreur').style.display=="none"){
	return false;
	}else{
	$('#erreur').fadeOut('fast');
	}
}

function recommander()
{
mail_str = "mailto:?subject=Recommandation du site internet de l'Office de Tourisme Montauban"
mail_str += "&body=Bonjour, je te recommande de visiter le site de l'Office de Tourisme Montauban. Voici le lien pour le visiter : http://www.montauban-tourisme.com/"

location.href = mail_str;
}

function recommander_es()
{
mail_str = "mailto:?subject=Recomendación de la página web de la Oficina de Turismo de Montauban"
mail_str += "&body=Hola, te recomiendo que visites el sitio de la Oficina de Turismo de Montauban. Aquí está el enlace para visitarlo : http://www.montauban-tourisme.com/"

location.href = mail_str;
}

function recommander_en()
{
mail_str = "mailto:?subject=Recommendation of the website of the Tourist Office Montauban"
mail_str += "&body=Hello, I recommend you visit the site of the Tourist Office Montauban. Here is the link to visit it : http://www.montauban-tourisme.com/"

location.href = mail_str;
}

function getPhotosGalerie(targ,selObj,restore,lang){ //v3.0
  eval(targ+".location='Photos-7-"+lang+".html?id_galerie="+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function getSearchAgenda(targ,selObj,restore,idPage,lang){ //v3.0
  eval(targ+".location='Agenda-"+idPage+"-"+lang+".html?searchAgenda="+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function afficherVisuel(img,titre){
	$('#blocGalerieRightImg').html('<img src="'+img+'" alt="" />');
	$('#blocGalerieRightTitre').html('<p>'+titre+'</p>');
}

function afficherVisuelGalerieArtcle(img){
	$('#main_image').html('<tr><td><img src="'+img+'" alt=""  /></td></tr>');
}


function enlevePoint(ch) {
	ch = ch.replace(/\./g,"")
return ch
}

function afficherlabels(bloc){
	var choix = enlevePoint('ent'+bloc);
	$('div .label').hide();
	$("#"+choix).slideDown();
}
