

function MM_preloadImages() { //v3.0
	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 change(ref,image)
{
if (ref != null) ref.src = image; return true;
}


function getTime()
{       
	var now = new Date();

	var day = now.getDay();
	var date = now.getDate();
	var month = now.getMonth() +1;
	var year = now.getYear();
	var minutes = now.getMinutes();
	var divider = "h";
	var jour = "";
	var mois = "";

	if (year < 1900)
		year = year + 1900;

	if (minutes<10)
		divider = "h0";

	if (day==0)
		jour = "Dimanche";
	if (day == 1)
		jour = "Lundi";
	if (day == 2)
		jour = "Mardi";
	if (day == 3)
		jour = "Mercredi";
	if (day == 4)
		jour = "Jeudi";
	if (day == 5)
		jour = "Vendredi";
	if (day == 6)
		jour = "Samedi";

	if (month == 1)
		mois = "janvier";
	if (month == 2)
		mois = "f&eacute;vrier";
	if (month == 3)
		mois = "mars";
	if (month == 4)
		mois = "avril";
	if (month == 5)
		mois = "mai";
	if (month == 6)
		mois = "juin";
	if (month == 7)
		mois = "juillet";
	if (month == 8)
		mois = "ao&ucirc;t";
	if (month == 9)
		mois = "septembre";
	if (month == 10)
		mois = "octobre";
	if (month == 11)
		mois = "novembre";
	if (month == 12)
		mois = "d&eacute;cembre";


	return( jour + ", " + date + " " + mois   + " " + year + " - " + now.getHours() + divider + minutes  );
}




function getTimeMini()
{       
	var now = new Date();

	var date = now.getDate();
	var month = now.getMonth() +1;
	var year = now.getYear();
	var mois = "";
	var prean = "";

	if (year == 99)
		prean = "19";
	if (year == 100)
		year = "2000";

	if (month == 1)
		mois = "01";
	if (month == 2)
		mois = "02";
	if (month == 3)
		mois = "03";
	if (month == 4)
		mois = "04";
	if (month == 5)
		mois = "05";
	if (month == 6)
		mois = "06";
	if (month == 7)
		mois = "07";
	if (month == 8)
		mois = "08";
	if (month == 9)
		mois = "09";
	if (month == 10)
		mois = "10";
	if (month == 11)
		mois = "11";
	if (month == 12)
		mois = "12";


	return( date + "." + mois  + "." + prean + + year );
}











function palette(page)
{
	open(page,'pnor_horo','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=250,height=250,left=380,top=30').focus();
}









function palette2(page,larg,haut,x,y)
{
	open(page,'art','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+larg+',height='+haut+',left=+x+,top=+y+').focus();
}
