var $j=jQuery.noConflict();
$j(document).ready(function() {
  if($j('ol#menu').length>0) {
    $j('ol#menu li:not(.current_page_item)').each(function() {
      var li=$j(this);
      $j('a',li).hover(function() {
        li.animate( {
          marginTop:-10
        }, 500);
        $j('span',li).animate( {
          marginTop:22
        }, 500);
        $j('a',li).animate( {
          color:'#ffffff'
        }, 500)
      }
      ,function() {
        li.animate( {
          marginTop:0
        }, 350);
        $j('span',li).animate( {
          marginTop:0
        }, 350);
        $j(this).animate( {
          color:'#9c9c9c'
        }, 350)
      }
      )
    }
    );
  }
  if($j('a[href$=.swf]').length>0) {
    $j('a[href$=.swf]').each(function() {
      $j(this).replaceWith('<span id="flash"></span>');
      flashembed('flash', {
        src:$j(this).attr('href'),wmode:'transparent'
      }
      )
    }
    );
  }
  if($j('.current_page_item a').length > 0) {
    $j('.current_page_item a').click(function() {
      return false;
    }
    );
  }
  if($j('.gallery a').length > 0) {
    $j('.gallery a').click(function(){
	    $j('img', this).css({ opacity: 0.75 });
	});
  }
  
}
);
  
WPFB.options.closeImage = WPFB.site + '/wp-content/themes/pontaoliveira/img/closelabel.gif';

function lightbox(nome) {
    var imgPath = WPFB.site + "/wp-content/uploads/" + nome + ".jpg";
    $j.facebox({ image: imgPath });
}