
jQuery(document).ready(function() {

$('#content a[title], .colorbox').colorbox({ transition: 'fade' });


if($.browser.msie &&  $.browser.version<=7){
	var alturavideo = 355;
}else{
	var alturavideo = 320;
}
$('.colorboxvideo').colorbox({
	transition: 'fade',
	iframe:true,
	width: 330,
	height: alturavideo
});


/*$('#content img[title]').qtip({
   style: { 
      width: 300,
      padding: 5,
      background: '#b03736',
      color: 'white',
      textAlign: 'left',
      border: {
         width: 10,
         radius: 10,
         color: '#b03736'
      },
      tip: 'topLeft'
   }
}); */
$('img[title]').qtip();
$('img').attr({ alt: "" });

var sidebarheight = $("#divsidebar").height()+100;

altura = $(window).height();
if(altura<=sidebarheight){
	$("#sidebar #divsidebar").css({"position":"relative"});
}else{
	$("#sidebar #divsidebar").css({"position":"fixed"});
}
$(window).resize(function(){
	altura = $(window).height();
	if(altura<=sidebarheight){
		$("#sidebar #divsidebar").css({"position":"relative"});
	}else{
		$("#sidebar #divsidebar").css({"position":"fixed"});
	}
});


$("#mas").click(function(){
if($.browser.msie){
	$("#mastexto").show();
}else{
	$("#mastexto").fadeIn("slow");
}
	$(this).hide();
});


});




