$(document).ready( function() {
	if( $(".slides_container").length > 0 ) {
		$('.slides_container').cycle({
			fx: 'fade',
			pager: '#slide_nav'
		});
	}
	
  // reset all input elements with "rel = reset" when activated
  $('input[rel*=reset]').each(function() {
    var v = $(this).val();
    var color_active = $(this).css('color');
    var color_inactive = '#bbd8e1';

    $(this).css('color', color_inactive);
    $(this).focus(function() {
      if( $(this).val() == v ) {
        $(this).attr('value', '');
        $(this).css('color', color_active);
      }
    });
    $(this).blur(function() {
      if( $(this).val() == '' ) {
        $(this).attr('value', v);
        $(this).css('color', color_inactive);
      } 
    });
  })
});
