function switchSubcatLayer(a){$(a.parentNode).toggleClass("closed");return false}$(document).ready(function(){if($.browser.msie||$.browser.safari){var f=$.browser.msie&&parseInt($.browser.version)<7;var c=$.browser.msie;var b=$.browser.msie&&parseInt($.browser.version)>=7;var a=$.browser.msie&&parseInt($.browser.version)<7;var d=$("#content-container").height()+$("#footer").height();var e=$("#header").height()-10;if(f){e-=$("#footer").height()}$(".fancycat-icons-e ul.fancycat-icons-level-0 li").each(function(){this._ul=$("ul",this).eq(0);if(this._ul.length){this._centerMain=$(this).parents("#center-main").get(0)}else{this._ul=false}});$(".fancycat-icons-e ul.fancycat-icons-level-0 li").hover(function(){if(c){this.className+=" over";if(b&&this._ul){this._ul.css("display","block")}}if(this._ul){if(!this._iframe){var h=0;if(f){h=this._ul.offset().top}else{var i=this._ul;do{h+=i.attr("offsetTop");i=i.offsetParent()}while(i.attr("tagName")!="BODY")}this.requiredHeight=this._ul.height()+h-e;if(a){var g=this._ul.position();this._iframe=this.insertBefore(document.createElement("IFRAME"),this._ul.get(0));$(this._iframe).css("left",g.left).css("top",g.top).width(this._ul.width()).height(this._ul.height())}else{this._iframe=true}}if(this._iframe&&c){this._iframe.className="over"}if(this.requiredHeight>d){$("#content-container").height(this.requiredHeight);if(this._centerMain){$(this._centerMain).height(this.requiredHeight)}}}},function(){if(c){this.className=this.className.replace(/ over/,"");if(b&&this._ul){this._ul.css("display","none")}}if(this._iframe){if(c){this._iframe.className=""}if(this.isHighUL){document.getElementById("content-container").style.height="";if(this._centerMain){this._centerMain.style.height=""}}}});if($("ul.fancycat-icons-level-1").parents("li").get(0)){$("ul.fancycat-icons-level-1").parents("li").get(0).isHighUL=true}}if(typeof(window.catexp)!="undefined"&&catexp>0){$(".fancycat-icons-c #cat-layer-"+catexp).parents("li.closed").removeClass("closed")}});
