$(document).ready(function(){

	$('[rel="sub_menu"]:not(:first)').hide();
	
	$('[rel="item_menu"]').click(function(){
		 $('[rel="sub_menu"]:visible').slideUp("normal");
		 $(this).next().slideDown("normal");
			  return false;
	});
	
});


$(document).ready(function() {
    xOffset=10; yOffset=20;
    $(".tooltip").hover(function(e){
        this.t=this.title;
        this.title="";
        $("body").append("<p id='tooltip'>"+ this.t +"</p>");
        $("#tooltip")
            .css("top",(e.pageY - xOffset) + "px")
            .css("left",(e.pageX + yOffset) + "px")
            .fadeIn("normal");
    },function(){
        this.title = this.t;
        $("#tooltip").remove();
    });
    $(".tooltip").mousemove(function(e){
        $("#tooltip")
            .css("top",(e.pageY - xOffset) + "px")
            .css("left",(e.pageX + yOffset) + "px");
    });
});


$(document).ready(function() {
	
	$("#acc1Nivel1").accordion({
		alwaysOpen: false,
		autoheight: false,
		header: 'h4.acc1Nivel1',
		clearStyle: false,
		active: true,
		collapsible: true
		
	});
	
	$("#acc1Nivel2").accordion({
		alwaysOpen: false,
		autoheight: false,
		header: 'h4.acc1Nivel2',
		clearStyle: false,
		active: true,
		collapsible: true
		
	});
	

	

	$(".cinemidia").click(function() {

		$("#sumir").hide("slow");

	});

	$("#acc1Nivel2").click(function() {

		$("#sumir").show("slow").toggle();

	});


	
	
});

