function rollover(vari){
            td = document.getElementById(vari);
            image = td.getAttribute('over');
            td.style.backgroundImage = 'url(' + image + ')';
}

function rollout(vari){
            td = document.getElementById(vari);
            image = td.getAttribute('memory');
            td.style.backgroundImage = 'url(' + image + ')';
}

function highlight(vari){			
            img = document.getElementById(vari);
            img.memory = img.getAttribute('over');
            img.onmouseover = function(){};
            img.onmouseout = function(){};
            rollover(vari);
}

function textover(vari){
            text = document.getElementById("text"+vari);
            td = document.getElementById("td"+vari);
            text.className = "sous_menu_top_over";
            td.className = "sous_menu_top_over";
}

function textout(vari){
            text = document.getElementById("text"+vari);
            td = document.getElementById("td"+vari);
            text.className = td.getAttribute('memory');
            td.className = td.getAttribute('memory');
}

function texthighlight(vari){
			img = document.getElementById(vari);
            td = document.getElementById("td"+vari);
            td.memory = "sous_menu_top_over";
            img.onmouseover = function(){};
            img.onmouseout = function(){};
            textover(vari);
}
var theImages = new Array()

theImages[0] = '../commercial/images/avant_apres.gif'
theImages[1] = '../commercial/images/avant_apres2.gif'

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}