/*
  Custom ready function
  This should be used to reposition elements or to define and use custom functions
*/
$(document).ready(function(){
  // Element repositioning
  $('#form_holder').append($('#form_temp'));
  $('#form_questions').append($('#form_temp_questions'));
  
  //promo form click - in case user decides to change promo choice
  $('input:radio[name="propertytype-promo"]').click(function(){
    $('input[name="propertytype"]').val($(this).val());
  });//promo form radio click

  //form slider
  $('.submitslider').click(function(){
    $('#content_text').fadeOut('fast');
    $('#maincontent').css({
      'margin-top'  : '-10px',
      'z-index'     : '-99999',
      'margin-left' : '1px'
    });	
    $('#form_questions').fadeIn('fast');
    $('html, body').animate({scrollTop:406}, '500'); 
    return false;
  });//form slider
  
  //navigation menu hover / hover callback
  $('img.nav').hover(function(){
    $(this).attr('src', $(this).attr('src').replace('_off', '_on'));
  },function(){
    $(this).attr('src', $(this).attr('src').replace('_on', '_off'));
  });//hover / hover callback
  
});//ready

