posFooter = function() {
    winHeight	= $(window).height();
    daEl	= $('#footer');
    divHeight	= daEl.innerHeight();

    if ($('#page').height() < winHeight - divHeight) {
	
	    daEl.css({
	    'position':	'absolute',
	    'top':		winHeight - divHeight,
	    'left':		'50%',
	    'z-index':	5000,
	    'margin-left':	0 - (daEl.width() / 2)
	});
    }
}

$(window).resize(function() {
  posFooter();
});


$(window).ready(function(){
    
    posFooter();

    $('.portfolio-acc').accordion({
	header:		'h4',
	autoHeight:	false,
	active:		'.active',
	event:		'mouseover'
    });

});



