// remove the "$" namespace from jQuery, avoids conflicts with other libraries
jQuery.noConflict();

// closure, mapping jQuery to $, window, document and undefined - useful for minifing tools
(function($, window, document, undefined){

var page, menu, tl, tr;

// document ready method
$(function(){

	page = $('#page');
	menu = $('#menu');
	tl = $('#tl');
	tr = $('#tr');


	$(window).resize(doResize);
	doResize();
	setTimeout(doResize, 200);

});


function doResize()
{
	var w = $(window).width(), pos = page.offset();
//	document.title = w + ' ' + pos['left'] + ' ' + menu.outerWidth();
	tl.width(Math.ceil(pos['left']) + 20);
	tr.width(Math.ceil(pos['left']) + (page.width() - menu.outerWidth()) + 1);
}


// plugins


})(jQuery, window, document);

