//
// psd2css.js
//
//   This is where all the javascript required by your design is written.
//
//   Originally generated at http://psd2cssonline.com 
//   January 10, 2009, 8:51 pm with psd2css Online version 1.30

$(document).ready(function(){

  // This is required for the PNG fix to work.
  if( $.fn.pngfix != null )
    $("img[@src$=png]").pngfix();


  // 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 scrollOffset7 = 0;
  $('#Layer-3').append( $('#Layer-7') );
  $('#Layer-7').clone().addClass('Copy-Layer-7').insertAfter('#Layer-7');
  function ScrollFunc()
  {
    // Change the speed of the scroll by changing the '2' in the following
    // line after the '+='.  Negative numbers scroll the other way.
    scrollOffset7 += 2;
    // Scroll vertically by changing 'left' to 'top' and 'width' to 'height
    // in the following lines
    $('#Layer-7').css( 'left', scrollOffset7 );
    $('.Copy-Layer-7').css( 'left', scrollOffset7 - $('.Copy-Layer-7').width() + 1 );
    if( scrollOffset7 > $('.Copy-Layer-7').width() )
      scrollOffset7 -= $('.Copy-Layer-7').width();
  }
  setInterval( ScrollFunc, 64 );


});

