//
// psd2css.js
//
//   This is where all the javascript required by your design is written.
//
//   Originally generated at http://psd2cssonline.com 
//   January 10, 2011, 3:35 am with psd2css Online version 1.93

$(document).ready(function(){

  // This is required for the PNG fix to work.
  if (window.DD_belatedPNG)
    DD_belatedPNG.fix('.pngimg');

  // 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-28").addClass("Wrap-27-28").hide();
  $("#Layer-27").addClass("Wrap-27-28");
  $(".Wrap-27-28").hover(
    function(){ $("#Layer-28").show(); $("#Layer-27").hide(); },
    function(){ $("#Layer-27").show(); $("#Layer-28").hide(); });
  $("#Layer-30").addClass("Wrap-29-30").hide();
  $("#Layer-29").addClass("Wrap-29-30");
  $(".Wrap-29-30").hover(
    function(){ $("#Layer-30").show(); $("#Layer-29").hide(); },
    function(){ $("#Layer-29").show(); $("#Layer-30").hide(); });
  $("#Layer-32").addClass("Wrap-31-32").hide();
  $("#Layer-31").addClass("Wrap-31-32");
  $(".Wrap-31-32").hover(
    function(){ $("#Layer-32").show(); $("#Layer-31").hide(); },
    function(){ $("#Layer-31").show(); $("#Layer-32").hide(); });

  // Here we add some javascript to take care of the scrolling
  // sections of the page that you designed.  It works by removing
  // each scrollcontent layer (and it's children) from the DOM and re-
  // inserting it (and a copy) inside the matching scrollframe layer.
  // Then we define an interval timer with a callback function
  // where we move the scrollcontent within the scrollframe.
  // Scrolling code for: b
  var scrollOffset10 = 0;
  $('#Layer-9').append( $('#Layer-10') );
  $('#Layer-10').clone().addClass('Copy-Layer-10').insertAfter('#Layer-10');
  function ScrollFunc()
  {
    // Change the speed of the scroll by changing the '2' in the following
    // line after the '+='.  Negative numbers scroll the other way.
    scrollOffset10 += 0;
    // Scroll vertically by changing 'left' to 'top' and 'width' to 'height
    // in the following lines
    $('#Layer-10').css( 'left', scrollOffset10 );
    $('.Copy-Layer-10').css( 'left', scrollOffset10 - $('.Copy-Layer-10').width() + 1 );
    if( scrollOffset10 > $('.Copy-Layer-10').width() )
      scrollOffset10 -= $('.Copy-Layer-10').width();
  }
  setInterval( ScrollFunc, 64 );


  // 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',
    */
  });

































});

