/*! * fancybox - jquery plugin * version: 2.1.3 (tue, 23 oct 2012) * @requires jquery v1.6 or later * * examples at http://fancyapps.com/fancybox/ * license: www.fancyapps.com/fancybox/#license * * copyright 2012 janis skarnelis - janis@fancyapps.com * */(function(window,document,$,undefined){"use strict";var w=$(window),d=$(document),f=$.fancybox=function(){f.open.apply(this,arguments);},didupdate=null,istouch=document.createtouch!==undefined,isquery=function(obj){return obj&&obj.hasownproperty&&obj instanceof $;},isstring=function(str){return str&&$.type(str)==="string";},ispercentage=function(str){return isstring(str)&&str.indexof('%')>0;},isscrollable=function(el){return(el&&!(el.style.overflow&&el.style.overflow==='hidden')&&((el.clientwidth&&el.scrollwidth>el.clientwidth)||(el.clientheight&&el.scrollheight>el.clientheight)));},getscalar=function(orig,dim){var value=parseint(orig,10)||0;if(dim&&ispercentage(orig)){value=f.getviewport()[dim]/100*value;} return math.ceil(value);},getvalue=function(value,dim){return getscalar(value,dim)+'px';};$.extend(f,{version:'2.1.3',defaults:{padding:15,margin:20,width:800,height:600,minwidth:100,minheight:100,maxwidth:9999,maxheight:9999,autosize:true,autoheight:false,autowidth:false,autoresize:true,autocenter:!istouch,fittoview:true,aspectratio:false,topratio:0.5,leftratio:0.5,scrolling:'auto',wrapcss:'',arrows:true,closebtn:true,closeclick:false,nextclick:false,mousewheel:true,autoplay:false,playspeed:3000,preload:3,modal:false,loop:true,ajax:{datatype:'html',headers:{'x-fancybox':true}},iframe:{scrolling:'auto',preload:true},swf:{wmode:'transparent',allowfullscreen:'true',allowscriptaccess:'always'},keys:{next:{13:'left',34:'up',39:'left',40:'up'},prev:{8:'right',33:'down',37:'right',38:'down'},close:[27],play:[32],toggle:[70]},direction:{next:'left',prev:'right'},scrolloutside:true,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'
',image:'',iframe:'',error:'

the requested content cannot be loaded.
please try again later.

',closebtn:'',next:'',prev:''},openeffect:'fade',openspeed:250,openeasing:'swing',openopacity:true,openmethod:'zoomin',closeeffect:'fade',closespeed:250,closeeasing:'swing',closeopacity:true,closemethod:'zoomout',nexteffect:'elastic',nextspeed:250,nexteasing:'swing',nextmethod:'changein',preveffect:'elastic',prevspeed:250,preveasing:'swing',prevmethod:'changeout',helpers:{overlay:true,title:true},oncancel:$.noop,beforeload:$.noop,afterload:$.noop,beforeshow:$.noop,aftershow:$.noop,beforechange:$.noop,beforeclose:$.noop,afterclose:$.noop},group:{},opts:{},previous:null,coming:null,current:null,isactive:false,isopen:false,isopened:false,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isactive:false},ajaxload:null,imgpreload:null,transitions:{},helpers:{},open:function(group,opts){if(!group){return;} if(!$.isplainobject(opts)){opts={};} if(false===f.close(true)){return;} if(!$.isarray(group)){group=isquery(group)?$(group).get():[group];} $.each(group,function(i,element){var obj={},href,title,content,type,rez,hrefparts,selector;if($.type(element)==="object"){if(element.nodetype){element=$(element);} if(isquery(element)){obj={href:element.data('fancybox-href')||element.attr('href'),title:element.data('fancybox-title')||element.attr('title'),isdom:true,element:element};if($.metadata){$.extend(true,obj,element.metadata());}}else{obj=element;}} href=opts.href||obj.href||(isstring(element)?element:null);title=opts.title!==undefined?opts.title:obj.title||'';content=opts.content||obj.content;type=content?'html':(opts.type||obj.type);if(!type&&obj.isdom){type=element.data('fancybox-type');if(!type){rez=element.prop('class').match(/fancybox\.(\w+)/);type=rez?rez[1]:null;}} if(isstring(href)){if(!type){if(f.isimage(href)){type='image';}else if(f.isswf(href)){type='swf';}else if(href.charat(0)==='#'){type='inline';}else if(isstring(element)){type='html';content=element;}} if(type==='ajax'){hrefparts=href.split(/\s+/,2);href=hrefparts.shift();selector=hrefparts.shift();}} if(!content){if(type==='inline'){if(href){content=$(isstring(href)?href.replace(/.*(?=#[^\s]+$)/,''):href);}else if(obj.isdom){content=element;}}else if(type==='html'){content=href;}else if(!type&&!href&&obj.isdom){type='inline';content=element;}} $.extend(obj,{href:href,type:type,content:content,title:title,selector:selector});group[i]=obj;});f.opts=$.extend(true,{},f.defaults,opts);if(opts.keys!==undefined){f.opts.keys=opts.keys?$.extend({},f.defaults.keys,opts.keys):false;} f.group=group;return f._start(f.opts.index);},cancel:function(){var coming=f.coming;if(!coming||false===f.trigger('oncancel')){return;} f.hideloading();if(f.ajaxload){f.ajaxload.abort();} f.ajaxload=null;if(f.imgpreload){f.imgpreload.onload=f.imgpreload.onerror=null;} if(coming.wrap){coming.wrap.stop(true,true).trigger('onreset').remove();} f.coming=null;if(!f.current){f._afterzoomout(coming);}},close:function(event){f.cancel();if(false===f.trigger('beforeclose')){return;} f.unbindevents();if(!f.isactive){return;} if(!f.isopen||event===true){$('.fancybox-wrap').stop(true).trigger('onreset').remove();f._afterzoomout();}else{f.isopen=f.isopened=false;f.isclosing=true;$('.fancybox-item, .fancybox-nav').remove();f.wrap.stop(true,true).removeclass('fancybox-opened');f.transitions[f.current.closemethod]();}},play:function(action){var clear=function(){cleartimeout(f.player.timer);},set=function(){clear();if(f.current&&f.player.isactive){f.player.timer=settimeout(f.next,f.current.playspeed);}},stop=function(){clear();$('body').unbind('.player');f.player.isactive=false;f.trigger('onplayend');},start=function(){if(f.current&&(f.current.loop||f.current.index=current.index?'next':'prev')];f.router=router||'jumpto';if(current.loop){if(index<0){index=current.group.length+(index%current.group.length);} index=index%current.group.length;} if(current.group[index]!==undefined){f.cancel();f._start(index);}},reposition:function(e,onlyabsolute){var current=f.current,wrap=current?current.wrap:null,pos;if(wrap){pos=f._getposition(onlyabsolute);if(e&&e.type==='scroll'){delete pos.position;wrap.stop(true,true).animate(pos,200);}else{wrap.css(pos);current.pos=$.extend({},current.dim,pos);}}},update:function(e){var type=(e&&e.type),anyway=!type||type==='orientationchange';if(anyway){cleartimeout(didupdate);didupdate=null;} if(!f.isopen||didupdate){return;} didupdate=settimeout(function(){var current=f.current;if(!current||f.isclosing){return;} f.wrap.removeclass('fancybox-tmp');if(anyway||type==='load'||(type==='resize'&¤t.autoresize)){f._setdimension();} if(!(type==='scroll'&¤t.canshrink)){f.reposition(e);} f.trigger('onupdate');didupdate=null;},(anyway&&!istouch?0:300));},toggle:function(action){if(f.isopen){f.current.fittoview=$.type(action)==="boolean"?action:!f.current.fittoview;if(istouch){f.wrap.removeattr('style').addclass('fancybox-tmp');f.trigger('onupdate');} f.update();}},hideloading:function(){d.unbind('.loading');$('#fancybox-loading').remove();},showloading:function(){var el,viewport;f.hideloading();el=$('
').click(f.cancel).appendto('body');d.bind('keydown.loading',function(e){if((e.which||e.keycode)===27){e.preventdefault();f.cancel();}});if(!f.defaults.fixed){viewport=f.getviewport();el.css({position:'absolute',top:(viewport.h*0.5)+viewport.y,left:(viewport.w*0.5)+viewport.x});}},getviewport:function(){var locked=(f.current&&f.current.locked)||false,rez={x:w.scrollleft(),y:w.scrolltop()};if(locked){rez.w=locked[0].clientwidth;rez.h=locked[0].clientheight;}else{rez.w=istouch&&window.innerwidth?window.innerwidth:w.width();rez.h=istouch&&window.innerheight?window.innerheight:w.height();} return rez;},unbindevents:function(){if(f.wrap&&isquery(f.wrap)){f.wrap.unbind('.fb');} d.unbind('.fb');w.unbind('.fb');},bindevents:function(){var current=f.current,keys;if(!current){return;} w.bind('orientationchange.fb'+(istouch?'':' resize.fb')+(current.autocenter&&!current.locked?' scroll.fb':''),f.update);keys=current.keys;if(keys){d.bind('keydown.fb',function(e){var code=e.which||e.keycode,target=e.target||e.srcelement;if(code===27&&f.coming){return false;} if(!e.ctrlkey&&!e.altkey&&!e.shiftkey&&!e.metakey&&!(target&&(target.type||$(target).is('[contenteditable]')))){$.each(keys,function(i,val){if(current.group.length>1&&val[code]!==undefined){f[i](val[code]);e.preventdefault();return false;} if($.inarray(code,val)>-1){f[i]();e.preventdefault();return false;}});}});} if($.fn.mousewheel&¤t.mousewheel){f.wrap.bind('mousewheel.fb',function(e,delta,deltax,deltay){var target=e.target||null,parent=$(target),canscroll=false;while(parent.length){if(canscroll||parent.is('.fancybox-skin')||parent.is('.fancybox-wrap')){break;} canscroll=isscrollable(parent[0]);parent=$(parent).parent();} if(delta!==0&&!canscroll){if(f.group.length>1&&!current.canshrink){if(deltay>0||deltax>0){f.prev(deltay>0?'down':'left');}else if(deltay<0||deltax<0){f.next(deltay<0?'up':'right');} e.preventdefault();}}});}},trigger:function(event,o){var ret,obj=o||f.coming||f.current;if(!obj){return;} if($.isfunction(obj[event])){ret=obj[event].apply(obj,array.prototype.slice.call(arguments,1));} if(ret===false){return false;} if(obj.helpers){$.each(obj.helpers,function(helper,opts){if(opts&&f.helpers[helper]&&$.isfunction(f.helpers[helper][event])){opts=$.extend(true,{},f.helpers[helper].defaults,opts);f.helpers[helper][event](opts,obj);}});} $.event.trigger(event+'.fb');},isimage:function(str){return isstring(str)&&str.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?$)/i);},isswf:function(str){return isstring(str)&&str.match(/\.(swf)((\?|#).*)?$/i);},_start:function(index){var coming={},obj,href,type,margin,padding;index=getscalar(index);obj=f.group[index]||null;if(!obj){return false;} coming=$.extend(true,{},f.opts,obj);margin=coming.margin;padding=coming.padding;if($.type(margin)==='number'){coming.margin=[margin,margin,margin,margin];} if($.type(padding)==='number'){coming.padding=[padding,padding,padding,padding];} if(coming.modal){$.extend(true,coming,{closebtn:false,closeclick:false,nextclick:false,arrows:false,mousewheel:false,keys:null,helpers:{overlay:{closeclick:false}}});} if(coming.autosize){coming.autowidth=coming.autoheight=true;} if(coming.width==='auto'){coming.autowidth=true;} if(coming.height==='auto'){coming.autoheight=true;} coming.group=f.group;coming.index=index;f.coming=coming;if(false===f.trigger('beforeload')){f.coming=null;return;} type=coming.type;href=coming.href;if(!type){f.coming=null;if(f.current&&f.router&&f.router!=='jumpto'){f.current.index=index;return f[f.router](f.direction);} return false;} f.isactive=true;if(type==='image'||type==='swf'){coming.autoheight=coming.autowidth=false;coming.scrolling='visible';} if(type==='image'){coming.aspectratio=true;} if(type==='iframe'&&istouch){coming.scrolling='scroll';} coming.wrap=$(coming.tpl.wrap).addclass('fancybox-'+(istouch?'mobile':'desktop')+' fancybox-type-'+type+' fancybox-tmp '+coming.wrapcss).appendto(coming.parent||'body');$.extend(coming,{skin:$('.fancybox-skin',coming.wrap),outer:$('.fancybox-outer',coming.wrap),inner:$('.fancybox-inner',coming.wrap)});$.each(["top","right","bottom","left"],function(i,v){coming.skin.css('padding'+v,getvalue(coming.padding[i]));});f.trigger('onready');if(type==='inline'||type==='html'){if(!coming.content||!coming.content.length){return f._error('content');}}else if(!href){return f._error('href');} if(type==='image'){f._loadimage();}else if(type==='ajax'){f._loadajax();}else if(type==='iframe'){f._loadiframe();}else{f._afterload();}},_error:function(type){$.extend(f.coming,{type:'html',autowidth:true,autoheight:true,minwidth:0,minheight:0,scrolling:'no',haserror:type,content:f.coming.tpl.error});f._afterload();},_loadimage:function(){var img=f.imgpreload=new image();img.onload=function(){this.onload=this.onerror=null;f.coming.width=this.width;f.coming.height=this.height;f._afterload();};img.onerror=function(){this.onload=this.onerror=null;f._error('image');};img.src=f.coming.href;if(img.complete!==true){f.showloading();}},_loadajax:function(){var coming=f.coming;f.showloading();f.ajaxload=$.ajax($.extend({},coming.ajax,{url:coming.href,error:function(jqxhr,textstatus){if(f.coming&&textstatus!=='abort'){f._error('ajax',jqxhr);}else{f.hideloading();}},success:function(data,textstatus){if(textstatus==='success'){coming.content=data;f._afterload();}}}));},_loadiframe:function(){var coming=f.coming,iframe=$(coming.tpl.iframe.replace(/\{rnd\}/g,new date().gettime())).attr('scrolling',istouch?'auto':coming.iframe.scrolling).attr('src',coming.href);$(coming.wrap).bind('onreset',function(){try{$(this).find('iframe').hide().attr('src','//about:blank').end().empty();}catch(e){}});if(coming.iframe.preload){f.showloading();iframe.one('load',function(){$(this).data('ready',1);if(!istouch){$(this).bind('load.fb',f.update);} $(this).parents('.fancybox-wrap').width('100%').removeclass('fancybox-tmp').show();f._afterload();});} coming.content=iframe.appendto(coming.inner);if(!coming.iframe.preload){f._afterload();}},_preloadimages:function(){var group=f.group,current=f.current,len=group.length,cnt=current.preload?math.min(current.preload,len-1):0,item,i;for(i=1;i<=cnt;i+=1){item=group[(current.index+i)%len];if(item.type==='image'&&item.href){new image().src=item.href;}}},_afterload:function(){var coming=f.coming,previous=f.current,placeholder='fancybox-placeholder',current,content,type,scrolling,href,embed;f.hideloading();if(!coming||f.isactive===false){return;} if(false===f.trigger('afterload',coming,previous)){coming.wrap.stop(true).trigger('onreset').remove();f.coming=null;return;} if(previous){f.trigger('beforechange',previous);previous.wrap.stop(true).removeclass('fancybox-opened').find('.fancybox-item, .fancybox-nav').remove();} f.unbindevents();current=coming;content=coming.content;type=coming.type;scrolling=coming.scrolling;$.extend(f,{wrap:current.wrap,skin:current.skin,outer:current.outer,inner:current.inner,current:current,previous:previous});href=current.href;switch(type){case 'inline':case 'ajax':case 'html':if(current.selector){content=$('
').html(content).find(current.selector);}else if(isquery(content)){if(!content.data(placeholder)){content.data(placeholder,$('
').insertafter(content).hide());} content=content.show().detach();current.wrap.bind('onreset',function(){if($(this).find(content).length){content.hide().replaceall(content.data(placeholder)).data(placeholder,false);}});} break;case 'image':content=current.tpl.image.replace('{href}',href);break;case 'swf':content='';embed='';$.each(current.swf,function(name,val){content+='';embed+=' '+name+'="'+val+'"';});content+='';break;} if(!(isquery(content)&&content.parent().is(current.inner))){current.inner.append(content);} f.trigger('beforeshow');current.inner.css('overflow',scrolling==='yes'?'scroll':(scrolling==='no'?'hidden':scrolling));f._setdimension();f.reposition();f.isopen=false;f.coming=null;f.bindevents();if(!f.isopened){$('.fancybox-wrap').not(current.wrap).stop(true).trigger('onreset').remove();}else if(previous.prevmethod){f.transitions[previous.prevmethod]();} f.transitions[f.isopened?current.nextmethod:current.openmethod]();f._preloadimages();},_setdimension:function(){var viewport=f.getviewport(),steps=0,canshrink=false,canexpand=false,wrap=f.wrap,skin=f.skin,inner=f.inner,current=f.current,width=current.width,height=current.height,minwidth=current.minwidth,minheight=current.minheight,maxwidth=current.maxwidth,maxheight=current.maxheight,scrolling=current.scrolling,scrollout=current.scrolloutside?current.scrollbarwidth:0,margin=current.margin,wmargin=getscalar(margin[1]+margin[3]),hmargin=getscalar(margin[0]+margin[2]),wpadding,hpadding,wspace,hspace,origwidth,origheight,origmaxwidth,origmaxheight,ratio,width_,height_,maxwidth_,maxheight_,iframe,body;wrap.add(skin).add(inner).width('auto').height('auto').removeclass('fancybox-tmp');wpadding=getscalar(skin.outerwidth(true)-skin.width());hpadding=getscalar(skin.outerheight(true)-skin.height());wspace=wmargin+wpadding;hspace=hmargin+hpadding;origwidth=ispercentage(width)?(viewport.w-wspace)*getscalar(width)/100:width;origheight=ispercentage(height)?(viewport.h-hspace)*getscalar(height)/100:height;if(current.type==='iframe'){iframe=current.content;if(current.autoheight&&iframe.data('ready')===1){try{if(iframe[0].contentwindow.document.location){inner.width(origwidth).height(9999);body=iframe.contents().find('body');if(scrollout){body.css('overflow-x','hidden');} origheight=body.height();}}catch(e){}}}else if(current.autowidth||current.autoheight){inner.addclass('fancybox-tmp');if(!current.autowidth){inner.width(origwidth);} if(!current.autoheight){inner.height(origheight);} if(current.autowidth){origwidth=inner.width();} if(current.autoheight){origheight=inner.height();} inner.removeclass('fancybox-tmp');} width=getscalar(origwidth);height=getscalar(origheight);ratio=origwidth/origheight;minwidth=getscalar(ispercentage(minwidth)?getscalar(minwidth,'w')-wspace:minwidth);maxwidth=getscalar(ispercentage(maxwidth)?getscalar(maxwidth,'w')-wspace:maxwidth);minheight=getscalar(ispercentage(minheight)?getscalar(minheight,'h')-hspace:minheight);maxheight=getscalar(ispercentage(maxheight)?getscalar(maxheight,'h')-hspace:maxheight);origmaxwidth=maxwidth;origmaxheight=maxheight;if(current.fittoview){maxwidth=math.min(viewport.w-wspace,maxwidth);maxheight=math.min(viewport.h-hspace,maxheight);} maxwidth_=viewport.w-wmargin;maxheight_=viewport.h-hmargin;if(current.aspectratio){if(width>maxwidth){width=maxwidth;height=getscalar(width/ratio);} if(height>maxheight){height=maxheight;width=getscalar(height*ratio);} if(widthmaxwidth_||height_>maxheight_)&&width>minwidth&&height>minheight){if(steps++>19){break;} height=math.max(minheight,math.min(maxheight,height-10));width=getscalar(height*ratio);if(widthmaxwidth){width=maxwidth;height=getscalar(width/ratio);} inner.width(width).height(height);wrap.width(width+wpadding);width_=wrap.width();height_=wrap.height();}}else{width=math.max(minwidth,math.min(width,width-(width_-maxwidth_)));height=math.max(minheight,math.min(height,height-(height_-maxheight_)));}} if(scrollout&&scrolling==='auto'&&heightmaxwidth_||height_>maxheight_)&&width>minwidth&&height>minheight;canexpand=current.aspectratio?(widthminheight&&height1)){f.inner.css('cursor','pointer').bind('click.fb',function(e){if(!$(e.target).is('a')&&!$(e.target).parent().is('a')){e.preventdefault();f[current.closeclick?'close':'next']();}});} if(current.closebtn){$(current.tpl.closebtn).appendto(f.skin).bind(istouch?'touchstart.fb':'click.fb',function(e){e.preventdefault();f.close();});} if(current.arrows&&f.group.length>1){if(current.loop||current.index>0){$(current.tpl.prev).appendto(f.outer).bind('click.fb',f.prev);} if(current.loop||current.index
').appendto('body');this.fixed=false;if(opts.fixed&&f.defaults.fixed){this.overlay.addclass('fancybox-overlay-fixed');this.fixed=true;}},open:function(opts){var that=this;opts=$.extend({},this.defaults,opts);if(this.overlay){this.overlay.unbind('.overlay').width('auto').height('auto');}else{this.create(opts);} if(!this.fixed){w.bind('resize.overlay',$.proxy(this.update,this));this.update();} if(opts.closeclick){this.overlay.bind('click.overlay',function(e){if($(e.target).hasclass('fancybox-overlay')){if(f.isactive){f.close();}else{that.close();}}});} this.overlay.css(opts.css).show();},close:function(){$('.fancybox-overlay').remove();w.unbind('resize.overlay');this.overlay=null;if(this.margin!==false){$('body').css('margin-right',this.margin);this.margin=false;} if(this.el){this.el.removeclass('fancybox-lock');}},update:function(){var width='100%',offsetwidth;this.overlay.width(width).height('100%');if($.browser.msie){offsetwidth=math.max(document.documentelement.offsetwidth,document.body.offsetwidth);if(d.width()>offsetwidth){width=d.width();}}else if(d.width()>w.width()){width=d.width();} this.overlay.width(width).height(d.height());},onready:function(opts,obj){$('.fancybox-overlay').stop(true,true);if(!this.overlay){this.margin=d.height()>w.height()||$('body').css('overflow-y')==='scroll'?$('body').css('margin-right'):false;this.el=document.all&&!document.queryselector?$('html'):$('body');this.create(opts);} if(opts.locked&&this.fixed){obj.locked=this.overlay.append(obj.wrap);obj.fixed=false;} if(opts.showearly===true){this.beforeshow.apply(this,arguments);}},beforeshow:function(opts,obj){ if(obj.locked){this.el.addclass('fancybox-lock'); if(this.margin!==false){$('body').css('margin-right',0)} } this.open(opts);},onupdate:function(){if(!this.fixed){this.update();}},afterclose:function(opts){if(this.overlay&&!f.isactive){this.overlay.fadeout(opts.speedout,$.proxy(this.close,this));}}};f.helpers.title={defaults:{type:'float',position:'bottom'},beforeshow:function(opts){var current=f.current,text=current.title,type=opts.type,title,target;if($.isfunction(text)){text=text.call(current.element,current);} if(!isstring(text)||$.trim(text)===''){return;} title=$('
'+text+'
');switch(type){case 'inside':target=f.skin;break;case 'outside':target=f.wrap;break;case 'over':target=f.inner;break;default:target=f.skin;title.appendto('body');if($.browser.msie){title.width(title.width());} title.wrapinner('');f.current.margin[2]+=math.abs(getscalar(title.css('margin-bottom')));break;} title[(opts.position==='top'?'prependto':'appendto')](target);}};$.fn.fancybox=function(options){var index,that=$(this),selector=this.selector||'',run=function(e){var what=$(this).blur(),idx=index,reltype,relval;if(!(e.ctrlkey||e.altkey||e.shiftkey||e.metakey)&&!what.is('.fancybox-wrap')){reltype=options.groupattr||'data-fancybox-group';relval=what.attr(reltype);if(!relval){reltype='rel';relval=what.get(0)[reltype];} if(relval&&relval!==''&&relval!=='nofollow'){what=selector.length?$(selector):that;what=what.filter('['+reltype+'="'+relval+'"]');idx=what.index(this);} options.index=idx;if(f.open(what,options)!==false){e.preventdefault();}}};options=options||{};index=options.index||0;if(!selector||options.live===false){that.unbind('click.fb-start').bind('click.fb-start',run);}else{d.undelegate(selector,'click.fb-start').delegate(selector+":not('.fancybox-item, .fancybox-nav')",'click.fb-start',run);} this.filter('[data-fancybox-start=1]').trigger('click');return this;};d.ready(function(){if($.scrollbarwidth===undefined){$.scrollbarwidth=function(){var parent=$('
').appendto('body'),child=parent.children(),width=child.innerwidth()-child.height(99).innerwidth();parent.remove();return width;};} if($.support.fixedposition===undefined){$.support.fixedposition=(function(){var elem=$('
').appendto('body'),fixed=(elem[0].offsettop===20||elem[0].offsettop===15);elem.remove();return fixed;}());} $.extend(f.defaults,{scrollbarwidth:$.scrollbarwidth(),fixed:$.support.fixedposition,parent:$('body')});});}(window,document,jquery)); // getscalar(this.margin)+obj.scrollbarwidth);