$(function(){
	$('#content h1').not('#blog-page #content h1').after('<br style="clear:both"/>');
	$('.phone-number').click(function(){
		window.open('contact-us','_parent');
	});
	$('#lower-nav li:not(:last)').css({borderRight:'2px solid #FFF'});
	$('#footer p:first a:not(:last)').css({borderRight:'1px solid #466684', paddingRight:'10px'});
	$('#footer p:first a:not(:first)').css({paddingLeft:'10px'});
	$('#footer p:not(:last)').css({lineHeight:'12px'});
	$('.img').cycle('fade');
	$('.donate').animate({right:'-2px'});
	$('.mailing').delay(300).animate({right:'-2px'});
	$('.search').delay(600).animate({right:'-2px'});
	$('#content p:not("#index #content p")').addClass('inner');
	$('#content table tr:even td').css('backgroundColor','#DDF3FF');
	$('dd').after('<br/><br/>');
	$('input[type="hidden"],input[name="hh_trick"]').hide();
	$('input[type="text"],textarea').addClass('input');
	$('.input').after('<hr class="inputflow"/>');
	$('input[type="submit"]').addClass('submit');
	placeholderFix();
	$('#p145 #content table:not(:first)').css({width:'100%'});
	$('#p145 #content table:first').css({width:'450px','float':'right'}).after('<hr/>');
	$('#p145 #content table .inner').css({'paddingRight':'20px'});
	$('#p145 p').children('.petfinder-photo').parent().css({'float':'left','paddingLeft':0});
	$('#p145 #content table:last,#p145 #content a:not("ul a")').remove();
	$('#featured-pet p:first').addClass('firstp');
	$('#p69 #content .pet:odd,#p108 #content .pet:odd,#p143 #content .pet:odd').after('<hr class="inputflow"/>');
	$('#p69 #content .inputflow:even,#p108 #content .inputflow:even,#p143 #content .inputflow:even').next('.pet').css('backgroundColor','#d9e2ed').next('.pet').css('backgroundColor','#d9e2ed');
	$('#canvas').css('background','#fff');
	$('font').contents().unwrap();
	$('#content').show();
});

function placeholderFix(){
	$('.input').each(function(){
		var ph = $(this).attr('placeholder');
		$(this).val(ph);
		$(this).css('color','#DADADA');
		$(this).focus(function(){
			$(this).css('color','#000').val('');
		}).blur(function(){
			if(this.value=='') {
				$(this).val(ph).css('color','#DADADA');
			}
		});
	});
}
 // HAXORED
