$(document).ready( function(){ 
  
  // set up inner fade if elements exist
  if($('#photoSection') && $('#photoSection').length > 0)
  {
  	$('#photoSection').innerfade({ 
  	speed: 'slow', 
  	timeout: 4000, 
  	type: 'sequence', 
  	containerheight: '191px' 
  	});
	}
	
  // set up light box
  $('a.lightbox').lightBox({
    imageLoading: '/images/lightbox-ico-loading.gif',
    imageBtnClose: '/images/lightbox-btn-close.gif',
    imageBtnPrev: '/images/lightbox-btn-prev.gif',
    imageBtnNext: '/images/lightbox-btn-next.gif'
  })
	
  // setup rental login
  $('#rentalUsername').focus(function(){
    
    $('#rentalUsername').val('');
    
    $('#rentalUsername').css('color', '#000');
    
  });
  
  $('#rentalUsername').blur(function(){
    
    if($('#rentalUsername').val() == '')
    {
      $('#rentalUsername').val('username');
      
      $('#rentalUsername').css('color', '#CCC');
    }
    
  });
  
  $('#rentalPassword').focus(function(){
    
    $('#rentalPassword').val('');
    
    $('#rentalPassword').css('color', '#000');
    
  });
  
  $('#rentalPassword').blur(function(){
    
    if($('#rentalPassword').val() == '')
    {
      $('#rentalPassword').val('password');
      
      $('#rentalPassword').css('color', '#CCC');
    }
    
  });
	
});

function showTab(element)
{
	$(element).animate({'height': '33px'}, 250);
}

function hideTab(element)
{
	$(element).animate({'height': '27px'}, 250);
}