function ouvrepop(adresse){window.open(adresse,"popi_vampire","height=468, width=500, status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=yes,fullscreen=no,top=100,left=150")}
function createRequestObject(){var ro;if(window.XMLHttpRequest)
{ro=new XMLHttpRequest();if(ro.overrideMimeType)
{ro.overrideMimeType('text/xml');}}
else if(window.ActiveXObject)
{try{ro=new ActiveXObject("Msxml2.XMLHTTP");}catch(e)
{try{ro=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}
return ro;}
var http=createRequestObject();function bruits_couloir(action){http.open('get','bruits.php?news='+action,true);http.onreadystatechange=handleResponse;http.send(null);}
function handleResponse(){if(http.readyState==4)
{if(http.status==200)
{document.getElementById("news_rss").innerHTML=http.responseText;}
else
{document.getElementById("news_rss").innerHTML="Error: returned status code "+http.status+" "+req.statusText;}}}
function slideSwitch(){var $active=$('#slideshow .slidewrap.active');if($active.length==0)$active=$('#slideshow .slidewrap:last');var $next=$active.next().length?$active.next():$('#slideshow .slidewrap:first');$active.addClass('last-active');$next.css({opacity:0.0}).addClass('active').animate({opacity:1.0},1000,function(){$active.removeClass('active last-active');});}
$(function(){setInterval("slideSwitch()",6000);});

