(function(f,b,k){var d=k(f),j=k(b),c=k.fancybox=function(){c.open.apply(this,arguments)},h=!1,g="undefined"!==typeof b.createTouch;k.extend(c,{version:"2.0.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,autoSize:!0,autoResize:!g,autoCenter:!g,fitToView:!0,aspectRatio:!1,topRatio:0.5,fixed:!(k.browser.msie&&6>=k.browser.version)&&!g,scrolling:"auto",wrapCSS:"fancybox-default",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3000,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},keys:{next:[13,32,34,39,40],prev:[8,33,37,38],close:[27]},tpl:{wrap:'
',image:'',iframe:'",swf:'',error:'

The requested content cannot be loaded.
Please try again later.

',closeBtn:'
',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:300,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:300,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:{speedIn:0,speedOut:300,opacity:0.8,css:{cursor:"pointer"},closeClick:!0},title:{type:"float"}}},group:{},opts:{},coming:null,current:null,isOpen:!1,isOpened:!1,wrap:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,e){c.close(!0);a&&!k.isArray(a)&&(a=a instanceof k?k(a).get():[a]);c.isActive=!0;c.opts=k.extend(!0,{},c.defaults,e); k.isPlainObject(e)&&"undefined"!==typeof e.keys&&(c.opts.keys=e.keys?k.extend({},c.defaults.keys,e.keys):!1);c.group=a;c._start(c.opts.index||0)},cancel:function(){c.coming&&!1===c.trigger("onCancel")||(c.coming=null,c.hideLoading(),c.ajaxLoad&&c.ajaxLoad.abort(),c.ajaxLoad=null,c.imgPreload&&(c.imgPreload.onload=c.imgPreload.onabort=c.imgPreload.onerror=null))},close:function(a){c.cancel();c.current&&!1!==c.trigger("beforeClose")&&(c.unbindEvents(),!c.isOpen||a&&!0===a[0]?(k(".fancybox-wrap").stop().trigger("onReset").remove(),c._afterZoomOut()):(c.isOpen=c.isOpened=!1,k(".fancybox-item, .fancybox-nav").remove(),c.wrap.stop(!0).removeClass("fancybox-opened"),c.inner.css("overflow","hidden"),c.transitions[c.current.closeMethod]()))},play:function(a){var m=function(){clearTimeout(c.player.timer)},l=function(){m();c.current&&c.player.isActive&&(c.player.timer=setTimeout(c.next,c.current.playSpeed))},e=function(){m();k("body").unbind(".player");c.player.isActive=!1;c.trigger("onPlayEnd")};if(c.player.isActive||a&&!1===a[0]){e()}else{if(c.current&&(c.current.loop||c.current.index=c.group.length?a=0:0>a&&(a=c.group.length-1)),"undefined"!==typeof c.group[a]&&(c.cancel(),c._start(a)))},reposition:function(a){c.isOpen&&c.wrap.css(c._getPosition(a))},update:function(a){c.isOpen&&(h||setTimeout(function(){var e=c.current;if(h&&(h=!1,e)){if(e.autoResize||a&&"orientationchange"===a.type){e.autoSize&&(c.inner.height("auto"),e.height=c.inner.height()),c._setDimension(),e.canGrow&&c.inner.height("auto")}e.autoCenter&&c.reposition();c.trigger("onUpdate")}},100),h=!0)},toggle:function(){c.isOpen&&(c.current.fitToView=!c.current.fitToView,c.update())},hideLoading:function(){k("#fancybox-loading").remove()},showLoading:function(){c.hideLoading();k('
').click(c.cancel).appendTo("body")},getViewport:function(){return{x:d.scrollLeft(),y:d.scrollTop(),w:d.width(),h:d.height()}},unbindEvents:function(){c.wrap&&c.wrap.unbind(".fb");j.unbind(".fb");d.unbind(".fb")},bindEvents:function(){var a=c.current,e=a.keys;a&&(d.bind("resize.fb, orientationchange.fb",c.update),e&&j.bind("keydown.fb",function(l){var m; !l.ctrlKey&&!l.altKey&&!l.shiftKey&&!l.metaKey&&0>k.inArray(l.target.tagName.toLowerCase(),["input","textarea","select","button"])&&(m=l.keyCode,-1a.length)){for(var l=1;l<=Math.min(n.preload,m-1);l++){if(e=a[(n.index+l)%m],e=k(e).attr("href")||e){(new Image).src=e}}}},_afterLoad:function(){c.hideLoading();!c.coming||!1===c.trigger("afterLoad",c.current)?c.coming=!1:(c.isOpened?(k(".fancybox-item").remove(),c.wrap.stop(!0).removeClass("fancybox-opened"),c.inner.css("overflow","hidden"),c.transitions[c.current.prevMethod]()):(k(".fancybox-wrap").stop().trigger("onReset").remove(),c.trigger("afterClose")),c.unbindEvents(),c.isOpen=!1,c.current=c.coming,c.wrap=k(c.current.tpl.wrap).addClass("fancybox-"+(g?"mobile":"desktop")+" fancybox-tmp "+c.current.wrapCSS).appendTo("body"),c.outer=k(".fancybox-outer",c.wrap).css("padding",c.current.padding+"px"),c.inner=k(".fancybox-inner",c.wrap),c._setContent())},_setContent:function(){var a,m,l=c.current,e=l.type;switch(e){case"inline":case"ajax":case"html":a=l.content;a instanceof k&&(a=a.show().detach(),a.parent().hasClass("fancybox-inner")&&a.parents(".fancybox-wrap").trigger("onReset").remove(),k(c.wrap).bind("onReset",function(){a.appendTo("body").hide()}));l.autoSize&&(m=k('
').appendTo("body").append(a),l.width=m.width(),l.height=m.height(),m.width(c.current.width),m.height()>l.height&&(m.width(l.width+1),l.width=m.width(),l.height=m.height()),a=m.contents().detach(),m.remove());break;case"image":a=l.tpl.image.replace("{href}",l.href);l.aspectRatio=!0;break;case"swf":a=l.tpl.swf.replace(/\{width\}/g,l.width).replace(/\{height\}/g,l.height).replace(/\{href\}/g,l.href)}if("iframe"===e){a=k(l.tpl.iframe.replace("{rnd}",(new Date).getTime())).attr("scrolling",l.scrolling);l.scrolling="auto";if(l.autoSize){a.width(l.width);c.showLoading();a.data("ready",!1).appendTo(c.inner).bind({onCancel:function(){k(this).unbind();c._afterZoomOut()},load:function(){var n=k(this),p;try{this.contentWindow.document.location&&(p=n.contents().find("body").height()+12,n.height(p))}catch(o){l.autoSize=!1}!1===n.data("ready")?(c.hideLoading(),p&&(c.current.height=p),c._beforeShow(),n.data("ready",!0)):p&&c.update() }}).attr("src",l.href);return}a.attr("src",l.href)}else{if("image"===e||"swf"===e){l.autoSize=!1,l.scrolling="visible"}}c.inner.append(a);c._beforeShow()},_beforeShow:function(){c.coming=null;c.trigger("beforeShow");c._setDimension();c.wrap.hide().removeClass("fancybox-tmp");c.bindEvents();c._preloadImages();c.transitions[c.isOpened?c.current.nextMethod:c.current.openMethod]()},_setDimension:function(){var B=c.wrap,A=c.outer,z=c.inner,x=c.current,y=c.getViewport(),t=x.margin,w=2*x.padding,v=x.width,u=x.height,e=x.maxWidth,s=x.maxHeight,a=x.minWidth,r=x.minHeight,q;y.w-=t[1]+t[3];y.h-=t[0]+t[2];-1e&&(v=e,u=(v-w)/t+w),u>s&&(u=s,v=(u-w)*t+w),ve||q>s){for(;(v>e||q>s)&&v>a&&q>r;){u-=10,x.aspectRatio?(v=Math.round((u-w)*t+w),vr&&uy.w||q>y.h)&&v>a&&u>r){x.canShrink=!0}}B=q-w;c.innerSpace=B-z.height();c.outerSpace=B-A.height()},_getPosition:function(a){var q=c.current,p=c.getViewport(),o=q.margin,n=c.wrap.width()+o[1]+o[3],l=c.wrap.height()+o[0]+o[2],m={position:"absolute",top:o[0]+p.y,left:o[3]+p.x};if(q.fixed&&(!a||!1===a[0])&&l<=p.h&&n<=p.w){m={position:"fixed",top:o[0],left:o[3]}}m.top=Math.ceil(Math.max(m.top,m.top+(p.h-l)*q.topRatio))+"px";m.left=Math.ceil(Math.max(m.left,m.left+0.5*(p.w-n)))+"px";return m},_afterZoomIn:function(){var a=c.current,e=a.scrolling;c.isOpen=c.isOpened=!0;c.wrap.addClass("fancybox-opened").css("overflow","visible");c.update();c.inner.css("overflow","yes"===e?"scroll":"no"===e?"hidden":e);if(a.closeClick||a.nextClick){c.inner.css("cursor","pointer").bind("click.fb",a.nextClick?c.next:c.close)}a.closeBtn&&k(a.tpl.closeBtn).appendTo(c.outer).bind("click.fb",c.close);a.arrows&&1o.end&&(n=1-n),m-=c.innerSpace*n,l-=c.outerSpace*n),c.inner[o.prop](m),c.outer[o.prop](l)}},zoomIn:function(){var a=c.wrap,m=c.current,l,e;l=m.dim;"elastic"===m.openEffect?(e=k.extend({},l,c._getPosition(!0)),delete e.position,l=this.getOrigPosition(),m.openOpacity&&(l.opacity=0,e.opacity=1),c.outer.add(c.inner).width("auto").height("auto"),a.css(l).show(),a.animate(e,{duration:m.openSpeed,easing:m.openEasing,step:this.step,complete:c._afterZoomIn})):(a.css(k.extend({},l,c._getPosition())),"fade"===m.openEffect?a.fadeIn(m.openSpeed,c._afterZoomIn):(a.show(),c._afterZoomIn()))},zoomOut:function(){var a=c.wrap,l=c.current,e;"elastic"===l.closeEffect?("fixed"===a.css("position")&&a.css(c._getPosition(!0)),e=this.getOrigPosition(),l.closeOpacity&&(e.opacity=0),a.animate(e,{duration:l.closeSpeed,easing:l.closeEasing,step:this.step,complete:c._afterZoomOut})):a.fadeOut("fade"===l.closeEffect?l.closeSpeed:0,c._afterZoomOut)},changeIn:function(){var a=c.wrap,l=c.current,e;"elastic"===l.nextEffect?(e=c._getPosition(!0),e.opacity=0,e.top=parseInt(e.top,10)-200+"px",a.css(e).show().animate({opacity:1,top:"+=200px"},{duration:l.nextSpeed,easing:l.nextEasing,complete:c._afterZoomIn})):(a.css(c._getPosition()),"fade"===l.nextEffect?a.hide().fadeIn(l.nextSpeed,c._afterZoomIn):(a.show(),c._afterZoomIn()))},changeOut:function(){var a=c.wrap,l=c.current,e=function(){k(this).trigger("onReset").remove()};a.removeClass("fancybox-opened");"elastic"===l.prevEffect?a.animate({opacity:0,top:"+=200px"},{duration:l.prevSpeed,easing:l.prevEasing,complete:e}):a.fadeOut("fade"===l.prevEffect?l.prevSpeed:0,e)}};c.helpers.overlay={overlay:null,update:function(){var e,l;this.overlay.width(0).height(0); k.browser.msie?(e=Math.max(b.documentElement.scrollWidth,b.body.scrollWidth),l=Math.max(b.documentElement.offsetWidth,b.body.offsetWidth),e=e').css(a.css).appendTo("body"),this.update(),a.closeClick&&this.overlay.bind("click.fb",c.close),d.bind("resize.fb",k.proxy(this.update,this)),this.overlay.fadeTo(a.speedIn,a.opacity))},onUpdate:function(){this.update()},afterClose:function(e){this.overlay&&this.overlay.fadeOut(e.speedOut||0,function(){k(this).remove()});this.overlay=null}};c.helpers.title={beforeShow:function(a){var e;if(e=c.current.title){e=k('
'+e+"
").appendTo("body"),"float"===a.type&&(e.width(e.width()),e.wrapInner(''),c.current.margin[2]+=Math.abs(parseInt(e.css("margin-bottom"),10))),e.appendTo("over"===a.type?c.inner:"outside"===a.type?c.wrap:c.outer)}}};k.fn.fancybox=function(a){var n=k(this),m=this.selector||"",e,l=function(s){var r=this,q="rel",p=r[q],o=e;!s.ctrlKey&&!s.altKey&&!s.shiftKey&&!s.metaKey&&(s.preventDefault(),p||(q="data-fancybox-group",p=k(r).attr("data-fancybox-group")),p&&""!==p&&"nofollow"!==p&&(r=m.length?k(m):n,r=r.filter("["+q+'="'+p+'"]'),o=r.index(this)),a.index=o,c.open(r,a))},a=a||{};e=a.index||0;m?j.undelegate(m,"click.fb-start").delegate(m,"click.fb-start",l):n.unbind("click.fb-start").bind("click.fb-start",l);return this}})(window,document,jQuery); /*! * jQzoom Evolution Library v2.3 - Javascript Image magnifier * http://www.mind-projects.it * * Copyright 2011, Engineer Marco Renzi * Licensed under the BSD license. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of the organization nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * Date: 03 May 2011 22:16:00 */ var isMoving=false; (function($){var isIE6=($.browser.msie&&$.browser.version<7);var body=$(document.body);var window=$(window);var jqzoompluging_disabled=false;$.fn.jqzoom=function(options){return this.each(function(){var node=this.nodeName.toLowerCase();if(node=="a"){new jqzoom(this,options)}})};jqzoom=function(el,options){var api=null;api=$(el).data("jqzoom");if(api){return api}var obj=this;var settings=$.extend({},$.jqzoom.defaults,options||{});obj.el=el;el.rel=$(el).attr("rel");el.zoom_active=false;el.zoom_disabled=false;el.largeimageloading=false;el.largeimageloaded=false;el.scale={};el.timer=null;el.mousepos={};el.mouseDown=false;$(el).css({"outline-style":"none","text-decoration":"none"});var img=$("img:eq(0)",el);el.title=$(el).attr("title");el.imagetitle=img.attr("title");var zoomtitle=($.trim(el.title).length>0)?el.title:el.imagetitle;var smallimage=new Smallimage(img);var lens=new Lens();var stage=new Stage();var largeimage=new Largeimage();var loader=new Loader();$(el).bind("click",function(e){e.preventDefault();return false});var zoomtypes=["standard","drag","innerzoom","reverse"];if($.inArray($.trim(settings.zoomType),zoomtypes)<0){settings.zoomType="standard"}$.extend(obj,{create:function(){if($(".zoomPad",el).length==0){el.zoomPad=$("
").addClass("zoomPad");img.wrap(el.zoomPad)}if(settings.zoomType=="innerzoom"){settings.zoomWidth=smallimage.w;settings.zoomHeight=smallimage.h}if($(".zoomPup",el).length==0){lens.append()}if($(".zoomWindow",el).length==0){stage.append()}if($(".zoomPreload",el).length==0){loader.append()}if(settings.preloadImages||settings.zoomType=="drag"||settings.alwaysOn){obj.load()}obj.init()},init:function(){if(settings.zoomType=="drag"){$(".zoomPad",el).mousedown(function(){el.mouseDown=true});$(".zoomPad",el).mouseup(function(){el.mouseDown=false});document.body.ondragstart=function(){return false};$(".zoomPad",el).css({cursor:"default"});$(".zoomPup",el).css({cursor:"move"})}if(settings.zoomType=="innerzoom"){$(".zoomWrapper",el).css({cursor:"crosshair"})}$(".zoomPad",el).bind("mouseenter mouseover",function(event){img.attr("title","");$(el).attr("title","");el.zoom_active=true;smallimage.fetchdata();if(el.largeimageloaded){obj.activate(event)}else{obj.load()}});$(".zoomPad",el).bind("mouseleave",function(event){obj.deactivate()});$(".zoomPad",el).bind("touchstart touchend",function(e){e.preventDefault();e.stopImmediatePropagation();return false});$(".zoomPad",el).bind("mousemove",function(e){if(e.pageX>smallimage.pos.r||e.pageXsmallimage.pos.b){lens.setcenter(); return false}el.zoom_active=true;if(el.largeimageloaded&&!$(".zoomWindow",el).is(":visible")){obj.activate(e)}if(el.largeimageloaded&&(settings.zoomType!="drag"||(settings.zoomType=="drag"&&el.mouseDown))){lens.setposition(e)}});$(".zoomPad",el).bind("touchmove",function(e){e.preventDefault();e.stopImmediatePropagation();isMoving=true;var now=new Date();e.pageX=e.originalEvent.touches[0].pageX;e.pageY=e.originalEvent.touches[0].pageY;el.zoom_active=true;if(el.largeimageloaded&&!$(".zoomWindow",el).is(":visible")){obj.activate(e)}lens.setposition(e)});var thumb_preload=new Array();var i=0;var thumblist=new Array();thumblist=$("a").filter(function(){var regex=new RegExp("gallery[\\s]*:[\\s]*'"+$.trim(el.rel)+"'","i");var rel=$(this).attr("rel");if(regex.test(rel)){return this}});if(thumblist.length>0){var first=thumblist.splice(0,1);thumblist.push(first)}thumblist.each(function(){if(settings.preloadImages){var thumb_options=$.extend({},eval("("+$.trim($(this).attr("rel"))+")"));thumb_preload[i]=new Image();thumb_preload[i].src=thumb_options.largeimage;i++}$(this).click(function(e){if($(this).hasClass("zoomThumbActive")){return false}thumblist.each(function(){$(this).removeClass("zoomThumbActive")});e.preventDefault();obj.swapimage(this);return false})})},load:function(){if(el.largeimageloaded==false&&el.largeimageloading==false){var url=$(el).attr("href");el.largeimageloading=true;largeimage.loadimage(url)}},activate:function(e){clearTimeout(el.timer);lens.show();stage.show()},deactivate:function(e){switch(settings.zoomType){case"drag":break;default:img.attr("title",el.imagetitle);$(el).attr("title",el.title);if(settings.alwaysOn){lens.setcenter()}else{stage.hide();lens.hide()}break}el.zoom_active=false},swapimage:function(link){el.largeimageloading=false;el.largeimageloaded=false;var options=new Object();options=$.extend({},eval("("+$.trim($(link).attr("rel"))+")"));if(options.smallimage&&options.largeimage){var smallimage=options.smallimage;var largeimage=options.largeimage;$(link).addClass("zoomThumbActive");$(el).attr("href",largeimage);img.attr("src",smallimage);lens.hide();stage.hide();obj.load()}else{alert("ERROR :: Missing parameter for largeimage or smallimage.");throw"ERROR :: Missing parameter for largeimage or smallimage."}return false}});if(img[0].complete){smallimage.fetchdata();if($(".zoomPad",el).length==0){obj.create()}}function Smallimage(image){var $obj=this;this.node=image[0];this.findborder=function(){var bordertop=0;bordertop=image.css("border-top-width"); btop="";var borderleft=0;borderleft=image.css("border-left-width");bleft="";if(bordertop){for(i=0;i<3;i++){var x=[];x=bordertop.substr(i,1);if(isNaN(x)==false){btop=btop+""+bordertop.substr(i,1)}else{break}}}if(borderleft){for(i=0;i<3;i++){if(!isNaN(borderleft.substr(i,1))){bleft=bleft+borderleft.substr(i,1)}else{break}}}$obj.btop=(btop.length>0)?eval(btop):0;$obj.bleft=(bleft.length>0)?eval(bleft):0};this.fetchdata=function(){$obj.findborder();$obj.w=image.width();$obj.h=image.height();$obj.ow=image.outerWidth();$obj.oh=image.outerHeight();$obj.pos=image.offset();$obj.pos.l=image.offset().left+$obj.bleft;$obj.pos.t=image.offset().top+$obj.btop;$obj.pos.r=$obj.w+$obj.pos.l;$obj.pos.b=$obj.h+$obj.pos.t;$obj.rightlimit=image.offset().left+$obj.ow;$obj.bottomlimit=image.offset().top+$obj.oh};this.node.onerror=function(){alert("Problems while loading image.");throw"Problems while loading image."};this.node.onload=function(){$obj.fetchdata();if($(".zoomPad",el).length==0){obj.create()}};return $obj}function Loader(){var $obj=this;this.append=function(){this.node=$("
").addClass("zoomPreload").css("visibility","hidden").html(settings.preloadText);$(".zoomPad",el).append(this.node)};this.show=function(){this.node.top=(smallimage.oh-this.node.height())/2;this.node.left=(smallimage.ow-this.node.width())/2;this.node.css({top:this.node.top,left:this.node.left,position:"absolute",visibility:"visible"})};this.hide=function(){this.node.css("visibility","hidden")};return this}function Lens(){var $obj=this;this.node=$("
").addClass("zoomPup");this.append=function(){$(".zoomPad",el).append($(this.node).hide());if(settings.zoomType=="reverse"){this.image=new Image();this.image.src=smallimage.node.src;$(this.node).empty().append(this.image)}};this.setdimensions=function(){this.node.w=(parseInt((settings.zoomWidth)/el.scale.x)>smallimage.w)?smallimage.w:(parseInt(settings.zoomWidth/el.scale.x));this.node.h=(parseInt((settings.zoomHeight)/el.scale.y)>smallimage.h)?smallimage.h:(parseInt(settings.zoomHeight/el.scale.y));this.node.top=(smallimage.oh-this.node.h-2)/2;this.node.left=(smallimage.ow-this.node.w-2)/2;this.node.css({top:0,left:0,width:this.node.w+"px",height:this.node.h+"px",position:"absolute",display:"none",borderWidth:1+"px"});if(settings.zoomType=="reverse"){this.image.src=smallimage.node.src;$(this.node).css({opacity:1});$(this.image).css({position:"absolute",display:"block",left:-(this.node.left+1-smallimage.bleft)+"px",top:-(this.node.top+1-smallimage.btop)+"px"}) }};this.setcenter=function(){this.node.top=(smallimage.oh-this.node.h-2)/2;this.node.left=(smallimage.ow-this.node.w-2)/2;this.node.css({top:this.node.top,left:this.node.left});if(settings.zoomType=="reverse"){$(this.image).css({position:"absolute",display:"block",left:-(this.node.left+1-smallimage.bleft)+"px",top:-(this.node.top+1-smallimage.btop)+"px"})}largeimage.setposition()};this.setposition=function(e){el.mousepos.x=e.pageX;el.mousepos.y=e.pageY;var lensleft=0;var lenstop=0;function overleft(lens){return el.mousepos.x-(lens.w)/2smallimage.pos.r}function overtop(lens){return el.mousepos.y-(lens.h)/2smallimage.pos.b}lensleft=el.mousepos.x+smallimage.bleft-smallimage.pos.l-(this.node.w+2)/2;lenstop=el.mousepos.y+smallimage.btop-smallimage.pos.t-(this.node.h+2)/2;if(overleft(this.node)){lensleft=smallimage.bleft-1}else{if(overright(this.node)){lensleft=smallimage.w+smallimage.bleft-this.node.w-1}}if(overtop(this.node)){lenstop=smallimage.btop-1}else{if(overbottom(this.node)){lenstop=smallimage.h+smallimage.btop-this.node.h-1}}this.node.left=lensleft;this.node.top=lenstop;this.node.css({left:lensleft+"px",top:lenstop+"px"});if(settings.zoomType=="reverse"){if($.browser.msie&&$.browser.version>7){$(this.node).empty().append(this.image)}$(this.image).css({position:"absolute",display:"block",left:-(this.node.left+1-smallimage.bleft)+"px",top:-(this.node.top+1-smallimage.btop)+"px"})}largeimage.setposition()};this.hide=function(){img.css({opacity:1});this.node.hide()};this.show=function(){if(settings.zoomType!="innerzoom"&&(settings.lens||settings.zoomType=="drag")){this.node.show()}if(settings.zoomType=="reverse"){img.css({opacity:settings.imageOpacity})}};this.getoffset=function(){var o={};o.left=$obj.node.left;o.top=$obj.node.top;return o};return this}function Stage(){var $obj=this;this.node=$("
");this.ieframe=$('');this.setposition=function(){this.node.leftpos=0;this.node.toppos=0;if(settings.zoomType!="innerzoom"){switch(settings.position){case"left":this.node.leftpos=(smallimage.pos.l-smallimage.bleft-Math.abs(settings.xOffset)-settings.zoomWidth>0)?(0-settings.zoomWidth-Math.abs(settings.xOffset)):(smallimage.ow+Math.abs(settings.xOffset)); this.node.toppos=Math.abs(settings.yOffset);break;case"top":this.node.leftpos=Math.abs(settings.xOffset);this.node.toppos=(smallimage.pos.t-smallimage.btop-Math.abs(settings.yOffset)-settings.zoomHeight>0)?(0-settings.zoomHeight-Math.abs(settings.yOffset)):(smallimage.oh+Math.abs(settings.yOffset));break;case"bottom":this.node.leftpos=Math.abs(settings.xOffset);this.node.toppos=(smallimage.pos.t-smallimage.btop+smallimage.oh+Math.abs(settings.yOffset)+settings.zoomHeight0){$(".zoomWrapperTitle",this.node).html(zoomtitle).show()}$obj.setposition()};this.hide=function(){switch(settings.hideEffect){case"fadeout":this.node.fadeOut(settings.fadeoutSpeed,function(){});break;default:this.node.hide();break}this.ieframe.hide()};this.show=function(){switch(settings.showEffect){case"fadein":this.node.fadeIn();this.node.fadeIn(settings.fadeinSpeed,function(){});break;default:this.node.show();break}if(isIE6&&settings.zoomType!="innerzoom"){this.ieframe.width=this.node.width();this.ieframe.height=this.node.height();this.ieframe.left=this.node.leftpos;this.ieframe.top=this.node.toppos;this.ieframe.css({display:"block",position:"absolute",left:this.ieframe.left,top:this.ieframe.top,zIndex:99,width:this.ieframe.width+"px",height:this.ieframe.height+"px"});$(".zoomPad",el).append(this.ieframe);this.ieframe.show()}}}function Largeimage(){var $obj=this;this.node=new Image();this.loadimage=function(url){loader.show();this.url=url;this.node.style.position="absolute";this.node.style.border="0px";this.node.style.display="none"; this.node.style.left="-5000px";this.node.style.top="0px";document.body.appendChild(this.node);this.node.src=url};this.fetchdata=function(){var image=$(this.node);var scale={};this.node.style.display="block";$obj.w=image.width();$obj.h=image.height();$obj.pos=image.offset();$obj.pos.l=image.offset().left;$obj.pos.t=image.offset().top;$obj.pos.r=$obj.w+$obj.pos.l;$obj.pos.b=$obj.h+$obj.pos.t;scale.x=($obj.w/smallimage.w);scale.y=($obj.h/smallimage.h);el.scale=scale;document.body.removeChild(this.node);$(".zoomWrapperImage",el).empty().append(this.node);lens.setdimensions()};this.node.onerror=function(){alert("Problems while loading the big image.");throw"Problems while loading the big image."};this.node.onload=function(){$obj.fetchdata();loader.hide();el.largeimageloading=false;el.largeimageloaded=true;if(settings.zoomType=="drag"||settings.alwaysOn){lens.show();stage.show();lens.setcenter()}};this.setposition=function(){var left=-el.scale.x*(lens.getoffset().left-smallimage.bleft+1);var top=-el.scale.y*(lens.getoffset().top-smallimage.btop+1);$(this.node).css({left:left+"px",top:top+"px"})};return this}$(el).data("jqzoom",obj)};$.jqzoom={defaults:{zoomType:"standard",zoomWidth:300,zoomHeight:300,xOffset:10,yOffset:0,position:"right",preloadImages:true,preloadText:"Loading zoom",title:true,lens:true,imageOpacity:0.4,alwaysOn:false,showEffect:"show",hideEffect:"hide",fadeinSpeed:"slow",fadeoutSpeed:"2000"},disable:function(el){var api=$(el).data("jqzoom");api.disable();return false},enable:function(el){var api=$(el).data("jqzoom");api.enable();return false},disableAll:function(el){jqzoompluging_disabled=true},enableAll:function(el){jqzoompluging_disabled=false}}})(jQuery);if(jQuery){(function(a){a.extend(a.fn,{selectBox:function(j,v){var b,t="";var o=function(C,y){if(navigator.userAgent.match(/iPad|iPhone|Android/i)){return false}if(C.tagName.toLowerCase()!=="select"){return false}C=a(C);if(C.data("selectBox-control")){return false}var x=a(''),A=C.attr("multiple")||parseInt(C.attr("size"))>1;var w=y||{};if(w.autoWidth===undefined){w.autoWidth=true}x.addClass(C.attr("class")).attr("style",C.attr("style")||"").attr("title",C.attr("title")||"").attr("tabindex",parseInt(C.attr("tabindex"))).css("display","inline-block").bind("focus.selectBox",function(){if(this!==document.activeElement){a(document.activeElement).blur()}if(x.hasClass("selectBox-active")){return}x.addClass("selectBox-active");C.trigger("focus")}).bind("blur.selectBox",function(){if(!x.hasClass("selectBox-active")){return }x.removeClass("selectBox-active");C.trigger("blur")});if(C.attr("disabled")){x.addClass("selectBox-disabled")}if(A){var F=k(C,"inline");x.append(F).data("selectBox-options",F).addClass("selectBox-inline").addClass("selectBox-menuShowing").bind("keydown.selectBox",function(G){l(C,G)}).bind("keypress.selectBox",function(G){c(C,G)}).bind("mousedown.selectBox",function(G){if(a(G.target).is("A.selectBox-inline")){G.preventDefault()}if(!x.hasClass("selectBox-focus")){x.focus()}}).insertAfter(C);if(!C[0].style.height){var E=C.attr("size")?parseInt(C.attr("size")):5;var z=x.clone().removeAttr("id").css({position:"absolute",top:"-9999em"}).show().appendTo("body");z.find(".selectBox-options").html("
  • \u00A0
  • ");optionHeight=parseInt(z.find(".selectBox-options A:first").html(" ").outerHeight());z.remove();x.height(optionHeight*E)}g(x)}else{var B=a(''),D=a('');B.text(a(C).find("OPTION:selected").text()||"\u00A0");var F=k(C,"dropdown");F.appendTo("BODY");x.data("selectBox-options",F).addClass("selectBox-dropdown").append(B).append(D).bind("mousedown.selectBox",function(G){if(x.hasClass("selectBox-menuShowing")){f()}else{G.stopPropagation();F.data("selectBox-down-at-x",G.screenX).data("selectBox-down-at-y",G.screenY);n(C)}}).bind("keydown.selectBox",function(G){l(C,G)}).bind("keypress.selectBox",function(G){c(C,G)}).insertAfter(C);g(x)}C.addClass("selectBox").data("selectBox-control",x).data("selectBox-settings",w).hide()};var k=function(w,y){var x;switch(y){case"inline":x=a('