jQuery(document).ready(function(){
	jQuery('#top-navi li').hover(
		function(){ jQuery("ul", this).fadeIn("fast"); },
		function() {jQuery("ul", this).fadeOut("fast") }
	);

 
	jQuery('#date ul li').mouseover(function(e){
		bubble_height = jQuery('#' + jQuery(this).attr('id') + ' .bubble').height();
		bubble_width = jQuery('#' + jQuery(this).attr('id') + ' .bubble').width() ;
		jQuery('#' + jQuery(this).attr('id') + ' .bubble').css('left', this.offsetLeft + 'px')
		.css('top', this.offsetTop - bubble_height -10 + 'px') ;
		jQuery('#' + jQuery(this).attr('id') + ' .bubble').css('visibility', 'visible');
		
	});
	jQuery('#date ul li').mouseout(function(e){
		jQuery('.bubble').css('visibility', 'hidden');
	});


});

function goUp(){
	Navigateur = navigator.appName;
	if(Navigateur == "Microsoft Internet Explorer") window.scroll(0,0);
};

function popup_map(coord){
	ouvpop=window.open("/rotarex/gmap.php?coord=" + coord,"new_window","top=50,left=50,width=450,height=450,status=1,scrollbars=0,resizable=0");
	return false;
};

function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}

function toggle() {
	document.getElementById('toggle').className = document.getElementById('toggle').className == 'show' ? '' : 'show';
	return(false);
}

