$(document).ready(function(){
    // Set dropdown
    $("ul.dropdown li").hover(function(){

              $(this).addClass("hover");
              $('ul:first',this).css('visibility', 'visible');
            }, function(){
              $(this).removeClass("hover");
              $('ul:first',this).css('visibility', 'hidden');
            });
          $("ul.dropdown li ul li:has(ul)").find("a:first").append(" &raquo; ");

    // Set up Sliders
    $('#slider').anythingSlider({
          width               : null,      // Override the default CSS width
          height              : null,      // Override the default CSS height
          resizeContents      : true,      // If true, solitary images/objects in the panel will expand to fit the viewport

          // Navigation
          startPanel          : 1,         // This sets the initial panel
          hashTags            : true,      // Should links change the hashtag in the URL?
          buildArrows         : false,      // If true, builds the forwards and backwards buttons
          buildNavigation     : true,      // If true, buildsa list of anchor links to link to each panel
          navigationFormatter : null,      // Details at the top of the file on this use (advanced use)
          forwardText         : "&raquo;", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
          backText            : "&laquo;", // Link text used to move the slider back (hidden by CSS, replace with arrow image)

          // Slideshow options
          autoPlay            : true,      // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not
          startStopped        : false,     // If autoPlay is on, this can force it to start stopped
          pauseOnHover        : true,      // If true & the slideshow is active, the slideshow will pause on hover
          resumeOnVideoEnd    : true,      // If true & the slideshow is active & a youtube video is playing, it will pause the autoplay until the video has completed
          stopAtEnd           : false,     // If true & the slideshow is active, the slideshow will stop on the last page
          playRtl             : false,     // If true, the slideshow will move right-to-left
          startText           : "",   // Start button text
          stopText            : "",    // Stop button text
          delay               : 6000,      // How long between slideshow transitions in AutoPlay mode (in milliseconds)
          animationTime       : 600       // How long the slideshow transition takes (in milliseconds)

    });
    // set up tabs widget
   $('#home_tabs').tabs();

   //set font
Cufon.replace('.home_tabs-content ul li h3, .home_tabs-content ul li span', { hover: true, fontFamily: 'Vegur', fontWeight: '600'});
Cufon.replace('#mainnav li a, #head_right, .slide_box', { hover: true, fontFamily: 'Vegur', fontWeight: '600'});
Cufon.replace('#home_tabs .nav li a', { hover: true, fontFamily: 'Vegur', fontWeight: '700'});
Cufon.replace('.customize-text h3, .frame_box h3.title, #footer h3', { hover: true, fontFamily: 'Vegur', fontWeight: 'normal'});
    
 });



