// JavaScript Document
    $.fn.opacity = function(amount) {
        if (amount > 1) amount = 1;
        if (amount < 0) amount = 0;
        if ($.browser.msie) {
                amount = (parseFloat(amount) * 100);
                this.css('filter', 'alpha(opacity='+amount+')');
        } else {
                this.css('opacity', amount);
                this.css('-moz-opacity', amount);
        }
        return this;
    }
    
    
    $(document).ready(function() {
        if (lng=='pt') {
           // $('a[href="#seemore"]').html("» mais info");  
            $('a[href="#seemore"]').html("» Festivais / Exibições");
        } else {
            $('a[href="#seemore"]').html("» Festivals / Screenings");
        }
                     /*
        $('a[href="#seemore"]').click(function()
        {
            $("#moreinfos").toggle();
            
            if (lng=='pt') {            
                if ($(this).html()=="» mais info") 
                    $(this).html("» sair de info");
                else
                    $(this).html("» mais info");
            } else {
                if ($(this).html()=="» more infos") 
                    $(this).html("» hide infos");
                else
                    $(this).html("» more infos");
            } 
        });
               */
        
        $(".gal .thumb").opacity(.7);
        $(".gal .thumb").mouseover(function(){$(this).opacity(1);});
        $(".gal .thumb").mouseout(function(){$(this).opacity(.7);});
        $(".gal .thumb").click(function(){ 
            src=$(this).attr("filename");
            $(".jqmw img").attr("src",src);
            $(".jqmw").jqmShow();  
        });
        $(".jqmw").jqm();
    });
