(function(f,i,b){b(f).scrollTop(0);if(location.hash.length){var q=b(location.hash).length?b(location.hash):b("a[name~='"+location.hash.slice(1)+"']");f.setTimeout(function(){q.length&&b(f).scrollTop(q.offset().top)},0)}var p=function(){var d=i.createElement("div"),a=d.cloneNode(false),n=false,c;if(!(c=i.body)){n=true;c=i.documentElement.appendChild(i.createElement("body"))}c=c;var j=c.style.cssText;c.style.cssText="padding:0;margin:0";d.style.cssText="position:fixed;top:42px";c.appendChild(d);c.appendChild(a); var o=d.offsetTop!==a.offsetTop;c.removeChild(d);c.removeChild(a);c.style.cssText=j;n&&i.documentElement.removeChild(c);p=o};b.fixedIE=b.fn.fixedIE=function(d){p();d=b.extend({selector:"",_elements:new b.fn.init},d);if(d.selector.length)d._elements=d._elements.add(d.selector);else if(typeof this==="object"){if(this.css("position")==="fixed")d._elements=d._elements.add(this[0])}else b.each(b.makeArray(i.styleSheets),function(){b.each(this.cssRules||this.rules,function(){if(b(this.selectorText).css("position")=== "fixed")d._elements=d._elements.add(this.selectorText)})});if(p||d._elements.length<=0)return b.isFunction(this)?b("<div/>"):this;b("html").css("background-image","url(.)");return d._elements.each(function(){var a=b(this).css("position","absolute").appendTo("body"),n=function(e){var g=b("<div/>");e=g.css({height:e,visibility:"hidden",position:"absolute"}).appendTo("body").height();g.remove();return e};a.css("top")==="auto"&&a.css("bottom")==="auto"&&a.css("top","0px");var c=a.offset(),j=function(e){var g= {};e=a[0].currentStyle[e];if(e.slice(-1)==="%"){g.unit="%";g.val=f.parseFloat(e)/100}else if(e.slice(-2)==="px"){g.unit="px";g.val=f.parseFloat(e)||0}else{g.unit="px";g.val=f.parseFloat(n(e))||0}return g},o=c.top+a.outerHeight(),t=c.left+a.outerWidth();o>b(f).height()&&a.css({"overflow-y":"hidden",height:b(f).height()+"px"}).data("fixedie.fill","height");t>b(f).width()&&a.css({"overflow-x":"hidden",width:b(f).width()+"px"}).data("fixedie.fill","width");var h=a[0].style.setExpression,r=a[0].style.removeExpression; if(h){var k=j("top"),l=j("left"),s=j("right"),m=j("bottom");if(a.css("bottom")!=="auto"){a.data("fixedie.vertical","bottom");m.unit==="px"&&h("top","(jQuery(window).height()+jQuery(document).scrollTop()-"+a.outerHeight()+"-"+m.val+") +'px'");m.unit==="%"&&h("top","(jQuery(window).height()+jQuery(document).scrollTop() *"+m.val+") +'px'")}else{a.data("fixedie.vertical","top");k.unit==="px"&&h("top","(jQuery(document).scrollTop()+"+c.top+") +'px'");k.unit==="%"&&h("top","(jQuery(document).scrollTop()+"+ c.top+"*"+k.val+") +'px'")}if(a.css("right")!=="auto"){a.data("fixedie.horizontal","right");h("left","(jQuery(window).width()+jQuery(document).scrollLeft()-"+a.outerWidth()+"-"+s.val+") +'px'")}else{a.data("fixedie.horizontal","left");l.unit==="px"&&h("left","(jQuery(document).scrollLeft()+"+c.left+") +'px'");l.unit==="%"&&h("left","(jQuery(document).scrollLeft()+"+c.left+"*"+l.val+") +'px'")}b(f).bind("resize scroll",function(){r("bottom");r("right");var e=a.data("fixedie.horizontal"),g=a.data("fixedie.vertical"); if(l.unit==="%"){a.width(a.width());h("left","((jQuery(window).width()*"+l.val+")+jQuery(window).scrollLeft()) +'px'")}k.unit==="%"&&h("top","((jQuery(window).height()*"+k.val+")+jQuery(window).scrollTop()) +'px'");g==="bottom"&&h("top","(jQuery(window).height()+jQuery(document).scrollTop()-"+a.outerHeight()+"-"+m.val+") +'px'");e==="right"&&h("left","(jQuery(window).width()+jQuery(document).scrollLeft()-"+a.outerWidth()+"-"+s.val+") +'px'");(e=a.data("fixedie.fill"))&&e==="height"&&a.css("height", b(f).height()+"px");e&&e==="width"&&a.css("width",b(f).width()+"px")})}})}})(this,this.document,this.jQuery);

