

var Hungry = new Class({
	
	initialize: function() { 
		window.addEvent('domready', this.onDOMReady.bind(this));
	},
	
	onDOMReady: function() {
		//console.debug($('hungry'));
		//$('hungry').empty();
		window.addEvent('load', this.checkHeight.bind(this));
		window.addEvent('resize', this.checkHeight.bind(this));
	},
	
	checkHeight: function() {
		var allCSize = $('allContainer').getSize();
		if(allCSize.y <= 580) {
			$('innerContainer').setStyle("height", "580px");	
		} else {
			$('innerContainer').setStyle("height", "100%");	
		}
	},
	
	counterSetPageVisit:function(pageName) {
		//console.debug(pageName);
		if(window.pageTracker && window.pageTracker._trackPageview)
			pageTracker._trackPageview('/' + (pageName != '/' ? pageName : ''));
	}

});














function fixRedrawProblem() {
	var allC = document.getElementById('allContainer');
	allC.style.width = (allC.offsetWidth - 1) + "px";
	setTimeout("fixRedrawProblem2()", 500);
}

function fixRedrawProblem2() {
	var allC = document.getElementById('allContainer');
	allC.style.width = "100%";
}

