	$(document).ready(function() {
		$('.corner_haut').corner("top 8px cc:#c5c8d2");
		$('.corner_bas').corner("bottom 8px");
		$('.corner').corner("8px");
		//$('.firstnews').corner("bottom");
		$('.fond_bordure').corner();
		$('#debut_agenda_time').timepickr();
		$('#fin_agenda_time').timepickr();

			$(".toggleajax").click(function() {
				toggleAjax();
			});
			$(".deroulant").mouseover(function() {
				$(this).next().show();
			});
			$(".deroulant").mouseout(function() {
				$(this).next().hide();
			});
			$(".sousmenu").mouseover(function() {
				$(this).show();
			});
			$(".sousmenu").mouseout(function() {
				$(this).hide();
			});
		$("#pi3d > ul").tabs('rotate', 3500);
	});

function toggleAjax() {
	$("#ajaxcontainer").toggle();
	$("#ajaxbackground").toggle();
	return false;
}

function search_banner() {
	var banner = $("#nombanner_banner").value();
	$post("/annuaire/search/banner/"+banner, function(data){
		$("#resultats_annuaire").html() = data;
	});
	return false;
}

function Lien() {
	i = document.semaines.semaine.selectedIndex;
	if (i == 0) return;
	url = '/agenda/index/timestamp/'+document.semaines.semaine.options[i].value;
	parent.location.href = url;
}

//alert(window.frames.banner_agenda.innerhtml);			
//$('#myagenda_banner').html('...');

function menu_derouler(id_wikilive) {
	$("#menu_wikilive_"+id_wikilive).children("ul").toggle();
	return false;
}
