mno.core.register({id:"widget.topMenu.standardMenu",creator:function(c){var e=c.$; function b(){var n=window.jQuery;var j='<nav id="smallHeader" class="smallHeader"><div id="innerSmallHeader" class="span12">',g=n(".topMainMenu").clone(true).addClass("floatLeft").removeClass("gridRow span7"),h=n("#header .search form").clone(true),l,k; mno.features.positionFixed(function(q){var o=window.jQuery("#header"),s=false; k=q;h.addClass("floatRight");j+='<a class="floatLeft logo" href="'+c.publication.url+'"><img src="'+c.publication.url+"skins/global/gfx/"+c.publication.name+'_logo_small.png" alt =""/></a>'; j+="</div></nav>";if(typeof mno.core.utils!=="undefined"&&typeof mno.core.utils.innerShiv==="function"){l=n(mno.core.utils.innerShiv(j,false)); }else{l=n(j);}var r=l.find("#innerSmallHeader");r.append(g);r.append(h); n("body").append(l);l.hide();if(k===true){c.listen({scrollmove:function(t){if(t.y>(o.height()+o.offset().top)){if(s===false){l.show(); s=true;}}else{if(s===true){l.hide();s=false;}}}});}});}function a(){var g=[mno.publication.url]; c.container.find("> ul > li > a").each(function(){g.push(e(this).attr("href")); });var j=mno.utils.params.getPath();var h=window.jQuery.inArray(j,g);if(h!==-1){g.rotate(h); c.listen({gesture:function(l){var k;if(l.horizontal==="left"){k=g.pop(); }else{if(l.horizontal==="right"){if(g[1]){k=g[1];}}}if(k!==undefined&&k!==j){window.location.href=k; }}});}}function f(){c.container.find('[href="/indeks"]').live("click",function(g){c.requireWidget("widget.siteIndex.default"); g.preventDefault();});b();a();}function d(){e=null;}return{init:f,destroy:d}; }});