


/*
function pom_setFooterPos(h) {
   
//	$('#footer').css('top',$(window).height()+$(window).scrollTop()-(h?h:40));
	$('#footer').css('top',$(document).height()-40);
	$('#footer').css('left',0);   
}

function pom_layout() {
	pom_setFooterPos(0);
}

$(window).resize(function(){
	pom_layout(); 
});

*/	
//pom_layout(); 



function pom_setFooterPos(h) {
/*
	var top = $(window).height()+$(window).scrollTop()-(h?h:50);
	var topDoc = $(document).height()-50;
$('#footer').css('top',(top>topDoc)?top:topDoc);
$('#footer').css('left',0);
*/
	var	spacer = $(window).height() - $("#footer_spacer").offset().top - $("#footer").height()-1;//-2em body margin
	if(spacer>0)
	{
		$("#footer_spacer").css("height",spacer);
	}

}

function pom_layout() {
/*
var height = $(window).height();
var middle = height/2;
var third = height/3.2;

$('#index_page').css('background-position','0px 188px');
$('#menu').css('top',140);
*/
pom_setFooterPos(0);
}


$(window).resize(function(){
	pom_layout();
});

$(window).scroll(function(){
	pom_setFooterPos(0);
});		
