(function($){$.fn.lavaLamp=function(o){o=$.extend({fx:"linear",speed:500,click:function(){}},o||{});return this.each(function(){var b=$(this),noop=function(){},$back=$('<li class="back"><div class="left"></div></li>').appendTo(b),$li=$("li",this),curr=$("li.current",this)[0]||$($li[0]).addClass("current")[0];$li.not(".back").hover(function(){move(this)},noop);$(this).hover(noop,function(){move(curr)});$li.click(function(e){setCurr(this);return o.click.apply(this,[e,this])});setCurr(curr);function setCurr(a){$back.css({"left":a.offsetLeft+"px","width":a.offsetWidth+"px"});curr=a};function move(a){$back.each(function(){$(this).dequeue()}).animate({width:a.offsetWidth,left:a.offsetLeft},o.speed,o.fx)}$(".lavaLampWithImage li ul li").hover(function(){move(curr)});})}})(jQuery);
function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){oldonload();func();}}}
function prepareMenu(){if(!document.getElementsByTagName)return false;if(!document.getElementById)return false;if(!document.getElementById("1"))return false;var menu=document.getElementById("1");var root_li=menu.getElementsByTagName("li");for(var i=0;i<root_li.length;i++){var li=root_li[i];var child_ul=li.getElementsByTagName("ul");if(child_ul.length>=1){li.onmouseover=function(){if(!this.getElementsByTagName("ul"))return false;var ul=this.getElementsByTagName("ul");setTimeout(ul[0].style.display="block",2000);return true;}
li.onmouseout=function(){if(!this.getElementsByTagName("ul"))return false;var ul=this.getElementsByTagName("ul");ul[0].style.display="none";return true;}}}
return true;}
addLoadEvent(prepareMenu);
