var W3CDOM=(document.getElementById && document.createElement );
var init=function(){if(!W3CDOM){return;}var temp=new Date();var imgTest=new Image();var query=temp.getTime();imgTest.src='/images/sondage/bar.gif?s='+query;imgTest.onload=imageReplacement;}
var imageReplacement=function(){replaceThemwithGif( document.getElementById('amazina').getElementsByTagName('a'));}
var replaceThemwithGif=function(nodeList){var imgTemp=document.createElement('img'); for(var i=0,node;node=nodeList[i];i++){if(node.id){var img=imgTemp.cloneNode(true);img.src='/images/background/'+node.id+'.gif';img.alt=node.firstChild.nodeValue;node.replaceChild(img,node.firstChild );}}}
var showfile=function(){var aList=document.getElementsByTagName('a');for(var i=0,a;a=aList[i];i++){switch(a.className){case'show':a.onclick=function(){window.open(this.href,'exemple','left=30,top=30,width=343,height=300,scrollbars=no');return false;};break;case'showvideo':a.onclick=function(){window.open(this.href,'exemple','left=30,top=30,width=343,height=354,scrollbars=no');return false;};break;}}}
var target=function(){var aList=document.getElementById('liste').getElementsByTagName('a');for(var i=0,a;a=aList[i];i++){a.onclick=function(){window.open(this.href,'exemple','left=5,top=5,width=800,height=600,scrollbars=yes');return false;}}}
var bodyOnload=function(){if(document.getElementById('Oneshow')){initSlideShow();}}
var addLoadEvent=function(func){var oldonload=window.onload;if(typeof(window.onload)!='function'){window.onload=func;}else{window.onload=function(){oldonload();func();}}}
addLoadEvent(init);addLoadEvent(showfile);addLoadEvent(bodyOnload);
