
HeureLocale = new Date();
if (HeureLocale.getHours() < 6)
	{
	document.write ("<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"http://www.pierro-astro.com/css/style0.css\" />")
	}
	else {
if (HeureLocale.getHours() >= 6 && HeureLocale.getHours() < 9)
	{
	document.write ("<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"http://www.pierro-astro.com/css/style1.css\" />")
	}
	else {
if (HeureLocale.getHours() >= 9 && HeureLocale.getHours() < 17)
	{
	document.write ("<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"http://www.pierro-astro.com/css/style2.css\" />")
	}
	else {
if (HeureLocale.getHours() >= 17 && HeureLocale.getHours() < 20)
	{
	document.write ("<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"http://www.pierro-astro.com/css/style3.css\" />")
	}
	else {
if (HeureLocale.getHours() >= 20)
	{
	document.write ("<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"http://www.pierro-astro.com/css/style0.css\" />")
	}
	}}}}


function populateFrames(frameID, href1) { 
    top.frames[frameID].location.href = href1; 
} 

/***********************************************
* Ajax Includes script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//To include a page, invoke ajaxinclude("afile.htm") in the BODY of page
//Included file MUST be from the same domain as the page displaying it.

function ajaxinclude(url) {
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
}
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
page_request.open('GET', url, false) //get page synchronously
page_request.send(null)
writecontent(page_request)
}

function writecontent(page_request){
if (window.location.href.indexOf("http")==-1 || page_request.status==200)
document.write(page_request.responseText)
}


function OngletClick( numOnglet,maxOnglet )
{
	var i;
	for (i = 0; i < maxOnglet; i++)
	{
		if( i != numOnglet) {
		document.getElementById('onglet'+i).className = " ";
		}
	}
	document.getElementById('onglet'+numOnglet).className = "encours";
}





function calcHeight()
{
	//var the_height=document.frames['the_iframe'].document.body.scrollHeight;//find the height of the internal page
	var the_height=document.getElementById('the_iframe').contentWindow.document.body.scrollHeight;//find the height of the internal page
 
	//document.getElementById('the_iframe').style.height=the_height;//change the height of the iframe
	document.getElementById('the_iframe').height=the_height;//change the height of the iframe
}
 
 
function ShowVideo()
{
	if (document.getElementById('the_example').style.display=="none")
	{
		document.getElementById('the_example').style.display="block";
		//document.getElementById('show_example_button').value="Arrêter la vidéo";
	        document.getElementById('show_example_button').className = "boutonarretvideo";
	}
	else
	{
		document.getElementById('the_example').style.display="none";
		//document.getElementById('show_example_button').value="Voir la vidéo";
	        document.getElementById('show_example_button').className = "boutonaffichvideo";
	}
}
