$(function() {
	$('#search-container input[type=text]')
		.focus(function() {
			$(this).addClass("active");
			if ($(this).val() === $(this).attr("title")) {
				$(this).val("");
			}
		})
		.blur(function() {
			$(this).removeClass("active");
			if ($(this).val() === "") {
				$(this).val($(this).attr("title"));
			}
		});
		
	//$("#content tr:odd, #content li:odd").addClass("odd");
	 
	$('.pngfix, #navigation li').pngfix();
	
	
	$('#footer a:#facebook').hover(function() {
		$(this).children('.follow-us').stop().animate({width: '79px'}, 200);
	}, function() {
		$(this).children('.follow-us').stop().animate({width: 0}, 200);
	});
});
$(document).ready(function(){
	var modImg = $(".page .module .fe_mid").width();
	if(modImg > 800){
		$(this).width(800);
	}
	$("#wpa_widget_carpark_wide").attr("target", "_blank");
	$("a:contains('Wilson Parking')").attr("target", "_blank").css('color', 'blue');
	$("#wpa_widget_carpark_wide").parent().css({'float': 'right', 'clear': 'none', 'display': 'inline-block', 'position': 'relative', 'margin-top': '-70px'});
	$('img[src="image.php?libid=327&site=5"]').wrap('<a href="http://www.wilsonparking.com.au/go/wilson-car-parks/nsw/market-city" target="_blank" />');
});
