/*
  Custom ready function
  This should be used to reposition elements or to define and use custom functions
*/
$(document).ready(function(){

        $('.secure').after($('.byline'));
        $('.header').append($('.mainnav'));
		$('.articles ul li:first-child').addClass('first');

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

	// attach to_digits() to zip code keyup event
	$('#zip').bind('keyup', function(){
		to_digits( $(this).attr('id'), true );
	});
    
    
	// append clear fix to each ul with floated children 
    $('.content-right ul, .sitemap ul, .home_articles ul, .state_articles ul').each(function(){
        $(this).append('<div class="clear0"><!--ie--></div>');   
    });
        

});//ready



