/*
  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').append($('.mainnav'));
	$('.content').prepend($('.photo-block'));
	$('.content').prepend($('.form-interior'));
	$('.form-interior').after($('.photo-interior'));
	$('.states ul:last-child').addClass('last');

    // 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>');   
    });

	// attach to_digits() to zip code keyup event
	$('#zip').bind('keyup', function(){
		to_digits( $(this).attr('id'), true );
	});

	// attach to_digits() to zip code keyup event
	$('#phone').bind('keyup', function(){
		to_digits( $(this).attr('id'), true );
	});


});//ready



