var myMenu1 = new ypSlideOutMenu("menu1", "down", 115, 4, 233, 300)
ypSlideOutMenu.writeCSS();

var myMenu2 = new ypSlideOutMenu("menu2", "down", 223, 4, 233, 300)
ypSlideOutMenu.writeCSS();

var menu_states = {
	'menu1' :  { 'on' : 'menu_on', 'off' : 'menu_off' },
	'menu2' :  { 'on' : 'menu_on', 'off' : 'menu_off' }
};

ypSlideOutMenu.parentMenuShow = function(thisId,otherId,state,isCurrentMain) {
	if (state == 'off') {
		if (isCurrentMain == 1) {
			document.getElementById(otherId).className=menu_states[otherId]['on'];
		} else {
			document.getElementById(otherId).className=menu_states[otherId][state];
		}
		//window.setTimeout("document.getElementById('"+otherId+"').src=menu_states['"+otherId+"']['"+state+"']", ypSlideOutMenu.hideDelay);
		//window.setTimeout("ypSlideOutMenu.hide('"+otherId+"')", ypSlideOutMenu.hideDelay);
	} else {
		document.getElementById(otherId).className = menu_states[otherId][state];
	}
}
