$(document).ready(function(){

	var logo = '/multimedia/images/img_structures/logo-onex.png';
	var logo_hover = '/multimedia/images/img_structures/logo-onex-on.png';
	$("#logo a img").mouseover( function() { this.src = logo_hover; } );
	$("#logo a img").mouseout( function() { this.src = logo; } );

	var icoplus = '/multimedia/images/img_structures/icon_plus.gif';
	var icoplus_hover = '/multimedia/images/img_structures/_hover.png';
	//$("a.plus img").mouseover( function() { this.src = icoplus_hover; } );
	//$("a.plus img").mouseout( function() { this.src = icoplus; } );
	//$("div.plus a img").mouseover( function() { this.src = icoplus_hover; } );
	//$("div.plus a img").mouseout( function() { this.src = icoplus; } );

	var arrow_left = '/multimedia/images/img_structures/arrow_left.gif';
	var arrow_right = '/multimedia/images/img_structures/arrow_right.gif';
	var arrow_left_hover = '/multimedia/images/img_structures/fleche_gauche_hover.png';
	var arrow_right_hover = '/multimedia/images/img_structures/fleche_droite_hover.png';
	$("a.left_arrow img").mouseover( function() { this.src = arrow_left_hover; } );
	$("a.left_arrow img").mouseout( function() { this.src = arrow_left; } );
	$("a.right_arrow img").mouseover( function() { this.src = arrow_right_hover; } );
	$("a.right_arrow img").mouseout( function() { this.src = arrow_right; } );

	$('li.actuhome').mouseover( function() {
		var idelem = this.id.substr(8);
		$(this).addClass('actuhomehover');
		$('#actuhometop'+idelem).addClass('actuhomehovertop');
		$('#actuhomebottom'+idelem).addClass('actuhomehoverbottom');
	});
	$('li.actuhome').mouseout( function() {
		var idelem = this.id.substr(8);
		$(this).removeClass('actuhomehover');
		$('#actuhometop'+idelem).removeClass('actuhomehovertop');
		$('#actuhomebottom'+idelem).removeClass('actuhomehoverbottom');
	});

	$('li.agendaitem').mouseover( function() {
		var idelem = this.id.substr(10);
		$(this).addClass('agendaitemhover');
		//$(this).css('background-color', '#D6DBDE');
	});
	$('li.agendaitem').mouseout( function() {
		var idelem = this.id.substr(10);
		$(this).removeClass('agendaitemhover');
		$(this).css('background-color', '#EBECEC');
	});


	$('#nav li').mouseover( function() {
		var idelem = this.id.substr(3);
		$('#sub-'+idelem).slideDown();
		//$('.sub').hide();
	});

	$('#nav li').mouseout( function() {
		var idelem = this.id.substr(3);

		$('#nav li').each(function(index) {
	    if (this.id.length > 0){
	    	var theid = this.id.substr(3);
	    	if (theid != idelem){
	    		$('#sub-'+theid).hide();
	    	}
	    	else{
	    		$('#sub-'+theid).show();
	    		//alert(idelem + ' = ' + theid);
	    	}
	    }
    });

	});

});




