/*
  Custom ready function
  This should be used to reposition elements or to define and use custom functions
*/
$(document).ready(function(){
 		//reposition header elements
		$('.logo').append($('.byline'));
		$('.logo').after($('#header-photo'));
        $('#header-photo').before($('.truste'));
		$('.header').after($('.mainnav'));
		$('.mainnav').after($('.wrapper'));
		$('.articles ul li:first-child').addClass('first');
		$('.testimonials .set:last-child').addClass('last');
		$('.partners ul li:last-child').addClass('last');
		
		if($('.content-interior').length > 0){
			$('.content-right').prepend($('.form-interior'));
			$('.form-interior').after($('.testimonials'));
			$('.content-left').prepend($('.photo-interior'));
			$('.content-right').after($('.partners'));
		}
		else{
			$('.wrapper').after($('.testimonials'));
			$('.testimonials').after($('.partners'));
			$('.photo-block').append($('.form'));
		}
});//ready



