//
// psd2css.js
//
//   This is where all the javascript required by your design is written.
//
//   Originally generated at http://psd2cssonline.com 
//   February 12, 2009, 9:32 am with psd2css Online version 1.32

$(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 scrollOffset = 0;
  //$('#Layer-18').append( $('#ticker') );
  $('#ticker').clone().addClass('Copy-ticker').insertAfter('#ticker');
  function ScrollFunc()
  {
    // Change the speed of the scroll by changing the '2' in the following
    // line after the '+='.  Negative numbers scroll the other way.
    scrollOffset += 2;
    // Scroll vertically by changing 'left' to 'top' and 'width' to 'height
    // in the following lines
    $('#ticker').css( 'left', scrollOffset );
    $('.Copy-ticker').css( 'left', scrollOffset - $('.Copy-ticker').width() + 1 );
    if( scrollOffset > $('.Copy-ticker').width() )
      scrollOffset -= $('.Copy-ticker').width();
  }
  setInterval( ScrollFunc, 64 );


});
