$(function() {

    $('#slideshow').cycle({
        fx:      'scrollHorz',
        prev:    '#prev',
        next:    '#next',
        pager:  '#number',
        after:     onAfter
    
    });

});

function onAfter(curr,next,opts) {
	var caption = 'Image ' + (opts.currSlide + 1) + ' of ' + opts.slideCount;
	$('#caption').html(caption);
}

$(function() {
    $('#gallery-spa a').lightBox();
    $('#gallery-double a').lightBox();
    $('#gallery-twin a').lightBox();
    $('#gallery-single a').lightBox();
    $('#gallery-family a').lightBox();
});

// Inline Form Labels (Input)

$(document).ready(function() {
if(!Modernizr.input.placeholder){
$("input").each(
function(){
if($(this).val()=="" && $(this).attr("placeholder")!=""){
$(this).val($(this).attr("placeholder"));
$(this).focus(function(){
if($(this).val()==$(this).attr("placeholder")) $(this).val("");
});
$(this).blur(function(){
if($(this).val()=="") $(this).val($(this).attr("placeholder"));
});
}
});
}
});


// First Child Support for IE6
$(document).ready(function(){ $("ul.services li:first-child").addClass("first"); });


$(document).ready(function(){

$("#navigation ul li").hover(
  function () {
    $(this).addClass("over");
  },
  function () {
    $(this).removeClass("over");
  }
);

});
