$(function(){
	$(".container").wrapInner("<table cellspacing='30'><tr></tr></table>");
	$(".flayer").wrap("<td></td>");
	$(".local-image").wrap("<td></td>");
	var heightWindow = $('.container').innerHeight();
	var heightScroll = scrollbarHeight();
	$('#menu').height(heightWindow - heightScroll);
});

function scrollbarHeight() {

	/* This function calculates window.scrollbarWidth and window.scrollbarHeight */
	var i = document.createElement('p');
	i.style.width = '100%';
	i.style.height = '200px';

	var o = document.createElement('div');
	o.style.position = 'absolute';
	o.style.top = '0px';
	o.style.left = '0px';
	o.style.visibility = 'hidden';
	o.style.width = '200px';
	o.style.height = '150px';
	o.style.overflow = 'hidden';
	o.appendChild(i);

	document.body.appendChild(o);
	var	h1 = i.offsetHeight;
	o.style.overflow = 'scroll';
	var h2 = i.offsetHeight;
	if (h1 == h2) h2 = o.clientWidth;

	document.body.removeChild(o);

	window.scrollbarHeight = h1-h2;
	return window.scrollbarHeight;

};