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