/* jQuery shuffle Copyright (c) 2008 Ca-Phun Ung <caphun at yelotofu dot com>
 * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
 * http://yelotofu.com/labs/jquery/snippets/shuffle/
 * Shuffles an array or the children of a element container.
 * This uses the Fisher-Yates shuffle algorithm <http://jsfromhell.com/array/shuffle [v1.0]> */
$.fn.shuffle=function(){return this.each(function(){var a=$(this).children().clone(!0);return a.length?$(this).html($.shuffle(a)):this})};$.shuffle=function(a){for(var c,d,b=a.length;b;c=parseInt(Math.random()*b),d=a[--b],a[b]=a[c],a[c]=d);return a};

/* Banniere pub aleatoire */
function aleaPub(a,c,d,b){$(a).shuffle();$(a).children(":first").toggle();setInterval(function(){var e=$(a).find(".active");0==e.length&&(e=$(a).children(":last"));var d=e.next(c).length?e.next(c):$(a).children(":first");e.fadeOut(b).removeClass("active");d.addClass("active").fadeIn(b)},d)};

$(document).ready(function(){
	aleaPub('#pubs','li',5000,600); // Pub aleatoire
	$.getScript("http://www.tameteo.com/wid_loader/"+meteo_load); // Meteo widget
	swfobject.embedSWF("http://www.youtube.com/v/ulcwroObg_U?version=3&showinfo=0&controls=0&autohide=1","video", "120", "125", "9", null, null, {allowScriptAccess: "always", allowFullScreen: "true"},{id: "video"});	// Video Youtube	
});
