//
// psd2css.js
//
//   This is where all the javascript required by your design is written.
//
//   Originally generated at http://psd2cssonline.com 
//   May 17, 2009, 6:41 pm with psd2css Online version 1.37

var timerId;
$(document).ready(function(){

  // This is required for the PNG fix to work.
  if( $.fn.pngfix != null )
    $("img[@src$=png]").pngfix();

  // This is some javascript to stop IE from displaying the img alt attributes
  // when you mouse over imagess.  If you would like IE to display the alt attributes,
  // just comment out the following 4 lines.  Don't worry, if you leave this in 
  // place, your ALT attributes are still readable by the search engines.
  var tmpalt;
  $("img").hover( 
    function(){ tmpalt = $(this).attr( "alt" ); $(this).attr( "alt", "" ); },
    function(){ $(this).attr( "alt", tmpalt ); });

  // This is code to handle all of the _linkover events.  It works by
  // creating a special Wrap class, adding it to the link and linkover
  // divs of each link and linkover pair, and assigning a hover event to
  // that.
  $("#Layer-10").addClass("Wrap-11-10").hide();
  $("#Layer-11").addClass("Wrap-11-10");
  $(".Wrap-11-10").hover(
    function(){ $("#Layer-10").show(); $("#Layer-11").hide(); },
    function(){ $("#Layer-11").show(); $("#Layer-10").hide(); });
  
  // This is code to handle the features_hmenu menu
  $("#Layer-8").hide().addClass("allMenus");
  $("#Layer-7").mouseover(function(e){
    e.preventDefault();
    $(".allMenus").hide();
    $("#Layer-8").fadeIn();
    // Remove the following 2 lines if you don't want this menu to dissappear
    // automatically.  Change how long the menu stays visible by changing
    // the 4000 to another number of milliseconds
    //clearTimeout( timerId );
    //timerId = setTimeout( '$("#Layer-8").hide()', 4000 );
  });


  /* Here we take care of any _close layers you have made */
  $("#Layer-12").click(function(){ $("#Layer-12").parent().fadeOut("slow"); });

  // Here is the javascript that connects your lbthumb layers to
  // your jpeg images for lightbox.  There are a number of options
  // here you can modify.  Check their website for documentation.
  $('a.lightbox').lightBox({
    imageBtnClose: 'close.gif',
    imageBtnNext: 'next.gif',
    imageBtnPrev: 'prev.gif',
    imageLoading: 'loading.gif',
    containerResizeSpeed: 500,
    overlayBgColor: '#000' 
    /* 
    txtOf: 'de'  
    overlayOpacity: 0.6,
    txtImage: 'Imagem',
    */
  });

});

