// JavaScript Document
function showPlan(n,baseUrl){
	var	hideLinkId;
	var	showLinkId;
	var imageUrl = baseUrl;
	if(n == 1){
		hideLinkId = 'plan1';
		showLinkId = 'plan2';
		imageUrl += 'img/contactPlanVevey.gif';
	}else{
		hideLinkId = 'plan2';
		showLinkId = 'plan1';
		imageUrl += 'img/contactPlanPeseux.gif';
	}
	imgRef = document.getElementById('plan');
	hideLinkRef = document.getElementById(hideLinkId);
	showLinkRef = document.getElementById(showLinkId);
	imgRef.src = imageUrl;
	hideLinkRef.style.display = 'none';
	showLinkRef.style.display = 'inline';
}

// JavaScript Document
function contact(charCodeArray){
	var address = '';
	for(x = 0; x < charCodeArray.length; x++){
		address += String.fromCharCode(charCodeArray[x]);
	}
	document.location = 'mailto:'+address;
}

winRef = null;
winIsOpen = false;
function openWin(theURL,winName,features,winWidth,winHeight) { //v2.0
  if(winWidth > 0 && winHeight > 0){
  	monitorWidth = screen.width;
	monitorHeight = screen.height;
	xPos = Math.round(monitorWidth - winWidth) / 2;	
	yPos = Math.round(monitorHeight - winHeight) / 2;
	features += ',left='+xPos+',top='+yPos;	
  }
  winRef = window.open(theURL,winName,features);
  winIsOpen = true;
}

