//fonction du menu
var lienact = "";

function showdiv(parent)
{
	if (lienact!="")
	{
		document.getElementById(lienact).style.display='none';
	}
	document.getElementById(parent).style.display='block';
	lienact = parent;
}
	
//fonction d'open Window
function openwin(thisurl)
{
	infowin = open(thisurl,'phowin','menubar=0,width=498,height=258,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,top=100,left=100');
}

window.onload = function(){
	if (document.getElementById('archivesmenu')) { 
		document.getElementById('archivesmenu').onchange = function(){
			if(this.options[this.selectedIndex].value !='default') window.location= this.options[this.selectedIndex].value;
		}
	}
	
	if (document.getElementById('archivesnews')) { 
		document.getElementById('archivesnews').onchange = function(){
			if(this.options[this.selectedIndex].value !='default') window.location='http://www.patrickdacquay.com/newsletters/'+this.options[this.selectedIndex].value+'/newsletter.html';
		}
	}
}