/*
  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'));
        $('.header').after($('.mainnav'));
        $('.mainnav').after($('.photo-block'));

        if($('.content-interior').length > 0){
                $('.content-right').prepend($('.form-interior'));
                $('.content-left').prepend($('.photo-interior'));
        }
        else{
                    $('.content-left').prepend($('.features'));
        $('.features').after($('#photo-home'));
        $('.features').append($('.articles'));
        $('.photo-block').append($('.form'));
        }
        

});//ready



