﻿var myimages=new Array();
function preloadimages() {
for(i=0; i<preloadimages.arguments.length; i++) {
	myimages[i]=new Image();
	myimages[i].src = preloadimages.arguments[i];
	}
}
preloadimages("/images/qwartz0.gif","/images/qwartz1.gif","/images/qwartz2.gif","/images/qwartz3.gif","/images/qwartz4.gif","/images/qwartz5.gif","/images/qwartz6.gif","/images/qwartz7.gif","/images/qwartz8.gif","/images/qwartz9.gif");

function goTV(){ window.open('http://www.athle.com/upload/videos/decanation/clip2009.html', 'TV', 'width=600,height=610,scrollbars=0,toolbar=0,titlebar=0,status=0,resizable=0,menubar=0,location=0,channelmode=0,directories=0,fullscreen=0') }

document.getElementById("menu").innerHTML = '<a class="ffa2" href="/asp.net/main.html/html.aspx?htmlid=3394">Actualités</a>   |   <a class="ffa2" href="/asp.net/main.html/html.aspx?htmlid=3371">Billetterie</a>   |   <a class="ffa2" href="/asp.net/main.html/html.aspx?htmlid=3395">Epreuves/Horaires</a><BR><BR><a class="ffa" href="javascript:goTV()">Bande annonce</a>   |   <a class="ffa" href="/asp.net/main.html/html.aspx?htmlid=3402">Accès</a>   |   <a class="ffa" href="/asp.net/main.html/html.aspx?htmlid=3396">Engagés</a>   |   <a class="ffa" href="/asp.net/main.html/html.aspx?htmlid=3399">Résultats & Photos</a>   |   <a class="ffa" href="/asp.net/main.html/html.aspx?htmlid=3400">Opérations Clubs</a>   |   <a class="ffa" href="/asp.net/main.html/html.aspx?htmlid=3401">Jouez et gagnez des places   |   <a class="ffa" href="/asp.net/main.html/html.aspx?htmlid=3397">Presse</a>   |   <a class="ffa" href="/asp.net/main.html/html.aspx?htmlid=3398">Partenaires</a></a>'

Future = new Date(2009, 8, 9, 18, 00);
function counter() {
Maintenant = new Date;
TempFuture = Future.getTime();
TempMaintenant = Maintenant.getTime();
DiffSec = Math.floor((TempFuture-TempMaintenant)/1000);
DiffMin = Math.floor(DiffSec/60);
Diffheure = Math.floor(DiffMin/60);
DiffJour = Math.floor(Diffheure/24);
while (DiffMin>=60)
		{
		DiffMin = DiffMin-60;
		}
while (Diffheure>=24)
		{
		Diffheure = Diffheure-24;
		}
while (DiffSec>=60)
		{
		DiffSec = DiffSec-60;
		}
if (TempFuture > TempMaintenant) {
document.getElementById("rebours_time").innerHTML = '<div style="float:left; width:30px; height:22px; text-align:right">' + getNumbers(DiffJour) + '</div><div style="float:left; background:url(/images/qwartz-jour.gif); margin-left:5px; height:22px; width:44px"></div><div style="clear:both; height:0px"></div><div style="float:left; width:30px; height:22px; text-align:right">' + getNumbers(Diffheure) + '</div><div style="float:left; background:url(/images/qwartz-heure.gif); margin-left:5px; height:22px; width:51px"></div><div style="clear:both"></div><div style="float:left; width:30px; height:22px; text-align:right">' + getNumbers(DiffMin) + '</div><div style="float:left; background:url(/images/qwartz-minute.gif); margin-left:5px; height:22px; width:57px"></div><div style="clear:both"></div><div style="float:left; width:30px; height:22px; text-align:right">' + getNumbers(DiffSec) + '</div><div style="float:left; background:url(/images/qwartz-seconde.gif); margin-left:5px; height:22px; width:64px"></div><div style="clear:both"></div>'}

}

window.setInterval("counter()",1000);

function getNumbers(Data) {
var img = "";
for (i=0; i < Data.toString().length; i++)
	{
		img = img + '<img src="/images/qwartz' + Data.toString().charAt(i) + '.gif">';
	}
return img;
}

var bandeau="";
 if (bandeau)
 {
 document.getElementById("droite").innerHTML = '<img src="' + bandeau + '" border=0>';
 }