$(document).ready (
	function() 
	{
		$('.png, .widgettitle').ifixpng();
		
		
		if ( ($.trim( $('#wp-calendar tfoot #prev').text() ) == "" && $.trim( $('#wp-calendar tfoot #next').text() ) == "") 
			 || ($.trim( $('#wp-calendar tfoot #prev').html() ) == "&nbsp;" && $.trim( $('#wp-calendar tfoot #next').html() ) == "&nbsp;") )
			$('#wp-calendar tfoot').remove();
		
				 
		$('.with-text').each(function(){
									  
			$(this).focus(function(){
				if (this.value==this.defaultValue) {
					this.value="";
				}
			});

			$(this).blur(function(){
				if (this.value=="") {
					this.value=this.defaultValue;
				}
			});
			
		});

		$(window).resize(posFooter);
		posFooter();
	}
);


function posFooter()
{
	var footHeight=$('.footer-bg').height();
	var windHeight=document.getElementsByTagName('html')[0].clientHeight;
	if ( $('body').height() <= windHeight )
	{
		$('.all3').css("height",(windHeight-133)+"px");		
	} else {
		$('.all3').css("height","auto");
	}
}