// JavaScript Document

<!-- SELECT ALL ON CLICK - EMAIL INPUT-->

function highlight(field) {
       field.focus();
       field.select();
}


<!--SLIDESHOW SCRIPT-->



function slideSwitch() {
    var $active = $('#slideshow IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow IMG:first');

    // uncomment the 3 lines below to pull the images in random order
    
    //var $sibs  = $active.siblings();
     //var rndNum = Math.floor(Math.random() * $sibs.length );
     //var $next  = $( $sibs[ rndNum ] );


    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 5500 );
});




<!--REVEAL/HIDE SCRIPT-->


jQuery(document).ready(function(){
$("#reveal").click(function(){
$("#full-box").animate({height:"185px" }, 500);
});
$("#hide").click(function(){
$("#full-box").animate({height:"20px" }, 700);
});
});


<!-- MENU FADER & PADDING-->


  $(document).ready(function(){
    $(".rest-menu-link").hover(function() {
    $(this).stop().animate({ backgroundColor: "#333333", color: "#FFFFFF", paddingRight: "20px"}, 500);
},function() {
    $(this).stop().animate({ backgroundColor: "#F5F5F5", color: "#333333", paddingRight: "10px"}, 500);
});

  });

  $(document).ready(function(){
    $("#address").hover(function() {
    $(this).stop().animate({ backgroundColor: "#CCFFCC" }, 500);
},function() {
    $(this).stop().animate({ backgroundColor: "#FFFFFF" }, 500);
});

  });
 
  
  <!--LINK FADER-->
  
 
  jQuery.fn.dwFadingLinks = function(settings) {
	
	return this.each(function() {
		var original = $(this).css('color');
		$(this).mouseover(function() { $(this).stop().animate({ color: settings.color },settings.duration); });
		$(this).mouseout(function() { $(this).stop().animate({ color: original },settings.duration); });
	});
};

$(document).ready(function() {
$(".fade").dwFadingLinks({ color: "#BB0000", duration: 1000 });
});
