//
// psd2css.js
//
//   This is where all the javascript required by your design is written.
//
//   Originally generated at http://psd2cssonline.com 
//   April 3, 2011, 11:50 am with psd2css Online version 1.95

$(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-7").addClass("Wrap-8-7").hide();
  $("#Layer-8").addClass("Wrap-8-7");
  $(".Wrap-8-7").hover(
    function(){ $("#Layer-7").show(); $("#Layer-8").hide(); },
    function(){ $("#Layer-8").show(); $("#Layer-7").hide(); });
  $("#Layer-9").addClass("Wrap-10-9").hide();
  $("#Layer-10").addClass("Wrap-10-9");
  $(".Wrap-10-9").hover(
    function(){ $("#Layer-9").show(); $("#Layer-10").hide(); },
    function(){ $("#Layer-10").show(); $("#Layer-9").hide(); });
  $("#Layer-11").addClass("Wrap-12-11").hide();
  $("#Layer-12").addClass("Wrap-12-11");
  $(".Wrap-12-11").hover(
    function(){ $("#Layer-11").show(); $("#Layer-12").hide(); },
    function(){ $("#Layer-12").show(); $("#Layer-11").hide(); });
  $("#Layer-13").addClass("Wrap-14-13").hide();
  $("#Layer-14").addClass("Wrap-14-13");
  $(".Wrap-14-13").hover(
    function(){ $("#Layer-13").show(); $("#Layer-14").hide(); },
    function(){ $("#Layer-14").show(); $("#Layer-13").hide(); });
  $("#Layer-15").addClass("Wrap-16-15").hide();
  $("#Layer-16").addClass("Wrap-16-15");
  $(".Wrap-16-15").hover(
    function(){ $("#Layer-15").show(); $("#Layer-16").hide(); },
    function(){ $("#Layer-16").show(); $("#Layer-15").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 scrollOffset39 = 0;
  $('#Layer-38').append( $('#Layer-39') );
  $('#Layer-39').clone().addClass('Copy-Layer-39').insertAfter('#Layer-39');
  function ScrollFunc()
  {
    // Change the speed of the scroll by changing the '2' in the following
    // line after the '+='.  Negative numbers scroll the other way.
    scrollOffset39 += 2;
    // Scroll vertically by changing 'left' to 'top' and 'width' to 'height
    // in the following lines
    $('#Layer-39').css( 'left', scrollOffset39 );
    $('.Copy-Layer-39').css( 'left', scrollOffset39 - $('.Copy-Layer-39').width() + 1 );
    if( scrollOffset39 > $('.Copy-Layer-39').width() )
      scrollOffset39 -= $('.Copy-Layer-39').width();
  }
  setInterval( ScrollFunc, 64 );


  // Initialize the slidecontainer and slidepane features.  We use the
  // scrollable part of the jquery Tools UI available at http://flowplayer.org.
  // There are lots of options available, we've added a couple here.  Check out
  // the docs at their site for more.
  $("div.slidecontainer").scrollable({ size: 1 })
    // If you don't want your scrollpanes to automatcially advance every 5 seconds,
    // then just comment out the next line.  If you want them to auto advance
    // at a different rate just change the interval number there.
    .autoscroll({ interval: 5000 })
    .circular();

















































});

