////* Home Page Slide Show *////


$(document).ready(function() {
	$('#featured').hover(
	      function () {
	        $('#featured a').fadeIn();
	      }, 
	      function () {
	        $('#featured a').fadeOut();
	      }
	);

	$('#featured a').click(function() {
		return false;
	});
	
	$('#featured-pics').cycle({ 
	    fx: 'fade', pause: 5, prev: '.prev', next: '.next' 
	});
	

});




////* LavaLamp *////

$(function() {
        $("#nav").lavaLamp({
            fx: "backout",
            speed: 700
        });
    });


////* Random Image *////


if (document.getElementById) { window.onload = swap };
function swap() {
var numimages=3;
rndimg = new Array("../images/headers/4steps.jpg", "../images/headers/about.jpg", "../images/headers/aging.jpg"); 
x=(Math.floor(Math.random()*numimages));
randomimage=(rndimg[x]);
document.getElementById("banner").style.backgroundImage = "url("+ randomimage +")"; 
}
