function vpHeight() {
	var height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
	height = height - 60;
	return height;
}

/*
$(function(){
	$('#bgoverlay').toggle(
		function() {
			$('#resizer').animate({height: vpHeight() });
			$('#bglabel').toggle();
		}, function() {
			$('#resizer').animate({height: '36px'});
			$('#bglabel').toggle();
	});
});
*/

var newwindow;
function popup(url)
{
	newwindow=window.open(url,'name','height=420,width=640');
	if (window.focus) {newwindow.focus()}
}


$(document).ready(function(){
	$('.post-page-commenting input').placeholder();
	$('input#s').placeholder();
	
	$('#commentform').submit(function() {
	  
	  if($('input#url').val() == 'URL') {
	  	$('input#url').val('');
	  }
	  
	});

});
