// Created by iWeb 2.0.4 local-build-20080811

setTransparentGifURL('Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({shadow_0:new IWShadow({blurRadius:4,offset:new IWPoint(1.4142,1.4142),color:'#000000',opacity:0.500000}),stroke_0:new IWStrokeParts([{rect:new IWRect(-1,1,2,222),url:'index_files/stroke.png'},{rect:new IWRect(-1,-1,2,2),url:'index_files/stroke_1.png'},{rect:new IWRect(1,-1,291,2),url:'index_files/stroke_2.png'},{rect:new IWRect(292,-1,2,2),url:'index_files/stroke_3.png'},{rect:new IWRect(292,1,2,222),url:'index_files/stroke_4.png'},{rect:new IWRect(292,223,2,2),url:'index_files/stroke_5.png'},{rect:new IWRect(1,223,291,2),url:'index_files/stroke_6.png'},{rect:new IWRect(-1,223,2,2),url:'index_files/stroke_7.png'}],new IWSize(293,224)),shadow_1:new IWShadow({blurRadius:10,offset:new IWPoint(4.2426,4.2426),color:'#000000',opacity:0.750000})});registry.applyEffects();}
function hostedOnDM()
{return false;}
function onPageLoad()
{loadMozillaCSS('index_files/indexMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');fixAllIEPNGs('Media/transparent.gif');IMpreload('index_files','shapeimage_2','0');IMpreload('index_files','shapeimage_3','0');IMpreload('index_files','shapeimage_4','0');IMpreload('index_files','shapeimage_7','0');IMpreload('index_files','shapeimage_8','0');applyEffects()}
var defile;// l'element a deplacer
var psinit = 200; // position horizontale de depart
var pscrnt = psinit;

function texteDefile() {
   if (!defile) defile = document.getElementById('defile');
   if (defile)
   {
      if(pscrnt < ( - defile.offsetWidth))
	  	{
         pscrnt = psinit;
        } else
		{
         pscrnt+= -1; // pixel par deplacement
      	}
      defile.style.right = pscrnt+"px";
   }
}
var timer1 = setInterval("texteDefile()",10); // delai de deplacement

function ouvrir() {
var index=document.forms[0].elements[0].options.selectedIndex;
if (index>0) {
var page=document.forms[0].elements[0].options[index].value;
window.open(page,"","");
}
}

function opt_disabled(){
try {
var index=document.forms[0].elements[0].options.selectedIndex;
if (document.forms[0].elements[0].options[index].disabled){
while (document.forms[0].elements[0].options[index].disabled) index +=1;
document.forms[0].elements[0].options.selectedIndex = index;
}
return true;
}
catch(e){
//alert(e.description);
}
}
function initialise() {
	timer=setInterval('bouge()',"50");
}
function attends() {
	pas=0;
	s=sens_y;
	sens_y=0;
}
function reprends() {
	pas=3;
	sens_y=s;
}
function bouge() {
	x=x+pas;
	y=y+sens_y;
	document.getElementById("div_publicitaire").style.left = x + "px";
	document.getElementById("div_publicitaire").style.top = y + "px";
	document.getElementById("div_publicitaire").style.visibility = "visible"; // necessaire a IE, sinon disparrait
	if (x>depart_x) x=-400;
	// change le sens, monte et descend
	if (y<10) sens_y=1;
	if (y>100) sens_y=-1;
}
