//
// psd2css.js
//
//   This is where all the javascript required by your design is written.
//
//   Originally generated at http://psd2cssonline.com 
//   August 1, 2010, 10:05 pm with psd2css Online version 1.79

$(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-25").addClass("Wrap-18-25").hide();
  $("#Layer-18").addClass("Wrap-18-25");
  $(".Wrap-18-25").hover(
    function(){ $("#Layer-25").show(); $("#Layer-18").hide(); },
    function(){ $("#Layer-18").show(); $("#Layer-25").hide(); });
  $("#Layer-26").addClass("Wrap-19-26").hide();
  $("#Layer-19").addClass("Wrap-19-26");
  $(".Wrap-19-26").hover(
    function(){ $("#Layer-26").show(); $("#Layer-19").hide(); },
    function(){ $("#Layer-19").show(); $("#Layer-26").hide(); });
  $("#Layer-27").addClass("Wrap-20-27").hide();
  $("#Layer-20").addClass("Wrap-20-27");
  $(".Wrap-20-27").hover(
    function(){ $("#Layer-27").show(); $("#Layer-20").hide(); },
    function(){ $("#Layer-20").show(); $("#Layer-27").hide(); });
  $("#Layer-28").addClass("Wrap-21-28").hide();
  $("#Layer-21").addClass("Wrap-21-28");
  $(".Wrap-21-28").hover(
    function(){ $("#Layer-28").show(); $("#Layer-21").hide(); },
    function(){ $("#Layer-21").show(); $("#Layer-28").hide(); });
  $("#Layer-29").addClass("Wrap-22-29").hide();
  $("#Layer-22").addClass("Wrap-22-29");
  $(".Wrap-22-29").hover(
    function(){ $("#Layer-29").show(); $("#Layer-22").hide(); },
    function(){ $("#Layer-22").show(); $("#Layer-29").hide(); });
  $("#Layer-30").addClass("Wrap-23-30").hide();
  $("#Layer-23").addClass("Wrap-23-30");
  $(".Wrap-23-30").hover(
    function(){ $("#Layer-30").show(); $("#Layer-23").hide(); },
    function(){ $("#Layer-23").show(); $("#Layer-30").hide(); });
  $("#Layer-31").addClass("Wrap-24-31").hide();
  $("#Layer-24").addClass("Wrap-24-31");
  $(".Wrap-24-31").hover(
    function(){ $("#Layer-31").show(); $("#Layer-24").hide(); },
    function(){ $("#Layer-24").show(); $("#Layer-31").hide(); });
  $("#Layer-42").addClass("Wrap-41-42").hide();
  $("#Layer-41").addClass("Wrap-41-42");
  $(".Wrap-41-42").hover(
    function(){ $("#Layer-42").show(); $("#Layer-41").hide(); },
    function(){ $("#Layer-41").show(); $("#Layer-42").hide(); });
  $("#Layer-44").addClass("Wrap-43-44").hide();
  $("#Layer-43").addClass("Wrap-43-44");
  $(".Wrap-43-44").hover(
    function(){ $("#Layer-44").show(); $("#Layer-43").hide(); },
    function(){ $("#Layer-43").show(); $("#Layer-44").hide(); });
  $("#Layer-46").addClass("Wrap-45-46").hide();
  $("#Layer-45").addClass("Wrap-45-46");
  $(".Wrap-45-46").hover(
    function(){ $("#Layer-46").show(); $("#Layer-45").hide(); },
    function(){ $("#Layer-45").show(); $("#Layer-46").hide(); });
  $("#Layer-48").addClass("Wrap-47-48").hide();
  $("#Layer-47").addClass("Wrap-47-48");
  $(".Wrap-47-48").hover(
    function(){ $("#Layer-48").show(); $("#Layer-47").hide(); },
    function(){ $("#Layer-47").show(); $("#Layer-48").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 scrollOffset35 = 0;
  $('#Layer-32').append( $('#Layer-35') );
  $('#Layer-35').clone().addClass('Copy-Layer-35').insertAfter('#Layer-35');
  function ScrollFunc()
  {
    // Change the speed of the scroll by changing the '2' in the following
    // line after the '+='.  Negative numbers scroll the other way.
    scrollOffset35 += 2;
    // Scroll vertically by changing 'left' to 'top' and 'width' to 'height
    // in the following lines
    $('#Layer-35').css( 'top', scrollOffset35 );
    $('.Copy-Layer-35').css( 'top', scrollOffset35 - $('.Copy-Layer-35').height() + 1 );
    if( scrollOffset35 > $('.Copy-Layer-35').height() )
      scrollOffset35 -= $('.Copy-Layer-35').height();
  }
  setInterval( ScrollFunc, 64 );


});

