$(document).ready(function(){initializeFoodoroOverlay()});function initializeFoodoroOverlay(){try{if(jQuery.browser.msie&&jQuery.browser.version==6){var c=$(window).width();var b=$(window).height();maxWidth=900;maxHeight=1000;if(c>maxWidth){maxWidth=c}if(b>maxHeight){maxHeight=b}jQuery("#foodoro-overlay").css({width:maxWidth});jQuery("#foodoro-overlay").css({height:maxHeight})}}catch(d){if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var a=new Number(RegExp.$1);if(a<=6){var c=document.documentElement.clientWidth;var b=document.documentElement.clientHeight;maxWidth=900;if(c>maxWidth){maxWidth=c}maxHeight=2000;if(b>maxHeight){maxHeight=b}$("foodoro-overlay").setStyles({width:maxWidth});$("foodoro-overlay").setStyles({height:maxHeight})}}}}var _mouseOverContext=false;var openmenu="";var isModal=false;var isOverlay=false;var initialized=false;function toggleContext(a){if(openmenu==a){closeContext(a)}else{showContext(a)}}function showContext(d,c,a){initialized=true;if(c==null){isModal=false}else{isModal=c}if(openmenu!=""&&openmenu!=null){closeContext(d)}isOverlay=a;if(isOverlay){try{jQuery("#foodoro-overlay").show()}catch(b){$("foodoro-overlay").setStyle("display","block")}}div=document.getElementById(d+"-cmenu");div.onmouseover=function(){_mouseOverContext=true};div.onmouseout=function(){_mouseOverContext=false};link=document.getElementById(d+"-see-more");if(link!=null){link.style.color="#9f9f9f"}openmenu=d;div.style.display="block";hideAllFormSelectBoxes()}function closeContext(b){if(isOverlay){try{jQuery("#foodoro-overlay").hide()}catch(a){$("foodoro-overlay").setStyle("display","none")}}div=document.getElementById(b+"-cmenu");div.onmouseover=function(){};div.onmouseout=function(){};openmenu="";link=document.getElementById(b+"-see-more");if(link!=null){link.style.color="#008db3"}div.style.display="none";_mouseOverContext=false;showAllFormSelectBoxes()}function ContextMouseDown(a){if(!isModal&&initialized==false){if(_mouseOverContext){return}if(!_mouseOverContext){if(isOverlay){jQuery("#foodoro-overlay").hide()}closeContext(openmenu)}}initialized=false}function hideAllFormSelectBoxes(){if(isOverlay){var a=document.forms;if(a!=null){for(var b=0;b<a.length;b++){var c=a[b];if(jQuery.browser.msie&&jQuery.browser.version==6){jQuery(":input",c).each(function(){var e=this.type;var d=this.tagName.toLowerCase();if(d=="select"){jQuery(this).hide()}})}}}}}function showAllFormSelectBoxes(){if(isOverlay){var a=document.forms;if(a!=null){for(var b=0;b<a.length;b++){var c=a[b];if(jQuery.browser.msie&&jQuery.browser.version==6){jQuery(":input",c).each(function(){var e=this.type;var d=this.tagName.toLowerCase();if(d=="select"){jQuery(this).show()}})}}}}};