/*
  Custom ready function
  This should be used to reposition elements or to define and use custom functions
*/
$(document).ready(function(){
 		//reposition header elements
        
        /*
            page element repositioning
        */
        
        // append mainnav and form to header
        $('.header').append( $('.mainnav'), $('.form') );
	
        // prepend .content-left and .features to .content -- ORDER MATTERS!
        $('div.content').prepend( $('.features'), $('.left-content') );

        // append clear fix to each ul with floated children 
        $('.content-left ul, .sitemap ul, .home_articles ul, .state_articles ul').each(function(){
            $(this).append('<div class="clear0"><!--ie--></div>');   
        });

        // make sure that floated li items clear the previous row
        // 6 columns in .sitemap_cities and .state_articles             
        $('ul li:nth-child(6n)', '.sitemap_cities, .state_articles').after( '<div class="clear0"><!--ie--></div>' );
     
});//ready
