jQuery.fn.extend({captify:function(n){var a=$.extend({speedOver:"fast",speedOut:"normal",hideDelay:500,animation:"slide",prefix:"",opacity:"1.0",className:"caption-bottom",position:"bottom",spanWidth:"100%"},n);$(this).each(function(){var c=this;$(this).load(function(){if(c.hasInit)return false;c.hasInit=true;var i=false,k=false,e=$("#"+$(this).attr("rel")),g=!e.length?$(this).attr("alt"):e.html();e.remove();e=this.parent&&this.parent.tagName=="a"?this.parent:$(this);var h=e.wrap("<div></div>").parent().css({overflow:"hidden",
padding:0,fontSize:0.1}).addClass("caption-wrapper").width($(this).width()).height($(this).height());$.map(["top","right","bottom","left"],function(f){h.css("margin-"+f,$(c).css("margin-"+f));$.map(["style","width","color"],function(j){j="border-"+f+"-"+j;h.css(j,$(c).css(j))})});$(c).css({border:"0 none"});var b=$("div:last",h.append("<div></div>")).addClass(a.className),d=$("div:last",h.append("<div></div>")).addClass(a.className).append(a.prefix).append(g);$("*",h).css({margin:0}).show();g=jQuery.browser.msie?
"static":"relative";b.css({zIndex:1,position:g,opacity:a.animation=="fade"?0:a.opacity,width:a.spanWidth});if(a.position=="bottom"){e=parseInt(b.css("border-top-width").replace("px",""))+parseInt(d.css("padding-top").replace("px",""))-1;d.css("paddingTop",e)}d.css({position:g,zIndex:2,background:"none",border:"0 none",opacity:a.animation=="fade"?0:1,width:a.spanWidth});b.width(d.outerWidth());b.height(d.height());g=a.position=="bottom"&&jQuery.browser.msie?-4:0;var l=a.position=="top"?{hide:-$(c).height()-
b.outerHeight()-1,show:-$(c).height()}:{hide:0,show:-b.outerHeight()+g};d.css("marginTop",-b.outerHeight());b.css("marginTop",l[a.animation=="fade"||a.animation=="always-on"?"show":"hide"]);var m=function(){if(!i&&!k){var f=a.animation=="fade"?{opacity:0}:{marginTop:l.hide};b.animate(f,a.speedOut);a.animation=="fade"&&d.animate({opacity:0},a.speedOver)}};if(a.animation!="always-on"){$(this).hover(function(){k=true;if(!i){var f=a.animation=="fade"?{opacity:a.opacity}:{marginTop:l.show};b.animate(f,
a.speedOver);a.animation=="fade"&&d.animate({opacity:1},a.speedOver/2)}},function(){k=false;window.setTimeout(m,a.hideDelay)});$("div",h).hover(function(){i=true},function(){i=false;window.setTimeout(m,a.hideDelay)})}});if(this.complete||this.naturalWidth>0)$(c).trigger("load")})}});



$(document).ready(function(){
						   $(".latest_img").fadeTo("fast", 0.7); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".latest_img").hover(function(){
						   $(this).fadeTo("fast", 1.0);
						   // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("fast", 0.7); // This should set the opacity back to 30% on mouseout
						   });
						   });

$(document).ready(function(){
						   $(".player_script").fadeTo("fast", 0.5); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".player_script").hover(function(){
						   $(this).fadeTo("fast", 1.0);
						   // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("fast", 0.5); // This should set the opacity back to 30% on mouseout
						   });
						   });
$(document).ready(function(){
						   $(".simplu").fadeTo("fast", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".simplu").hover(function(){
						   $(this).fadeTo("fast", 0.2);
						   // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("fast", 1.0); // This should set the opacity back to 30% on mouseout
						   });
						   });
$(document).ready(function(){
						   $(".latest_img2").fadeTo("fast", 0.95); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".latest_img2").hover(function(){
						   $(this).fadeTo("fast", 1.0);
						   // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("fast", 0.95); // This should set the opacity back to 30% on mouseout
						   });
						   });
$(document).ready(function(){
						   $(".latest_img3").fadeTo("fast", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".latest_img3").hover(function(){
						   $(this).fadeTo("fast", 0.5);
						   // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("fast", 1.0); // This should set the opacity back to 30% on mouseout
						   });
						   });

$(document).ready(function(){
						   $(".live_bara").fadeTo("fast", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".live_bara").hover(function(){
						   $(this).fadeTo("fast", 0.6);
						   // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("fast", 1.0); // This should set the opacity back to 30% on mouseout
						   });
						   });
$(document).ready(function(){
						   $(".latest_img4").fadeTo("fast", 0.7); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".latest_img4").hover(function(){
						   $(this).fadeTo("fast", 0.5);
						   // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("fast", 0.7); // This should set the opacity back to 30% on mouseout
						   });
						   });
$(document).ready(function(){
						   $(".main_image").fadeTo("fast", 0.5); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".main_image").hover(function(){
						   $(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("fast", 0.5); // This should set the opacity back to 30% on mouseout
						   });
						   });

$(document).ready(function(){
						   $("#text p").fadeTo("slow", 0.3); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $("#text p").hover(function(){
						   $(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("slow", 0.3); // This should set the opacity back to 30% on mouseout
							   	});
						   });

$(document).ready(function(){
						   $("#div").fadeTo("slow", 0.3); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $("#div").hover(function(){
						   $(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("slow", 0.3); // This should set the opacity back to 30% on mouseout
							   	});
						   });



$(function() {


$('.legenda').tooltip({
	showURL: false
});

});


