//
// psd2css.js
//
//   This is where all the javascript required by your design is written.
//
//   Originally generated at http://psd2cssonline.com 
//   June 26, 2011, 8:39 am with psd2css Online version 1.95

var timerId;
$(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-53").addClass("Wrap-48-53").hide();
  $("#Layer-48").addClass("Wrap-48-53");
  $(".Wrap-48-53").hover(
    function(){ $("#Layer-53").show(); $("#Layer-48").hide(); },
    function(){ $("#Layer-48").show(); $("#Layer-53").hide(); });
  $("#Layer-54").addClass("Wrap-49-54").hide();
  $("#Layer-49").addClass("Wrap-49-54");
  $(".Wrap-49-54").hover(
    function(){ $("#Layer-54").show(); $("#Layer-49").hide(); },
    function(){ $("#Layer-49").show(); $("#Layer-54").hide(); });
  $("#Layer-55").addClass("Wrap-50-55").hide();
  $("#Layer-50").addClass("Wrap-50-55");
  $(".Wrap-50-55").hover(
    function(){ $("#Layer-55").show(); $("#Layer-50").hide(); },
    function(){ $("#Layer-50").show(); $("#Layer-55").hide(); });
  $("#Layer-56").addClass("Wrap-51-56").hide();
  $("#Layer-51").addClass("Wrap-51-56");
  $(".Wrap-51-56").hover(
    function(){ $("#Layer-56").show(); $("#Layer-51").hide(); },
    function(){ $("#Layer-51").show(); $("#Layer-56").hide(); });
  $("#Layer-57").addClass("Wrap-52-57").hide();
  $("#Layer-52").addClass("Wrap-52-57");
  $(".Wrap-52-57").hover(
    function(){ $("#Layer-57").show(); $("#Layer-52").hide(); },
    function(){ $("#Layer-52").show(); $("#Layer-57").hide(); });
  $("#Layer-63").addClass("Wrap-59-63").hide();
  $("#Layer-59").addClass("Wrap-59-63");
  $(".Wrap-59-63").hover(
    function(){ $("#Layer-63").show(); $("#Layer-59").hide(); },
    function(){ $("#Layer-59").show(); $("#Layer-63").hide(); });
  $("#Layer-64").addClass("Wrap-60-64").hide();
  $("#Layer-60").addClass("Wrap-60-64");
  $(".Wrap-60-64").hover(
    function(){ $("#Layer-64").show(); $("#Layer-60").hide(); },
    function(){ $("#Layer-60").show(); $("#Layer-64").hide(); });
  $("#Layer-65").addClass("Wrap-61-65").hide();
  $("#Layer-61").addClass("Wrap-61-65");
  $(".Wrap-61-65").hover(
    function(){ $("#Layer-65").show(); $("#Layer-61").hide(); },
    function(){ $("#Layer-61").show(); $("#Layer-65").hide(); });
  $("#Layer-66").addClass("Wrap-62-66").hide();
  $("#Layer-62").addClass("Wrap-62-66");
  $(".Wrap-62-66").hover(
    function(){ $("#Layer-66").show(); $("#Layer-62").hide(); },
    function(){ $("#Layer-62").show(); $("#Layer-66").hide(); });
  $("#Layer-75").addClass("Wrap-69-75").hide();
  $("#Layer-69").addClass("Wrap-69-75");
  $(".Wrap-69-75").hover(
    function(){ $("#Layer-75").show(); $("#Layer-69").hide(); },
    function(){ $("#Layer-69").show(); $("#Layer-75").hide(); });
  $("#Layer-76").addClass("Wrap-70-76").hide();
  $("#Layer-70").addClass("Wrap-70-76");
  $(".Wrap-70-76").hover(
    function(){ $("#Layer-76").show(); $("#Layer-70").hide(); },
    function(){ $("#Layer-70").show(); $("#Layer-76").hide(); });
  $("#Layer-77").addClass("Wrap-71-77").hide();
  $("#Layer-71").addClass("Wrap-71-77");
  $(".Wrap-71-77").hover(
    function(){ $("#Layer-77").show(); $("#Layer-71").hide(); },
    function(){ $("#Layer-71").show(); $("#Layer-77").hide(); });
  $("#Layer-78").addClass("Wrap-72-78").hide();
  $("#Layer-72").addClass("Wrap-72-78");
  $(".Wrap-72-78").hover(
    function(){ $("#Layer-78").show(); $("#Layer-72").hide(); },
    function(){ $("#Layer-72").show(); $("#Layer-78").hide(); });
  $("#Layer-79").addClass("Wrap-73-79").hide();
  $("#Layer-73").addClass("Wrap-73-79");
  $(".Wrap-73-79").hover(
    function(){ $("#Layer-79").show(); $("#Layer-73").hide(); },
    function(){ $("#Layer-73").show(); $("#Layer-79").hide(); });
  $("#Layer-80").addClass("Wrap-74-80").hide();
  $("#Layer-74").addClass("Wrap-74-80");
  $(".Wrap-74-80").hover(
    function(){ $("#Layer-80").show(); $("#Layer-74").hide(); },
    function(){ $("#Layer-74").show(); $("#Layer-80").hide(); });
  $("#Layer-84").addClass("Wrap-85-84").hide();
  $("#Layer-85").addClass("Wrap-85-84");
  $(".Wrap-85-84").hover(
    function(){ $("#Layer-84").show(); $("#Layer-85").hide(); },
    function(){ $("#Layer-85").show(); $("#Layer-84").hide(); });
  $("#Layer-86").addClass("Wrap-87-86").hide();
  $("#Layer-87").addClass("Wrap-87-86");
  $(".Wrap-87-86").hover(
    function(){ $("#Layer-86").show(); $("#Layer-87").hide(); },
    function(){ $("#Layer-87").show(); $("#Layer-86").hide(); });
  $("#Layer-88").addClass("Wrap-89-88").hide();
  $("#Layer-89").addClass("Wrap-89-88");
  $(".Wrap-89-88").hover(
    function(){ $("#Layer-88").show(); $("#Layer-89").hide(); },
    function(){ $("#Layer-89").show(); $("#Layer-88").hide(); });
  $("#Layer-90").addClass("Wrap-91-90").hide();
  $("#Layer-91").addClass("Wrap-91-90");
  $(".Wrap-91-90").hover(
    function(){ $("#Layer-90").show(); $("#Layer-91").hide(); },
    function(){ $("#Layer-91").show(); $("#Layer-90").hide(); });
  
  // This is code to handle the history_hmenu_empty menu
  $("#Layer-46").hide().addClass("allMenus");
  $("#Layer-53").mouseover(function(e){
    e.preventDefault();
    $(".allMenus").hide();
    $("#Layer-46").show();
    // Remove the following 2 lines if you don't want this menu to dissappear
    // automatically.  Change how long the menu stays visible by changing
    // the 4000 to another number of milliseconds
    clearTimeout( timerId );
    timerId = setTimeout( '$("#Layer-46").hide()', 4000 );
  });
  
  // This is code to handle the social_hmenu_empty menu
  $("#Layer-47").hide().addClass("allMenus");
  $("#Layer-54").mouseover(function(e){
    e.preventDefault();
    $(".allMenus").hide();
    $("#Layer-47").show();
    // Remove the following 2 lines if you don't want this menu to dissappear
    // automatically.  Change how long the menu stays visible by changing
    // the 4000 to another number of milliseconds
    clearTimeout( timerId );
    timerId = setTimeout( '$("#Layer-47").hide()', 4000 );
  });
  
  // This is code to handle the info_hmenu menu
  $("#Layer-67").hide().addClass("allMenus");
  $("#Layer-55").mouseover(function(e){
    e.preventDefault();
    $(".allMenus").hide();
    $("#Layer-67").show();
    // Remove the following 2 lines if you don't want this menu to dissappear
    // automatically.  Change how long the menu stays visible by changing
    // the 4000 to another number of milliseconds
    clearTimeout( timerId );
    timerId = setTimeout( '$("#Layer-67").hide()', 4000 );
  });
  
  // This is code to handle the lineup_hmenu menu
  $("#Layer-58").hide().addClass("allMenus");
  $("#Layer-56").mouseover(function(e){
    e.preventDefault();
    $(".allMenus").hide();
    $("#Layer-58").show();
    // Remove the following 2 lines if you don't want this menu to dissappear
    // automatically.  Change how long the menu stays visible by changing
    // the 4000 to another number of milliseconds
    clearTimeout( timerId );
    timerId = setTimeout( '$("#Layer-58").hide()', 4000 );
  });
  
  // This is code to handle the home_hmenu_empty menu
  $("#Layer-81").hide().addClass("allMenus");
  $("#Layer-57").mouseover(function(e){
    e.preventDefault();
    $(".allMenus").hide();
    $("#Layer-81").show();
    // Remove the following 2 lines if you don't want this menu to dissappear
    // automatically.  Change how long the menu stays visible by changing
    // the 4000 to another number of milliseconds
    clearTimeout( timerId );
    timerId = setTimeout( '$("#Layer-81").hide()', 4000 );
  });

  // 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',
    */
  });

  // Here are the functions to support communication between your
  // video controls and your video(s).  The video(s) play in p2cvideo.swf.
  // That swf file has registered the p2cplay(), p2crewind() and p2cpause() callbacks
  // with the javascript instance on this page.

  function getFlashVideo(div) {
    var flashVideo = ($('#'+div+' [name="'+div+'-video"]')[0]) ?
                      $('#'+div+' [name="'+div+'-video"]')[0] :
                            ((window[div+'-video']) ?
                              window[div+'-video'] : document[div+'-video']);
    return flashVideo;
  }



































































































});

