lastd=-1; lasth=-1; intervalhover=100; sentitivityhover=1; function timer(){ setupBrowser(); MM_preloadImages('../images/logezvp.jpg','../images/msamassifvp.jpg','../images/promotionvp.jpg','../images/quoifairevp.jpg','../images/hebergementvp.jpg'); return false;}
function randomizeContent(classname){ var contents=randomizeContent.collectElementbyClass(classname)
contents.text.sort(function() {return 0.5 - Math.random();})
var tbodyref=contents.ref[0].tagName=="TR"? contents.ref[0].parentNode : new Object()
for (var i=0; i<contents.ref.length; i++){ if (tbodyref.moveRow)
tbodyref.moveRow(0, Math.round(Math.random()*(tbodyref.rows.length-1)))
else
contents.ref[i].innerHTML=contents.text[i]
contents.ref[i].style.visibility="visible"
}
}
randomizeContent.collectElementbyClass=function(classname){ var classnameRE=new RegExp("(^|\\s+)"+classname+"($|\\s+)", "i")
var contentobj=new Object()
contentobj.ref=new Array()
contentobj.text=new Array()
var alltags=document.all? document.all : document.getElementsByTagName("*")
for (var i=0; i<alltags.length; i++){ if (typeof alltags[i].className=="string" && alltags[i].className.search(classnameRE)!=-1){ contentobj.ref[contentobj.ref.length]=alltags[i]
contentobj.text[contentobj.text.length]=alltags[i].innerHTML
}
}
return contentobj
}
$(document).ready(function() { $('#auberges').click( function() { $('div.tous,tous').slideUp('fast'); $('div.chalet,chalet').slideUp('fast'); $('div.condo,condo').slideUp('fast'); $('div.hotel,hotel').slideUp('fast'); $('div.auberge,auberge').show('fast');}); $('#chalets').click( function() { $('div.tous,tous').slideUp('fast'); $('div.auberge,auberge').slideUp('fast'); $('div.condo,condo').slideUp('fast'); $('div.hotel,hotel').slideUp('fast'); $('div.chalet,chalet').show('fast');}); $('#condos').click( function() { $('div.tous,tous').slideUp('fast'); $('div.auberge,auberge').slideUp('fast'); $('div.chalet,chalet').slideUp('fast'); $('div.hotel,hotel').slideUp('fast'); $('div.condo,condo').show('fast');}); $('#hotels').click( function() { $('div.tous,tous').slideUp('fast'); $('div.auberge,auberge').slideUp('fast'); $('div.chalet,chalet').slideUp('fast'); $('div.condo,condo').slideUp('fast'); $('div.hotel,hotel').show('fast');}); $('#showall').click( function() { $('div.chalet,chalet').slideUp('fast'); $('div.condo,condo').slideUp('fast'); $('div.hotel,hotel').slideUp('fast'); $('div.auberge,auberge').slideUp('fast'); $('div.tous,tous').show('fast');}); $('#cartetous').click( function() { $('div.carteauberges,carteauberges').hide('fast'); $('div.cartehotels,cartehotels').hide('fast'); $('div.cartecondos,cartecondos').hide('fast'); $('div.cartechalets,cartechalets').hide('fast'); $('div.cartetous,cartetous').show('fast');}); $('#cartehotels').click( function() { $('div.carteauberges,carteauberges').hide('fast'); $('div.cartecondos,cartecondos').hide('fast'); $('div.cartetous,cartetous').hide('fast'); $('div.cartechalets,cartechalets').hide('fast'); $('div.cartehotels,cartehotels').show('fast');}); $('#cartecondos').click( function() { $('div.cartetous,cartetous').hide('fast'); $('div.cartechalets,cartechalets').hide('fast'); $('div.carteauberges,carteauberges').hide('fast'); $('div.cartehotels,cartehotels').hide('fast'); $('div.cartecondos,cartecondos').show('fast');}); $('#cartechalets').click( function() { $('div.cartetous,cartetous').hide('fast'); $('div.carteauberges,carteauberges').hide('fast'); $('div.cartecondos,cartecondos').hide('fast'); $('div.cartehotels,cartehotels').hide('fast'); $('div.cartechalets,cartechalets').show('fast');}); $('#carteauberges').click( function() { $('div.cartetous,cartetous').hide('fast'); $('div.cartechalets,cartechalets').hide('fast'); $('div.cartecondos,cartecondos').hide('fast'); $('div.cartehotels,cartehotels').hide('fast'); $('div.carteauberges,carteauberges').show('fast');}); $('.mapchateaumsa').hoverIntent({ sensitivity: sentitivityhover, interval: intervalhover, over: function() { $('div.index,index').slideUp('fast'); $('div.hotelvaldesneiges,hotelvaldesneiges').slideUp('fast'); $('div.villagetouristique,villagetouristique').slideUp('fast'); $('div.apdm,apdm').slideUp('fast'); $('div.camarine,camarine').slideUp('fast'); $('div.comfortsuitessteanne,comfortsuitessteanne').slideUp('fast'); $('div.auberge-baker,auberge-baker').slideUp('fast'); $('div.chateaumsa,chateaumsa').slideDown('slow');}, timeout: 0, out: function() {return false;}
}); $('.maphotelvaldesneiges').hoverIntent({ sensitivity: sentitivityhover, interval: intervalhover, over: function() { $('div.index,index').slideUp('fast'); $('div.chateaumsa,chateaumsa').slideUp('fast'); $('div.villagetouristique,villagetouristique').slideUp('fast'); $('div.apdm,apdm').slideUp('fast'); $('div.camarine,camarine').slideUp('fast'); $('div.comfortsuitessteanne,comfortsuitessteanne').slideUp('fast'); $('div.auberge-baker,auberge-baker').slideUp('fast'); $('div.hotelvaldesneiges,hotelvaldesneiges').slideDown('slow');}, timeout: 0, out: function() {return false;}
}); $('.mapvillagetouristique').hoverIntent({ sensitivity: sentitivityhover, interval: intervalhover, over: function() { $('div.index,index').slideUp('fast'); $('div.hotelvaldesneiges,hotelvaldesneiges').slideUp('fast'); $('div.chateaumsa,chateaumsa').slideUp('fast'); $('div.apdm,apdm').slideUp('fast'); $('div.camarine,camarine').slideUp('fast'); $('div.comfortsuitessteanne,comfortsuitessteanne').slideUp('fast'); $('div.auberge-baker,auberge-baker').slideUp('fast'); $('div.villagetouristique,villagetouristique').slideDown('slow');}, timeout: 0, out: function() {return false;}
}); $('.mapaupieddumont').hoverIntent({ sensitivity: sentitivityhover, interval: intervalhover, over: function() { $('div.index,index').slideUp('fast'); $('div.villagetouristique,villagetouristique').slideUp('fast'); $('div.hotelvaldesneiges,hotelvaldesneiges').slideUp('fast'); $('div.chateaumsa,chateaumsa').slideUp('fast'); $('div.camarine,camarine').slideUp('fast'); $('div.comfortsuitessteanne,comfortsuitessteanne').slideUp('fast'); $('div.auberge-baker,auberge-baker').slideUp('fast'); $('div.apdm,apdm').slideDown('slow');}, timeout: 0, out: function() {return false;}
}); $('.mapaubergelacamarine').hoverIntent({ sensitivity: sentitivityhover, interval: intervalhover, over: function() { $('div.index,index').slideUp('fast'); $('div.apdm,apdm').slideUp('fast'); $('div.villagetouristique,villagetouristique').slideUp('fast'); $('div.hotelvaldesneiges,hotelvaldesneiges').slideUp('fast'); $('div.chateaumsa,chateaumsa').slideUp('fast'); $('div.comfortsuitessteanne,comfortsuitessteanne').slideUp('fast'); $('div.auberge-baker,auberge-baker').slideUp('fast'); $('div.camarine,camarine').slideDown('slow');}, timeout: 0, out: function() {return false;}
}); $('.mapconfortsuites').hoverIntent({ sensitivity: sentitivityhover, interval: intervalhover, over: function() { $('div.index,index').slideUp('fast'); $('div.camarine,camarine').slideUp('fast'); $('div.apdm,apdm').slideUp('fast'); $('div.villagetouristique,villagetouristique').slideUp('fast'); $('div.hotelvaldesneiges,hotelvaldesneiges').slideUp('fast'); $('div.chateaumsa,chateaumsa').slideUp('fast'); $('div.auberge-baker,auberge-baker').slideUp('fast'); $('div.comfortsuitessteanne,comfortsuitessteanne').slideDown('slow');}, timeout: 0, out: function() {return false;}
}); $('.mapaubergebaker').hoverIntent({ sensitivity: sentitivityhover, interval: intervalhover, over: function() { $('div.index,index').slideUp('fast'); $('div.comfortsuitessteanne,comfortsuitessteanne').slideUp('fast'); $('div.camarine,camarine').slideUp('fast'); $('div.apdm,apdm').slideUp('fast'); $('div.villagetouristique,villagetouristique').slideUp('fast'); $('div.hotelvaldesneiges,hotelvaldesneiges').slideUp('fast'); $('div.chateaumsa,chateaumsa').slideUp('fast'); $('div.auberge-baker,auberge-baker').slideDown('slow');}, timeout: 0, out: function() {return false;}
});}); 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); 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 position(e)
{ x = (navigator.appName.substring(0,3) == "Net") ? e.pageX : event.x+document.body.scrollLeft; y = (navigator.appName.substring(0,3) == "Net") ? e.pageY : event.y+document.body.scrollTop; if(lastd!=-1 && lastd != lasth){ displayDivision(lastd); hideallDivision(lastd);}
}
if(navigator.appName.substring(0,3) == "Net")
document.captureEvents(Event.MOUSEMOVE); document.onmousemove = position; function setupBrowser() { var element = document.getElementById('d0'); if (element) { divStyle = new Array(document.getElementById('d0').style, document.getElementById('d1').style, document.getElementById('d2').style, document.getElementById('d3').style,document.getElementById('d4').style,document.getElementById('d5').style,document.getElementById('d6').style); for ( j=0; j<document.getElementsByTagName("area").length; j++ ) { document.getElementsByTagName('area')[j].setAttribute('title',""); document.getElementsByTagName('area')[j].setAttribute('alt',"");}
}
}
function displayDivision(i) { if(!window.divStyle) return
divStyle[i].visibility = "visible"
divStyle[i].top = y + 10
divStyle[i].left = x
lastd = i
}
function hideDivision(i) { if(!window.divStyle) return
divStyle[i].visibility = "hidden"
lasth=i
}
function hideallDivision(i) { if(!window.divStyle) return
divStyle[i].visibility = "visible"
for(var j=0;j<divStyle.length;++j) { if(j!=i)
divStyle[j].visibility = "hidden"
}
}
window.onload = timer; mpsite = new Image(); mpsite.src = "../images/mapsiteb.JPG"; 