
var listName='<p>Les dernières actualités</p>'; // the title of your list between single quotes
var mpic=new Array();
/* Edit link info in this order: name, image file, site title, URL
Insert each info between single quote marks, followed by a comma
(Replace '#' with the URL but leave the two quotes, i.e.
'http://www.theURL.com')
Do not edit after the URL. Add or remove lines as required */
mpic[mpic.length] = new info('Athlétisme','images/athletisme.jpg','Athlétisme','infoathletisme.php','m' + mpic.length);
mpic[mpic.length] = new info('Basket','images/basket.jpg','Basket','infobasket.php','m' + mpic.length);
mpic[mpic.length] = new info('Boxe','images/boxe.jpg','Boxe','infoboxe.php','m' + mpic.length);
mpic[mpic.length] = new info('Cyclisme','images/velo.jpg','Cyclisme','cyclisme.php','m' + mpic.length);
mpic[mpic.length] = new info('Ligue 1','images/football.jpg','Football','infoligue1.php','m' + mpic.length);
mpic[mpic.length] = new info('Formule 1','images/auto.jpg','F1','formule1.php','m' + mpic.length);
mpic[mpic.length] = new info('Golf','images/golf.jpg','Golf','infogolf.php', 'm' + mpic.length);
mpic[mpic.length] = new info('Handball','images/hand.jpg','Handball','infohand.php','m' + mpic.length);
mpic[mpic.length] = new info('Moto','images/moto.jpg','Moto','infomoto.php','m' + mpic.length);
mpic[mpic.length] = new info('Rugby','images/rugby.jpg','Rugby','inforugby.php', 'm' + mpic.length);
mpic[mpic.length] = new info('Ski','images/ski.jpg','Ski','infoski.php', 'm' + mpic.length);
mpic[mpic.length] = new info('Tennis','images/tennis.jpg','Tennis','Tennis.php', 'm' + mpic.length);
mpic[mpic.length] = new info('Voile','images/voile.jpg','Voile','infovoile.php', 'm' + mpic.length);
mpic[mpic.length] = new info('Volley','images/volley.jpg','Volley','infovolley.php', 'm' + mpic.length);
/* ------ Do not edit below this line ------ */
var minArr=new Array();
for (i=0; i<mpic.length; i++) {
minArr[i]=new Image();
minArr[i].src=mpic[i].thumb;
}
function info(nam, thumb, Title, web, markID) {
this.nam = nam;
this.thumb = thumb;
this.Title = Title;
this.web = web;
this.markID = markID;
}
function codeIt() {
document.write('<div id="hotlist"><b>' + listName + '</b>');
document.write('<hr width="100%" size="1">');
for (j=0; j<mpic.length; j++) {
document.write('<a target="offsite" href="');
document.write(mpic[j].web);
document.write('" onMouseover="preview(' + j + ',\'' + mpic[j].markID + '\')">');
document.write(mpic[j].nam);
document.write('</a><span class="arrow" id="' + mpic[j].markID + '"> &#9668;</span><br>');
}
document.write('<br>');
document.write('<div id="preview">');
document.write('<img class="thumbnail" alt="" name="screenshot" src="' + minArr[0].src + '" onClick="dest()">');
document.write('<div id="caption"></div>');
document.write('<P><input type="button" value="Cacher" style="border: 1px solid #CCC; padding: 1px; font-weight: bold; background: #FFFFFF url(http://www.peinture-guybarraud.com/images/bouton.jpg) repeat-x bottom left; margin: 0; font-size: 100%; font-family: Arial, Sans-serif; height: 23px; color: #333; width: 60px;" onClick="hide()"></p>');
document.write('</div></div>');
}
function preview(t,a) {
unmarkAll();
document.getElementById(a).style.visibility='visible';
document.getElementById('preview').style.display='block';
document.getElementById('caption').innerHTML=mpic[t].Title;
document.images.screenshot.src=minArr[t].src;
document.images.screenshot.title='Cliquer sur la vignette ' + mpic[t].nam + '';
}
function dest() {
for (x=0; x<mpic.length; x++) {
if (document.images.screenshot.src==minArr[x].src) {
window.open(mpic[x].web, 'offsite');
}
}
}
function hide() {
document.getElementById('preview').style.display='none';
unmarkAll();
}
function unmarkAll() {
for (c=0; c<mpic.length; c++) document.getElementById(mpic[c].markID).style.visibility='hidden';
}
// End -->
 function NewWindow(url,hauteur,largeur) {
var winl = (screen.width - largeur) / 2;
var wint = (screen.height - hauteur) / 2;
date_t = new Date;
time = date_t.getTime();
winprops = 'height='+hauteur+',width='+largeur+',top='+wint+',left='+winl+',scrollbars=1,resizable'
win = window.open(url, time, winprops)
}
document.oncontextmenu=new Function("return false");