/*
  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
        */
        
        /* */
        
        $('#col-right .inner ul').not("#resources_ul").addClass('states');
        $('#col-right .inner ul').not("#resources_ul").addClass('boxlinks');
        
        	$('#a_a').addClass('letters_large');
 	$('#a').fadeIn();
        
 		$('#form_final').append($('#form_temp'));
   	    $('#header').append($('#nav')); 
        $('#content').append($('#temp').html());
        $('#content_2').prepend($('#temp_2').html());
		$('#content_2').prepend($('#testimonials'));
        $('#header').prepend($('#temp_3').html());
        $('#temp').remove();
        $('#temp_2').remove();
        $('#temp_3').remove();
        
        		$('.nav').hover(function(){
			var src = $(this).attr('src');
			var	pos = src.lastIndexOf('.gif');
			var new_src = src.substring(0,pos);
			 		new_src += '-on.gif';
					$(this).attr('src',new_src);
		},function(){
			var src = $(this).attr('src');
			var	pos = src.lastIndexOf('-on.gif');
			var new_src = src.substring(0,pos);
			 		new_src += '.gif';
					$(this).attr('src',new_src);
		});

	
		$('.partner_with_us textarea').click(function(){
   			this.select();
   			return false;
			});
		
		$('em.error').remove();
        
        /* */
        
        /**   site-specific functions       **/
        
		
		$('#home_form_a').click(function(){
		  $('#leadform').submit();
		  return false;
		});
     
});//ready
