sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


/* Marquee */
function marquee() {
	rd+=10;
	if (rd>la-175) // selon longueur texte
	rd=20;
	el=document.getElementById("marquee");
	el.style.left=rd;
	setTimeout("marquee()", 100); // vitesse de défilement
} 
rd = 10;
la = screen.availWidth;




jQuery(document).ready(function(){
	jQuery('div.news-list-content').hide();

	jQuery('h3.news-list-title').click(function(){
		if (jQuery(this).next('div.news-list-content:visible').slideUp('fast').length > 0) {
			var img = jQuery(this).find('img.news-list-imageplus');
			var imgSrc = jQuery(img).attr('src');
			var imgRel = jQuery(img).attr('rel');
			jQuery(img).attr('src',imgRel).attr('rel',imgSrc);
		}
	});
	jQuery('h3.news-list-title').click(function(){
		if (jQuery(this).next('div.news-list-content:hidden').slideDown('fast').length > 0) {
			var img = jQuery(this).find('img.news-list-imageplus');
			var imgSrc = jQuery(img).attr('src');
			var imgRel = jQuery(img).attr('rel');
			jQuery(img).attr('src',imgRel).attr('rel',imgSrc);
		}
	},function(){});
});

