jQuery(document).ready(function(){
     jQuery(".megamenu").megamenu({ 'justify':'right' });
});

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}





    $(document).ready(function(){  
        $(".song").hide();  
        $("#botones_comentarios > a").click(function(){  
            $(".song").hide();  
                var box=$(this).attr("href");  
                    $(box).show();  
            $(".close").click(function(){  
            $(".song").hide();  
        }); 
        }); 
    });  


//$(document).ready(function()
//{
//	$(".tab_content").hide();
//	$("ul.tabs li:first").addClass("active").show();
//	$(".tab_content:first").show();
//
//	$("ul.tabs li").click(function()
//       {
//		$("ul.tabs li").removeClass("active");
//		$(this).addClass("active");
//		$(".tab_content").hide();
//
//		var activeTab = $(this).find("a").attr("href");
//		$(activeTab).fadeIn();
//		return false;
//	});
//});


$(document).ready(function() {
 // hides the slickbox as soon as the DOM is ready
 // (a little sooner than page load)
  $(".wellcome").show();
 // shows the slickbox on clicking the noted link
  $("#enviarimagen > a").click(function() {
 $(".wellcome").show();
 return false;
  });
 // hides the slickbox on clicking the noted link
  $(".close").click(function() {
 $(".wellcome").hide();
 return false;
  });
});

$(function(){

	$('.tooltip').poshytip( {				
	className: 'tip-twitter',
	showTimeout: 1,
	alignX: 'center',
	allowTipHover: false,
	followCursor: true,
	fade: false,
	slide: false
	
				
			});
	$('.tooltip2').poshytip( {			
	className: 'tip-twitter',
	showTimeout: 1,
    alignX: 'left',
	alignTo: 'target',
	alignY: 'center',
	offsetX: -5

		
			});
			
			});
