/*
  Custom ready function
  This should be used to reposition elements or to define and use custom functions
*/
$(document).ready(function(){
  // Element repositioning
  $('#header').append($('.mainnav'));
  $('#wrapper').prepend($('#photo-block'));
  $('#photo-block').after($('#testimonial'));
  if($('#content-left p').length){
    $('#content-left p:eq(0)').after($('#photo-big'));
  }else{
    $('#content-left').append($('#photo-big'));
  }
  $('#photo-big').after($('#photo-small')); 

  //image rotation hover function
  $('#photo-small img').hover(function(){
    $('#big_image').attr('src','images/'+$(this).attr('src').match(/[0-9]+/)+'.jpg');
  });

});//ready


