jQuery.fn.smartFocus = function(text) {$(this).val(text).focus(function(){
if($(this).val() == text){
$(this).val('');
}
}).blur(function(){
if( $(this).val() == '' ){
$(this).val(text);
}
});
};
jQuery(document).ready(function(){
	var website = 'email eintragen';$('#website').smartFocus(website);
	windowresize();
});
$(window).resize(function(){
	windowresize();
});
function windowresize(){
	var dh = getTotalHeight();
//	if(dh>711+60)
//	$('#main').height(711);
//	else
	//$('#main').height(dh-60);
}
function getTotalHeight(){       
	if($.browser.msie){
		return document.compatMode == "CSS1Compat"? document.documentElement.clientHeight :
				 document.body.clientHeight;
	}else{
		return self.innerHeight;
	}
}

 function getTotalWidth (){
	 
	if($.browser.msie){
		return document.compatMode == "CSS1Compat"? document.documentElement.clientWidth :
				 document.body.clientWidth;
	}else{
		return self.innerWidth;
	}
}  
