MailSite = new Array('in.eu','ite.jou','tact@s','con');
MailStephane= new Array('in.eu','stepha','ne@jou');
Now = new Date;
NowTime = Now.getTime();
Day = new Date(2011, 3, 10);
DayTime = Day.getTime();
DiffSec = Math.floor((DayTime-NowTime)/1000);
DiffMin = Math.floor(DiffSec/60);
DiffHour = Math.floor(DiffMin/60);
DiffDay = Math.floor(DiffHour/24);
while (DiffMin>=60)
{
DiffMin = DiffMin-60;
}
while (DiffHour>=24)
{
DiffHour = DiffHour-24;
}
while (DiffSec>=60)
{
DiffSec = DiffSec-60;
}
function forecast(text)
{
if (text=='Effacer') {document.write("<image src='may_sur_orne/effacer.png'>")}
else if (text=='Partiellement Nuageux') {document.write("<image src='may_sur_orne/partiellement_nuageux.png'>")}
else if (text=='Nuageux') {document.write("<image src='may_sur_orne/nuageux.png'>")}
else if (text=='Pluvieux') {document.write("<image src='may_sur_orne/pluvieux.png'>")}
else if (text=='Neige') {document.write("<image src='may_sur_orne/neigeux.png'>")}
else {document.write("<image src='may_sur_orne/blanc.png'>")}
}
function trend(value)
{
if (value<0) {document.write("<image src='may_sur_orne/diminution.png'>")}
else if (value==0) {document.write("<image src='may_sur_orne/stable.png'>")}
else {document.write("<image src='may_sur_orne/augmentation.png'>")}
}
function wind_direction(text,value)
{
if (value>0)
	{
	document.write(text)
	if(text=="N") {document.write("<image src='may_sur_orne/n.png'>")}
	else if(text=="NNE") {document.write("<image src='may_sur_orne/nne.png'>")}
	else if(text=="NE") {document.write("<image src='may_sur_orne/ne.png'>")}
	else if(text=="ENE") {document.write("<image src='may_sur_orne/ene.png'>")}
	else if(text=="E") {document.write("<image src='may_sur_orne/e.png'>")}
	else if(text=="ESE") {document.write("<image src='may_sur_orne/ese.png'>")}
	else if(text=="SE") {document.write("<image src='may_sur_orne/se.png'>")}
	else if(text=="SSE") {document.write("<image src='may_sur_orne/sse.png'>")}
	else if(text=="S") {document.write("<image src='may_sur_orne/s.png'>")}
	else if(text=="SSO") {document.write("<image src='may_sur_orne/sso.png'>")}
	else if(text=="SO") {document.write("<image src='may_sur_orne/so.png'>")}
	else if(text=="OSO") {document.write("<image src='may_sur_orne/oso.png'>")}
	else if(text=="O") {document.write("<image src='may_sur_orne/o.png'>")}
	else if(text=="ONO") {document.write("<image src='may_sur_orne/ono.png'>")}
	else if(text=="NO") {document.write("<image src='may_sur_orne/no.png'>")}
	else {document.write("<image src='may_sur_orne/nno.png'>")}
	}
else {document.write('-')}
}
function display_photography()
{
var PhotoThumb=document.getElementById('thumbnail');
var PhotoLink=PhotoThumb.getElementsByTagName('a');
var Photo=document.getElementById('photography');
var PhotoTitle=document.getElementById('phototitle').getElementsByTagName('dt')[0];
for (var i=0;i<PhotoLink.length;++i)
	{
	PhotoLink[i].onclick=function()
		{
		Photo.src=this.href;
		Photo.alt=this.title;
		PhotoTitle.firstChild.nodeValue=this.title;
		return false;
		};
	}
}
window.onload = display_photography;
var DHTML = (document.getElementById || document.all || document.layers);
function getObj(Name)
{
if (document.getElementById)
	{
	this.obj = document.getElementById(Name);
	this.style = document.getElementById(Name).style;
	}
else if (document.all)
	{
	this.obj = document.all[Name];
	this.style = document.all[Name].style;
	}
else if (document.layers)
	{
	this.obj = document.layers[Name];
	this.style = document.layers[Name];
	}
}
function move(value) 
{
var coordinate = new getObj('select_grave');
coordinate.style.left= value.substring(0,3);
coordinate.style.top = value.substring(4,7);
}
function replace_days(value) 
{
var coordinate = new getObj('area_days');
coordinate.style.left= value.substring(0,3);
coordinate.style.top = value.substring(4,7);
}
function replace_ut(value) 
{
var coordinate = new getObj('area_ut');
coordinate.style.left= value.substring(0,3);
coordinate.style.top = value.substring(4,7);
}

