!function(a){function o(a){var d,b=10,c=0;return function(){var e=this,f=arguments,g=function(){c=new Date,a.apply(e,f)};d&&(clearTimeout(d),d=null);var h=new Date-c;h>b?g():d=setTimeout(g,b-h)}}function p(b,d){this.element=a(b),this.lastValues={},a.isArray(d)||(d=[d||{}]),d.length||d.push({}),this.optionList=d;var e=this.element.css("transform")||"";this.defaultZIndex=this.element.css("z-index")||100,"auto"==this.defaultZIndex?this.defaultZIndex=100:"0"==this.defaultZIndex&&"none"!=e&&(this.defaultZIndex=100),this.updateOptions(),this.offsetY=0,this.lastY=0,this.stick=m.None,this.spacer=a("
"),this.spacer[0].id=b.id,this.spacer[0].className=b.className,this.spacer[0].style.cssText=b.style.cssText,this.spacer.addClass(c),this.spacer[0].style.cssText+=";visibility: hidden !important;display: none !important",this.spacer.insertAfter(this.element),"static"==this.element.parent().css("position")&&this.element.parent().css("position","relative"),this.origWillChange=this.element.css("will-change"),"auto"==this.origWillChange&&this.element.css("will-change","transform"),"none"==e?this.element.css("transform","translateZ(0)"):e.indexOf("matrix3d")==-1&&this.element.css("transform",this.element.css("transform")+" translateZ(0)"),this.bound(),this.precalculate(),this.store()}function s(){q=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth,t()}function t(){a(d).each(function(){a(this).data(b).refresh()})}function u(){a(d).each(function(){a(this).data(b).locate()})}function v(){var c=!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement);a(d).each(function(){a(this).data(b).enableWillChange(!c)})}function x(b){var d=b.some(function(b){var d=a(b.target),e=d.data(g);return e&&d.removeData(g),!d.hasClass(c)&&!e});d&&w()}var b="jquery-stickit",c=b+"-spacer",d=":"+b,e=navigator.userAgent.indexOf("MSIE 7.0")!=-1,f=e?-2:0,g=b+"-locating",h=void 0!==window.MutationObserver,i="animationend webkitAnimationEnd oAnimationEnd",j="transitionend webkitTransitionEnd oTransitionEnd",k="webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange",l=window.StickScope={Parent:0,Document:1},m={None:0,Fixed:1,Absolute:2},n=!1;a.expr[":"][b]=function(c){return!!a(c).data(b)},p.prototype.trigger=function(a){var b="on"+a.charAt(0).toUpperCase()+a.slice(1);this.options[b]&&this.options[b].call(this.element),this.element.trigger("stickit:"+a)},p.prototype.isActive=function(a){return(void 0===a.screenMinWidth||r>=a.screenMinWidth)&&(void 0===a.screenMaxWidth||r<=a.screenMaxWidth)},p.prototype.updateCss=function(a){this.element.hasClass(this.options.className)&&a.className!=this.options.className&&this.element.removeClass(this.options.className).addClass(a.className);var b={};this.stick==m.Absolute?this.options.extraHeight!=a.extraHeight&&(b.bottom=-this.options.extraHeight+"px"):this.options.top!=a.top&&(b.top=a.top+this.offsetY+"px"),this.options.zIndex!=a.zIndex&&(b.zIndex=this.getZIndex(a)),this.element.css(b)},p.prototype.updateOptions=function(){var a=this.getActiveOptionsKey();if(this.activeKey!=a){this.activeKey=a;var b=this.getActiveOptions();this.options&&(a?this.stick!=m.None&&(b.scope==this.options.scope?this.updateCss(b):(this.reset(),setTimeout(this.locate.bind(this)))):this.reset()),this.options=b,this.zIndex=this.getZIndex(b)}},p.prototype.getZIndex=function(a){return void 0===a.zIndex?this.defaultZIndex:a.zIndex},p.prototype.getActiveOptionsKey=function(){for(var a=[],b=0;b=0||this.isHigher()?this.reset():this.options.scope==l.Parent?(a=d.parent()[0].getBoundingClientRect(),a.bottom+this.baseParentOffset+this.offsetHeight<=d.outerHeight(!1)+this.basePadding?this.setAbsolute(this.spacer.position().left):this.updateScroll(a.bottom)):this.updateScroll(a.bottom);break;case m.Absolute:a=e[0].getBoundingClientRect(),b=a.top-this.baseTop,c=a.left-this.margin.left,b>=0||this.isHigher()?this.reset():(a=d.parent()[0].getBoundingClientRect(),a.bottom+this.baseParentOffset+this.offsetHeight>d.outerHeight(!1)+this.basePadding&&this.setFixed(c+f,a.bottom,-this.offsetHeight));break;case m.None:default:if(a=d[0].getBoundingClientRect(),b=a.top-this.baseTop,b>=0||this.isHigher())return;var h=d.parent()[0].getBoundingClientRect();e.height(d.height()),e.show(),c=a.left-this.margin.left,this.options.scope==l.Document?this.setFixed(c,a.bottom,0):h.bottom+this.baseParentOffset+this.offsetHeight<=d.outerHeight(!1)+this.basePadding?this.setAbsolute(this.element.position().left):this.setFixed(c+f,a.bottom,0),e.width()||e.width(d.width())}}},p.prototype.refresh=function(){if(this.updateOptions(),this.bound(),this.precalculate(),this.stick==m.None)return void this.locate();var a=this.element,b=this.spacer;if(this.lastValues.width!=b.width()&&a.width(this.lastValues.width=b.width()),this.lastValues.height!=b.height()&&b.height(this.lastValues.height=b.height()),this.stick==m.Fixed){var c=this.spacer[0].getBoundingClientRect(),d=c.left-this.margin.left;this.lastValues.left!=d+"px"&&a.css("left",this.lastValues.left=d+"px")}this.locate()},p.prototype.destroy=function(){this.reset(),this.spacer.remove(),this.element.removeData(b)},p.prototype.enableWillChange=function(a){"auto"==this.origWillChange&&this.element.css("will-change",a?"transform":this.origWillChange)};var q,r,w=o(t),y=["destroy","refresh"];a.fn.stickit=function(c,d){if("string"==typeof c){if(a.inArray(c,y)!=-1){var e=arguments;this.each(function(){var d=a(this).data(b);d&&d[c].apply(d,Array.prototype.slice.call(e,1))})}}else{if(!n&&(n=!0,s(),a(document).ready(function(){a(window).bind("resize",s).bind("scroll",u),a(document.body).bind(i+" "+j,u),a(document).bind(k,v)}),h)){var f=new MutationObserver(x);f.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}d=a.isArray(c)?c:Array.prototype.slice.call(arguments,0),this.each(function(){var c=new p(this,d);a(this).data(b,c),c.locate()})}return this},a.stickit={refresh:t}}(jQuery); $(document).ready(function() { $menuac = $('.menuac'); $menuac.click(function() { $(this).toggleClass('acik'); $('#ust ul.menu').slideToggle(); }); $('.sayfa-sag').stickit({ screenMinWidth: 980, top: 20 }); });