function set_layout(){
	
	$.ifixpng('img/pixel.gif');		
	$('img[@src$=.png]').ifixpng();
	$(document).pngFix();

}

function set_opacicty_all(){
	
	$('.opacity').each( function(i) {
		$(this).css("opacity", "0.6");
	});
	
}

function set_opacity(object){
	
	$(object).animate( { opacity : 0.6 }, 700 );

}

function unset_opacity(object){
	
	$(object).animate( { opacity : 1 }, 700 );
	
}

function select_menu(id, animate) {
	
	if (($.browser.msie) && ($.browser.version.substr(0,1) == 6)) {
		return;
	}
	$("#menu_"+id).parent().css("marginTop", "2px");
	if (animate) {
		$("#menu_"+id).animate( { marginTop : -40 }, 500 );
	} else {
		$("#menu_"+id).css("marginTop", "-40px");
	}
	
}
function roll_over_menu(id_selected){
	$('.js_menu_rollover').mouseover(function(){
		var id = $(this).parent().parent().attr('id');
		if (id_selected != id) {
			var img = $(this).attr("src");
			img = img.replace(".png",".on.png");
			$(this).attr( {src: img} );
		}		
    }).mouseout(function(){
     	var id = $(this).parent().parent().attr('id');
		if (id_selected != id) {
			var img = $(this).attr("src");
			img = img.replace(".on.png",".png");
			$(this).attr( {src: img} );			
		}
    });

}