// jQuery.superfish
$(function(){
  $("#menu ul").supersubs({ 
    minWidth:    8,   // minimum width of sub-menus in em units 
    maxWidth:    24,   // maximum width of sub-menus in em units 
    extraWidth:  1     // extra width can ensure lines don't sometimes turn over 
    // due to slight rounding differences and font-family 
  }).superfish({
    delay:       100,                            // one second delay on mouseout 
    // animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
    speed:       100,                          // faster animation speed 
    autoArrows:  false,                           // disable generation of arrow mark-up 
    dropShadows: true,                           // disable drop shadows 
  });
});

// jQuery.cycle
// see => http://jquery.malsup.com/cycle/options.html
$(document).ready(function() {
  $("#banner").cycle({
    fx: "fade", // "fade"
    speed: 1500, // 1000
    timeout: 5000, // 4000
    delay: 1000, // 0
  });
});

// jQuery.scrollTo
// see => http://flesler.blogspot.com/2007/10/jqueryscrollto.html
$(function(){
  $(".scroll-to-top").click(function() {
    // $.scrollTo($($.browser.webkit ? "body" : "html"), 1000);
    $.scrollTo(0, 1000);
    return false;
  });
  $("#scroll-to-sitemap").click(function() {
    $.scrollTo($("#sitemap"), 1000);
    return false;
  });
});

