function touchMenuClassName (menuId) {
	if (document.getElementById (menuId)) {
		previousClass = document.getElementById ('publicMenu').firstChild.className;
		document.getElementById (menuId).firstChild.className = 'over';
		document.getElementById (menuId).firstChild.className = 'out';
		document.getElementById (menuId).firstChild.className = previousClass;
	}
}

function onResize () {
	if (window.previousWidth !== undefined) {
		if (getWindowWidth () != window.previousWidth) {
			//alert (window.previousWidth + '=>' + getWindowWidth ()); 
			window.previousWidth = getWindowWidth ();
			touchMenuClassName ('publicMenu'); 
			touchMenuClassName ('subscriberMenu'); 
			touchMenuClassName ('adminMenu'); 
		}
	} else {
		try {
			window.previousWidth = getWindowWidth ()
		}
		catch(e) {
			//alert (e);
		}
	}
}

function timeoutOnresize () {
	try {
		onResize();
	}
	catch (e) {
	}
	window.setTimeout ('timeoutOnresize()', 400);
}

timeoutOnresize ();
