﻿function RunFoo(swf, hauteur, largeur, couleur, nom) {
	document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\""+hauteur+"\" height=\""+largeur+"\" id=\""+nom+"\" align=\"middle\">\n");
	document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />\n");
	document.write("<param name=\"wmode\" value=\"transparent\" />\n");
	document.write("<param name=\"movie\" value=\""+swf+"\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\""+couleur+"\" /><embed wmode=\"transparent\" src=\""+swf+"\" quality=\"high\" bgcolor=\""+couleur+"\" width=\""+hauteur+"\" height=\""+largeur+"\" name=\""+nom+"\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\n");
	document.write("</object>\n");
}

function up(i) {
	
	LI = document.getElementById('menu').getElementsByTagName('li');
	OBJ = LI[i];
	if(i == 0 && (OBJ.getAttribute("class") != 'currentpre' && OBJ.getAttribute("className") != 'currentpre'))
	{ OBJ.style.background="transparent url(images/menu.png) 0px -30px no-repeat"; setTimeout("down('"+i+"')",450); }
	else if(i == 1 && (OBJ.getAttribute("class") != 'currentorg' && OBJ.getAttribute("className") != 'currentorg'))
		{ OBJ.style.background="transparent url(images/menu.png) -100px -30px no-repeat"; setTimeout("down('"+i+"')",450); }
	else if(i == 2 && (OBJ.getAttribute("class") != 'currentled' && OBJ.getAttribute("className") != 'currentled'))
		{ OBJ.style.background="transparent url(images/menu.png) -200px -30px no-repeat"; setTimeout("down('"+i+"')",450); }
	else if(i == 3 && (OBJ.getAttribute("class") != 'currentedi' && OBJ.getAttribute("className") != 'currentedi'))
		{ OBJ.style.background="transparent url(images/menu.png) -259px -30px no-repeat"; setTimeout("down('"+i+"')",450); }
	else if(i == 4 && (OBJ.getAttribute("class") != 'currentnum' && OBJ.getAttribute("className") != 'currentnum'))
		{ OBJ.style.background="transparent url(images/menu.png) -325px -30px no-repeat"; setTimeout("down('"+i+"')",450); }
	else if(i <= 4) { i++; setTimeout("up('"+i+"')",450); }
	
}

function down(i) {
	
	LI = document.getElementById('menu').getElementsByTagName('li');
	LI[i].style.background="";
	i++;
	up(i);
	
}

window.onload = function() { up(0); } 

