1 |
|
/*
|
2 |
|
* FancyBox - simple jQuery plugin for fancy image zooming
|
3 |
|
* Examples and documentation at: http://fancy.klade.lv/
|
4 |
|
* Version: 1.0.0 (29/04/2008)
|
5 |
|
* Copyright (c) 2008 Janis Skarnelis
|
6 |
|
* Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
|
7 |
|
* Requires: jQuery v1.2.1 or later
|
8 |
|
*/
|
9 |
|
(function($) {
|
10 |
|
var opts = {},
|
11 |
|
imgPreloader = new Image, imgTypes = ['png', 'jpg', 'jpeg', 'gif'],
|
12 |
|
loadingTimer, loadingFrame = 1;
|
13 |
|
|
14 |
|
$.fn.fancybox = function(settings) {
|
15 |
|
opts.settings = $.extend({}, $.fn.fancybox.defaults, settings);
|
16 |
|
|
17 |
|
$.fn.fancybox.init();
|
18 |
|
|
19 |
|
return this.each(function() {
|
20 |
|
var $this = $(this);
|
21 |
|
var o = $.metadata ? $.extend({}, opts.settings, $this.metadata()) : opts.settings;
|
22 |
|
|
23 |
|
$this.unbind('click').click(function() {
|
24 |
|
$.fn.fancybox.start(this, o); return false;
|
25 |
|
});
|
26 |
|
});
|
27 |
|
};
|
28 |
|
|
29 |
|
$.fn.fancybox.start = function(el, o) {
|
30 |
|
if (opts.animating) return false;
|
31 |
|
|
32 |
|
if (o.overlayShow) {
|
33 |
|
$("#fancy_wrap").prepend('<div id="fancy_overlay"></div>');
|
34 |
|
$("#fancy_overlay").css({'width': $(window).width(), 'height': $(document).height(), 'opacity': o.overlayOpacity});
|
35 |
|
|
36 |
|
if ($.browser.msie) {
|
37 |
|
$("#fancy_wrap").prepend('<iframe id="fancy_bigIframe" scrolling="no" frameborder="0"></iframe>');
|
38 |
|
$("#fancy_bigIframe").css({'width': $(window).width(), 'height': $(document).height(), 'opacity': 0});
|
39 |
|
}
|
40 |
|
|
41 |
|
$("#fancy_overlay").click($.fn.fancybox.close);
|
42 |
|
}
|
43 |
|
|
44 |
|
opts.itemArray = [];
|
45 |
|
opts.itemNum = 0;
|
46 |
|
|
47 |
|
if (jQuery.isFunction(o.itemLoadCallback)) {
|
48 |
|
o.itemLoadCallback.apply(this, [opts]);
|
49 |
|
|
50 |
|
var c = $(el).children("img:first").length ? $(el).children("img:first") : $(el);
|
51 |
|
var tmp = {'width': c.width(), 'height': c.height(), 'pos': $.fn.fancybox.getPosition(c)}
|
52 |
|
|
53 |
|
for (var i = 0; i < opts.itemArray.length; i++) {
|
54 |
|
opts.itemArray[i].o = $.extend({}, o, opts.itemArray[i].o);
|
55 |
|
|
56 |
|
if (o.zoomSpeedIn > 0 || o.zoomSpeedOut > 0) {
|
57 |
|
opts.itemArray[i].orig = tmp;
|
58 |
|
}
|
59 |
|
}
|
60 |
|
|
61 |
|
} else {
|
62 |
|
if (!el.rel || el.rel == '') {
|
63 |
|
var item = {url: el.href, title: el.title, o: o};
|
64 |
|
|
65 |
|
if (o.zoomSpeedIn > 0 || o.zoomSpeedOut > 0) {
|
66 |
|
var c = $(el).children("img:first").length ? $(el).children("img:first") : $(el);
|
67 |
|
item.orig = {'width': c.width(), 'height': c.height(), 'pos': $.fn.fancybox.getPosition(c)}
|
68 |
|
}
|
69 |
|
|
70 |
|
opts.itemArray.push(item);
|
71 |
|
|
72 |
|
} else {
|
73 |
|
var arr = $("a[@rel=" + el.rel + "]").get();
|
74 |
|
|
75 |
|
for (var i = 0; i < arr.length; i++) {
|
76 |
|
var tmp = $.metadata ? $.extend({}, o, $(arr[i]).metadata()) : o;
|
77 |
|
var item = {url: arr[i].href, title: arr[i].title, o: tmp};
|
78 |
|
|
79 |
|
if (o.zoomSpeedIn > 0 || o.zoomSpeedOut > 0) {
|
80 |
|
var c = $(arr[i]).children("img:first").length ? $(arr[i]).children("img:first") : $(el);
|
81 |
|
|
82 |
|
item.orig = {'width': c.width(), 'height': c.height(), 'pos': $.fn.fancybox.getPosition(c)}
|
83 |
|
}
|
84 |
|
|
85 |
|
if (arr[i].href == el.href) opts.itemNum = i;
|
86 |
|
|
87 |
|
opts.itemArray.push(item);
|
88 |
|
}
|
89 |
|
}
|
90 |
|
}
|
91 |
|
|
92 |
|
$.fn.fancybox.changeItem(opts.itemNum);
|
93 |
|
};
|
94 |
|
|
95 |
|
$.fn.fancybox.changeItem = function(n) {
|
96 |
|
$.fn.fancybox.showLoading();
|
97 |
|
|
98 |
|
opts.itemNum = n;
|
99 |
|
|
100 |
|
$("#fancy_nav").empty();
|
101 |
|
$("#fancy_outer").stop();
|
102 |
|
$("#fancy_title").hide();
|
103 |
|
$(document).unbind("keydown");
|
104 |
|
|
105 |
|
imgRegExp = imgTypes.join('|');
|
106 |
|
imgRegExp = new RegExp('\.' + imgRegExp + '$', 'i');
|
107 |
|
|
108 |
|
var url = opts.itemArray[n].url;
|
109 |
|
|
110 |
|
if (url.match(/#/)) {
|
111 |
|
var target = window.location.href.split('#')[0]; target = url.replace(target,'');
|
112 |
|
|
113 |
|
$.fn.fancybox.showItem('<div id="fancy_div">' + $(target).html() + '</div>');
|
114 |
|
|
115 |
|
$("#fancy_loading").hide();
|
116 |
|
|
117 |
|
} else if (url.match(imgRegExp)) {
|
118 |
|
$(imgPreloader).unbind('load').bind('load', function() {
|
119 |
|
$("#fancy_loading").hide();
|
120 |
|
|
121 |
|
opts.itemArray[n].o.frameWidth = imgPreloader.width;
|
122 |
|
opts.itemArray[n].o.frameHeight = imgPreloader.height;
|
123 |
|
|
124 |
|
$.fn.fancybox.showItem('<img id="fancy_img" src="' + imgPreloader.src + '" />');
|
125 |
|
|
126 |
|
}).attr('src', url + '?rand=' + Math.floor(Math.random() * 999999999) );
|
127 |
|
|
128 |
|
} else {
|
129 |
|
$.fn.fancybox.showItem('<iframe id="fancy_frame" onload="$.fn.fancybox.showIframe()" name="fancy_iframe' + Math.round(Math.random()*1000) + '" frameborder="0" hspace="0" src="' + url + '"></iframe>');
|
130 |
|
}
|
131 |
|
};
|
132 |
|
|
133 |
|
$.fn.fancybox.showIframe = function() {
|
134 |
|
$("#fancy_loading").hide();
|
135 |
|
$("#fancy_frame").show();
|
136 |
|
};
|
137 |
|
|
138 |
|
$.fn.fancybox.showItem = function(val) {
|
139 |
|
$.fn.fancybox.preloadNeighborImages();
|
140 |
|
|
141 |
|
var viewportPos = $.fn.fancybox.getViewport();
|
142 |
|
var itemSize = $.fn.fancybox.getMaxSize(viewportPos[0] - 50, viewportPos[1] - 100, opts.itemArray[opts.itemNum].o.frameWidth, opts.itemArray[opts.itemNum].o.frameHeight);
|
143 |
|
|
144 |
|
var itemLeft = viewportPos[2] + Math.round((viewportPos[0] - itemSize[0]) / 2) - 20;
|
145 |
|
var itemTop = viewportPos[3] + Math.round((viewportPos[1] - itemSize[1]) / 2) - 40;
|
146 |
|
|
147 |
|
var itemOpts = {
|
148 |
|
'left': itemLeft,
|
149 |
|
'top': itemTop,
|
150 |
|
'width': itemSize[0] + 'px',
|
151 |
|
'height': itemSize[1] + 'px'
|
152 |
|
}
|
153 |
|
|
154 |
|
if (opts.active) {
|
155 |
|
$('#fancy_content').fadeOut("normal", function() {
|
156 |
|
$("#fancy_content").empty();
|
157 |
|
|
158 |
|
$("#fancy_outer").animate(itemOpts, "normal", function() {
|
159 |
|
$("#fancy_content").append($(val)).fadeIn("normal");
|
160 |
|
$.fn.fancybox.updateDetails();
|
161 |
|
});
|
162 |
|
});
|
163 |
|
|
164 |
|
} else {
|
165 |
|
opts.active = true;
|
166 |
|
|
167 |
|
$("#fancy_content").empty();
|
168 |
|
|
169 |
|
if ($("#fancy_content").is(":animated")) {
|
170 |
|
console.info('animated!');
|
171 |
|
}
|
172 |
|
|
173 |
|
if (opts.itemArray[opts.itemNum].o.zoomSpeedIn > 0) {
|
174 |
|
opts.animating = true;
|
175 |
|
itemOpts.opacity = "show";
|
176 |
|
|
177 |
|
$("#fancy_outer").css({
|
178 |
|
'top': opts.itemArray[opts.itemNum].orig.pos.top - 18,
|
179 |
|
'left': opts.itemArray[opts.itemNum].orig.pos.left - 18,
|
180 |
|
'height': opts.itemArray[opts.itemNum].orig.height,
|
181 |
|
'width': opts.itemArray[opts.itemNum].orig.width
|
182 |
|
});
|
183 |
|
|
184 |
|
$("#fancy_content").append($(val)).show();
|
185 |
|
|
186 |
|
$("#fancy_outer").animate(itemOpts, opts.itemArray[opts.itemNum].o.zoomSpeedIn, function() {
|
187 |
|
opts.animating = false;
|
188 |
|
$.fn.fancybox.updateDetails();
|
189 |
|
});
|
190 |
|
|
191 |
|
} else {
|
192 |
|
$("#fancy_content").append($(val)).show();
|
193 |
|
$("#fancy_outer").css(itemOpts).show();
|
194 |
|
$.fn.fancybox.updateDetails();
|
195 |
|
}
|
196 |
|
}
|
197 |
|
};
|
198 |
|
|
199 |
|
$.fn.fancybox.updateDetails = function() {
|
200 |
|
$("#fancy_bg,#fancy_close").show();
|
201 |
|
|
202 |
|
if (opts.itemArray[opts.itemNum].title !== undefined && opts.itemArray[opts.itemNum].title !== '') {
|
203 |
|
$('#fancy_title div').html(opts.itemArray[opts.itemNum].title);
|
204 |
|
$('#fancy_title').show();
|
205 |
|
}
|
206 |
|
|
207 |
|
if (opts.itemArray[opts.itemNum].o.hideOnContentClick) {
|
208 |
|
$("#fancy_content").click($.fn.fancybox.close);
|
209 |
|
} else {
|
210 |
|
$("#fancy_content").unbind('click');
|
211 |
|
}
|
212 |
|
|
213 |
|
if (opts.itemNum != 0) {
|
214 |
|
$("#fancy_nav").append('<a id="fancy_left" href="javascript:;"></a>');
|
215 |
|
|
216 |
|
$('#fancy_left').click(function() {
|
217 |
|
$.fn.fancybox.changeItem(opts.itemNum - 1); return false;
|
218 |
|
});
|
219 |
|
}
|
220 |
|
|
221 |
|
if (opts.itemNum != (opts.itemArray.length - 1)) {
|
222 |
|
$("#fancy_nav").append('<a id="fancy_right" href="javascript:;"></a>');
|
223 |
|
|
224 |
|
$('#fancy_right').click(function(){
|
225 |
|
$.fn.fancybox.changeItem(opts.itemNum + 1); return false;
|
226 |
|
});
|
227 |
|
}
|
228 |
|
|
229 |
|
$(document).keydown(function(event) {
|
230 |
|
if (event.keyCode == 27) {
|
231 |
|
$.fn.fancybox.close();
|
232 |
|
|
233 |
|
} else if(event.keyCode == 37 && opts.itemNum != 0) {
|
234 |
|
$.fn.fancybox.changeItem(opts.itemNum - 1);
|
235 |
|
|
236 |
|
} else if(event.keyCode == 39 && opts.itemNum != (opts.itemArray.length - 1)) {
|
237 |
|
$.fn.fancybox.changeItem(opts.itemNum + 1);
|
238 |
|
}
|
239 |
|
});
|
240 |
|
};
|
241 |
|
|
242 |
|
$.fn.fancybox.preloadNeighborImages = function() {
|
243 |
|
if ((opts.itemArray.length - 1) > opts.itemNum) {
|
244 |
|
preloadNextImage = new Image();
|
245 |
|
preloadNextImage.src = opts.itemArray[opts.itemNum + 1].url;
|
246 |
|
}
|
247 |
|
|
248 |
|
if (opts.itemNum > 0) {
|
249 |
|
preloadPrevImage = new Image();
|
250 |
|
preloadPrevImage.src = opts.itemArray[opts.itemNum - 1].url;
|
251 |
|
}
|
252 |
|
};
|
253 |
|
|
254 |
|
$.fn.fancybox.close = function() {
|
255 |
|
if (opts.animating) return false;
|
256 |
|
|
257 |
|
$(imgPreloader).unbind('load');
|
258 |
|
$(document).unbind("keydown");
|
259 |
|
|
260 |
|
$("#fancy_loading,#fancy_title,#fancy_close,#fancy_bg").hide();
|
261 |
|
|
262 |
|
$("#fancy_nav").empty();
|
263 |
|
|
264 |
|
opts.active = false;
|
265 |
|
|
266 |
|
if (opts.itemArray[opts.itemNum].o.zoomSpeedOut > 0) {
|
267 |
|
var itemOpts = {
|
268 |
|
'top': opts.itemArray[opts.itemNum].orig.pos.top - 18,
|
269 |
|
'left': opts.itemArray[opts.itemNum].orig.pos.left - 18,
|
270 |
|
'height': opts.itemArray[opts.itemNum].orig.height,
|
271 |
|
'width': opts.itemArray[opts.itemNum].orig.width,
|
272 |
|
'opacity': 'hide'
|
273 |
|
};
|
274 |
|
|
275 |
|
opts.animating = true;
|
276 |
|
|
277 |
|
$("#fancy_outer").animate(itemOpts, opts.itemArray[opts.itemNum].o.zoomSpeedOut, function() {
|
278 |
|
$("#fancy_content").hide().empty();
|
279 |
|
$("#fancy_overlay,#fancy_bigIframe").remove();
|
280 |
|
opts.animating = false;
|
281 |
|
});
|
282 |
|
|
283 |
|
} else {
|
284 |
|
$("#fancy_outer").hide();
|
285 |
|
$("#fancy_content").hide().empty();
|
286 |
|
$("#fancy_overlay,#fancy_bigIframe").fadeOut("fast").remove();
|
287 |
|
}
|
288 |
|
};
|
289 |
|
|
290 |
|
$.fn.fancybox.showLoading = function() {
|
291 |
|
clearInterval(loadingTimer);
|
292 |
|
|
293 |
|
var pos = $.fn.fancybox.getViewport();
|
294 |
|
|
295 |
|
$("#fancy_loading").css({'left': ((pos[0] - 40) / 2 + pos[2]), 'top': ((pos[1] - 40) / 2 + pos[3])}).show();
|
296 |
|
$("#fancy_loading").bind('click', $.fn.fancybox.close);
|
297 |
|
|
298 |
|
loadingTimer = setInterval($.fn.fancybox.animateLoading, 66);
|
299 |
|
};
|
300 |
|
|
301 |
|
$.fn.fancybox.animateLoading = function(el, o) {
|
302 |
|
if (!$("#fancy_loading").is(':visible')){
|
303 |
|
clearInterval(loadingTimer);
|
304 |
|
return;
|
305 |
|
}
|
306 |
|
|
307 |
|
$("#fancy_loading > div").css('top', (loadingFrame * -40) + 'px');
|
308 |
|
|
309 |
|
loadingFrame = (loadingFrame + 1) % 12;
|
310 |
|
};
|
311 |
|
|
312 |
|
$.fn.fancybox.init = function() {
|
313 |
|
if (!$('#fancy_wrap').length) {
|
314 |
|
$('<div id="fancy_wrap"><div id="fancy_loading"><div></div></div><div id="fancy_outer"><div id="fancy_inner"><div id="fancy_nav"></div><div id="fancy_close"></div><div id="fancy_content"></div><div id="fancy_title"></div></div></div></div>').appendTo("body");
|
315 |
|
$('<div id="fancy_bg"><div class="fancy_bg fancy_bg_n"></div><div class="fancy_bg fancy_bg_ne"></div><div class="fancy_bg fancy_bg_e"></div><div class="fancy_bg fancy_bg_se"></div><div class="fancy_bg fancy_bg_s"></div><div class="fancy_bg fancy_bg_sw"></div><div class="fancy_bg fancy_bg_w"></div><div class="fancy_bg fancy_bg_nw"></div></div>').prependTo("#fancy_inner");
|
316 |
|
|
317 |
|
$('<table cellspacing="0" cellpadding="0" border="0"><tr><td id="fancy_title_left"></td><td id="fancy_title_main"><div></div></td><td id="fancy_title_right"></td></tr></table>').appendTo('#fancy_title');
|
318 |
|
}
|
319 |
|
|
320 |
|
if ($.browser.msie) {
|
321 |
|
$("#fancy_inner").prepend('<iframe id="fancy_freeIframe" scrolling="no" frameborder="0"></iframe>');
|
322 |
|
}
|
323 |
|
|
324 |
|
if (jQuery.fn.pngFix) $(document).pngFix();
|
325 |
|
|
326 |
|
$("#fancy_close").click($.fn.fancybox.close);
|
327 |
|
};
|
328 |
|
|
329 |
|
$.fn.fancybox.getPosition = function(el) {
|
330 |
|
var pos = el.offset();
|
331 |
|
|
332 |
|
pos.top += $.fn.fancybox.num(el, 'paddingTop');
|
333 |
|
pos.top += $.fn.fancybox.num(el, 'borderTopWidth');
|
334 |
|
|
335 |
|
pos.left += $.fn.fancybox.num(el, 'paddingLeft');
|
336 |
|
pos.left += $.fn.fancybox.num(el, 'borderLeftWidth');
|
337 |
|
|
338 |
|
return pos;
|
339 |
|
};
|
340 |
|
|
341 |
|
$.fn.fancybox.num = function (el, prop) {
|
342 |
|
return parseInt($.curCSS(el.jquery?el[0]:el,prop,true))||0;
|
343 |
|
};
|
344 |
|
|
345 |
|
$.fn.fancybox.getPageScroll = function() {
|
346 |
|
var xScroll, yScroll;
|
347 |
|
|
348 |
|
if (self.pageYOffset) {
|
349 |
|
yScroll = self.pageYOffset;
|
350 |
|
xScroll = self.pageXOffset;
|
351 |
|
} else if (document.documentElement && document.documentElement.scrollTop) {
|
352 |
|
yScroll = document.documentElement.scrollTop;
|
353 |
|
xScroll = document.documentElement.scrollLeft;
|
354 |
|
} else if (document.body) {
|
355 |
|
yScroll = document.body.scrollTop;
|
356 |
|
xScroll = document.body.scrollLeft;
|
357 |
|
}
|
358 |
|
|
359 |
|
return [xScroll, yScroll];
|
360 |
|
};
|
361 |
|
|
362 |
|
$.fn.fancybox.getViewport = function() {
|
363 |
|
var scroll = $.fn.fancybox.getPageScroll();
|
364 |
|
|
365 |
|
return [$(window).width(), $(window).height(), scroll[0], scroll[1]];
|
366 |
|
};
|
367 |
|
|
368 |
|
$.fn.fancybox.getMaxSize = function(maxWidth, maxHeight, imageWidth, imageHeight) {
|
369 |
|
var r = Math.min(Math.min(maxWidth, imageWidth) / imageWidth, Math.min(maxHeight, imageHeight) / imageHeight);
|
370 |
|
|
371 |
|
return [Math.round(r * imageWidth), Math.round(r * imageHeight)];
|
372 |
|
};
|
373 |
|
|
374 |
|
$.fn.fancybox.defaults = {
|
375 |
|
hideOnContentClick: false,
|
376 |
|
zoomSpeedIn: 500,
|
377 |
|
zoomSpeedOut: 500,
|
378 |
|
frameWidth: 600,
|
379 |
|
frameHeight: 400,
|
380 |
|
overlayShow: false,
|
381 |
|
overlayOpacity: 0.4,
|
382 |
|
itemLoadCallback: null
|
383 |
|
};
|
384 |
|
})(jQuery);
|
|
1 |
/*
|
|
2 |
* FancyBox - simple and fancy jQuery plugin
|
|
3 |
* Examples and documentation at: http://fancy.klade.lv/
|
|
4 |
* Version: 1.2.1 (13/03/2009)
|
|
5 |
* Copyright (c) 2009 Janis Skarnelis
|
|
6 |
* Licensed under the MIT License: http://en.wikipedia.org/wiki/MIT_License
|
|
7 |
* Requires: jQuery v1.3+
|
|
8 |
*/
|
|
9 |
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}(';(7($){$.b.2Q=7(){u B.2t(7(){9 1J=$(B).n(\'2Z\');5(1J.1c(/^3w\\(["\']?(.*\\.2p)["\']?\\)$/i)){1J=3t.$1;$(B).n({\'2Z\':\'45\',\'2o\':"3W:3R.4m.4d(3h=F, 3T="+($(B).n(\'41\')==\'2J-3Z\'?\'4c\':\'3N\')+", Q=\'"+1J+"\')"}).2t(7(){9 1b=$(B).n(\'1b\');5(1b!=\'2e\'&&1b!=\'2n\')$(B).n(\'1b\',\'2n\')})}})};9 A,4,16=D,s=1t 1o,1w,1v=1,1y=/\\.(3A|3Y|2p|3c|3d)(.*)?$/i;9 P=($.2q.3K&&2f($.2q.3z.2k(0,1))<8);$.b.c=7(Y){Y=$.3x({},$.b.c.2R,Y);9 2s=B;7 2h(){A=B;4=Y;2r();u D};7 2r(){5(16)u;5($.1O(4.2c)){4.2c()}4.j=[];4.h=0;5(Y.j.N>0){4.j=Y.j}t{9 O={};5(!A.1H||A.1H==\'\'){9 O={d:A.d,X:A.X};5($(A).1G("1m:1D").N){O.1a=$(A).1G("1m:1D")}4.j.2j(O)}t{9 Z=$(2s).2o("a[1H="+A.1H+"]");9 O={};3C(9 i=0;i<Z.N;i++){O={d:Z[i].d,X:Z[i].X};5($(Z[i]).1G("1m:1D").N){O.1a=$(Z[i]).1G("1m:1D")}4.j.2j(O)}3F(4.j[4.h].d!=A.d){4.h++}}}5(4.23){5(P){$(\'1U, 1Q, 1P\').n(\'1S\',\'3s\')}$("#1i").n(\'25\',4.2U).J()}1d()};7 1d(){$("#1f, #1e, #V, #G").S();9 d=4.j[4.h].d;5(d.1c(/#/)){9 U=11.3r.d.3f(\'#\')[0];U=d.3g(U,\'\');U=U.2k(U.2l(\'#\'));1k(\'<6 l="3e">\'+$(U).o()+\'</6>\',4.1I,4.1x)}t 5(d.1c(1y)){s=1t 1o;s.Q=d;5(s.3a){1K()}t{$.b.c.34();$(s).x().14(\'3b\',7(){$(".I").S();1K()})}}t 5(d.1c("17")||A.3j.2l("17")>=0){1k(\'<17 l="35" 3q="$.b.c.38()" 3o="3n\'+C.T(C.3l()*3m)+\'" 2K="0" 3E="0" Q="\'+d+\'"></17>\',4.1I,4.1x)}t{$.4p(d,7(2m){1k(\'<6 l="3L">\'+2m+\'</6>\',4.1I,4.1x)})}};7 1K(){5(4.30){9 w=$.b.c.1n();9 r=C.1M(C.1M(w[0]-36,s.g)/s.g,C.1M(w[1]-4b,s.f)/s.f);9 g=C.T(r*s.g);9 f=C.T(r*s.f)}t{9 g=s.g;9 f=s.f}1k(\'<1m 48="" l="49" Q="\'+s.Q+\'" />\',g,f)};7 2F(){5((4.j.N-1)>4.h){9 d=4.j[4.h+1].d;5(d.1c(1y)){1A=1t 1o();1A.Q=d}}5(4.h>0){9 d=4.j[4.h-1].d;5(d.1c(1y)){1A=1t 1o();1A.Q=d}}};7 1k(1j,g,f){16=F;9 L=4.2Y;5(P){$("#q")[0].1E.2u("f");$("#q")[0].1E.2u("g")}5(L>0){g+=L*2;f+=L*2;$("#q").n({\'v\':L+\'z\',\'2E\':L+\'z\',\'2i\':L+\'z\',\'y\':L+\'z\',\'g\':\'2B\',\'f\':\'2B\'});5(P){$("#q")[0].1E.2C(\'f\',\'(B.2D.4j - 20)\');$("#q")[0].1E.2C(\'g\',\'(B.2D.3S - 20)\')}}t{$("#q").n({\'v\':0,\'2E\':0,\'2i\':0,\'y\':0,\'g\':\'2z%\',\'f\':\'2z%\'})}5($("#k").1u(":19")&&g==$("#k").g()&&f==$("#k").f()){$("#q").1Z("2N",7(){$("#q").1C().1F($(1j)).21("1s",7(){1g()})});u}9 w=$.b.c.1n();9 2v=(g+36)>w[0]?w[2]:(w[2]+C.T((w[0]-g-36)/2));9 2w=(f+1z)>w[1]?w[3]:(w[3]+C.T((w[1]-f-1z)/2));9 K={\'y\':2v,\'v\':2w,\'g\':g+\'z\',\'f\':f+\'z\'};5($("#k").1u(":19")){$("#q").1Z("1s",7(){$("#q").1C();$("#k").24(K,4.2X,4.2T,7(){$("#q").1F($(1j)).21("1s",7(){1g()})})})}t{5(4.1W>0&&4.j[4.h].1a!==1L){$("#q").1C().1F($(1j));9 M=4.j[4.h].1a;9 15=$.b.c.1R(M);$("#k").n({\'y\':(15.y-18)+\'z\',\'v\':(15.v-18)+\'z\',\'g\':$(M).g(),\'f\':$(M).f()});5(4.1X){K.25=\'J\'}$("#k").24(K,4.1W,4.2W,7(){1g()})}t{$("#q").S().1C().1F($(1j)).J();$("#k").n(K).21("1s",7(){1g()})}}};7 2y(){5(4.h!=0){$("#1e, #2O").x().14("R",7(e){e.2x();4.h--;1d();u D});$("#1e").J()}5(4.h!=(4.j.N-1)){$("#1f, #2M").x().14("R",7(e){e.2x();4.h++;1d();u D});$("#1f").J()}};7 1g(){2y();2F();$(W).1B(7(e){5(e.29==27){$.b.c.1l();$(W).x("1B")}t 5(e.29==37&&4.h!=0){4.h--;1d();$(W).x("1B")}t 5(e.29==39&&4.h!=(4.j.N-1)){4.h++;1d();$(W).x("1B")}});5(4.1r){$(11).14("1N 1T",$.b.c.2g)}t{$("6#k").n("1b","2e")}5(4.2b){$("#22").R($.b.c.1l)}$("#1i, #V").14("R",$.b.c.1l);$("#V").J();5(4.j[4.h].X!==1L&&4.j[4.h].X.N>0){$(\'#G 6\').o(4.j[4.h].X);$(\'#G\').J()}5(4.23&&P){$(\'1U, 1Q, 1P\',$(\'#q\')).n(\'1S\',\'19\')}5($.1O(4.2a)){4.2a()}16=D};u B.x(\'R\').R(2h)};$.b.c.2g=7(){9 m=$.b.c.1n();$("#k").n(\'y\',(($("#k").g()+36)>m[0]?m[2]:m[2]+C.T((m[0]-$("#k").g()-36)/2)));$("#k").n(\'v\',(($("#k").f()+1z)>m[1]?m[3]:m[3]+C.T((m[1]-$("#k").f()-1z)/2)))};$.b.c.1h=7(H,2A){u 2f($.3I(H.3u?H[0]:H,2A,F))||0};$.b.c.1R=7(H){9 m=H.4g();m.v+=$.b.c.1h(H,\'3k\');m.v+=$.b.c.1h(H,\'3J\');m.y+=$.b.c.1h(H,\'3H\');m.y+=$.b.c.1h(H,\'3D\');u m};$.b.c.38=7(){$(".I").S();$("#35").J()};$.b.c.1n=7(){u[$(11).g(),$(11).f(),$(W).3i(),$(W).3p()]};$.b.c.2G=7(){5(!$("#I").1u(\':19\')){33(1w);u}$("#I > 6").n(\'v\',(1v*-40)+\'z\');1v=(1v+1)%12};$.b.c.34=7(){33(1w);9 m=$.b.c.1n();$("#I").n({\'y\':((m[0]-40)/2+m[2]),\'v\':((m[1]-40)/2+m[3])}).J();$("#I").14(\'R\',$.b.c.1l);1w=3Q($.b.c.2G,3X)};$.b.c.1l=7(){16=F;$(s).x();$("#1i, #V").x();5(4.2b){$("#22").x()}$("#V, .I, #1e, #1f, #G").S();5(4.1r){$(11).x("1N 1T")}1q=7(){$("#1i, #k").S();5(4.1r){$(11).x("1N 1T")}5(P){$(\'1U, 1Q, 1P\').n(\'1S\',\'19\')}5($.1O(4.1V)){4.1V()}16=D};5($("#k").1u(":19")!==D){5(4.26>0&&4.j[4.h].1a!==1L){9 M=4.j[4.h].1a;9 15=$.b.c.1R(M);9 K={\'y\':(15.y-18)+\'z\',\'v\':(15.v-18)+\'z\',\'g\':$(M).g(),\'f\':$(M).f()};5(4.1X){K.25=\'S\'}$("#k").31(D,F).24(K,4.26,4.2S,1q)}t{$("#k").31(D,F).1Z("2N",1q)}}t{1q()}u D};$.b.c.2V=7(){9 o=\'\';o+=\'<6 l="1i"></6>\';o+=\'<6 l="22">\';o+=\'<6 p="I" l="I"><6></6></6>\';o+=\'<6 l="k">\';o+=\'<6 l="2I">\';o+=\'<6 l="V"></6>\';o+=\'<6 l="E"><6 p="E 44"></6><6 p="E 43"></6><6 p="E 42"></6><6 p="E 3V"></6><6 p="E 3U"></6><6 p="E 3O"></6><6 p="E 3M"></6><6 p="E 3P"></6></6>\';o+=\'<a d="2P:;" l="1e"><1p p="1Y" l="2O"></1p></a><a d="2P:;" l="1f"><1p p="1Y" l="2M"></1p></a>\';o+=\'<6 l="q"></6>\';o+=\'<6 l="G"></6>\';o+=\'</6>\';o+=\'</6>\';o+=\'</6>\';$(o).2H("46");$(\'<32 4i="0" 4h="0" 4k="0"><2L><13 p="G" l="4l"></13><13 p="G" l="4o"><6></6></13><13 p="G" l="4n"></13></2L></32>\').2H(\'#G\');5(P){$("#2I").47(\'<17 p="4a" 4e="2J" 2K="0"></17>\');$("#V, .E, .G, .1Y").2Q()}};$.b.c.2R={2Y:10,30:F,1X:D,1W:0,26:0,2X:3G,2W:\'28\',2S:\'28\',2T:\'28\',1I:3B,1x:3v,23:F,2U:0.3,2b:F,1r:F,j:[],2c:2d,2a:2d,1V:2d};$(W).3y(7(){$.b.c.2V()})})(4f);',62,274,'||||opts|if|div|function||var||fn|fancybox|href||height|width|itemCurrent||itemArray|fancy_outer|id|pos|css|html|class|fancy_content||imagePreloader|else|return|top||unbind|left|px|elem|this|Math|false|fancy_bg|true|fancy_title|el|fancy_loading|show|itemOpts|pad|orig_item|length|item|isIE|src|click|hide|round|target|fancy_close|document|title|settings|subGroup||window||td|bind|orig_pos|busy|iframe||visible|orig|position|match|_change_item|fancy_left|fancy_right|_finish|getNumeric|fancy_overlay|value|_set_content|close|img|getViewport|Image|span|__cleanup|centerOnScroll|normal|new|is|loadingFrame|loadingTimer|frameHeight|imageRegExp|50|objNext|keydown|empty|first|style|append|children|rel|frameWidth|image|_proceed_image|undefined|min|resize|isFunction|select|object|getPosition|visibility|scroll|embed|callbackOnClose|zoomSpeedIn|zoomOpacity|fancy_ico|fadeOut||fadeIn|fancy_wrap|overlayShow|animate|opacity|zoomSpeedOut||swing|keyCode|callbackOnShow|hideOnContentClick|callbackOnStart|null|absolute|parseInt|scrollBox|_initialize|bottom|push|substr|indexOf|data|relative|filter|png|browser|_start|matchedGroup|each|removeExpression|itemLeft|itemTop|stopPropagation|_set_navigation|100|prop|auto|setExpression|parentNode|right|_preload_neighbor_images|animateLoading|appendTo|fancy_inner|no|frameborder|tr|fancy_right_ico|fast|fancy_left_ico|javascript|fixPNG|defaults|easingOut|easingChange|overlayOpacity|build|easingIn|zoomSpeedChange|padding|backgroundImage|imageScale|stop|table|clearInterval|showLoading|fancy_frame|||showIframe||complete|load|bmp|jpeg|fancy_div|split|replace|enabled|scrollLeft|className|paddingTop|random|1000|fancy_iframe|name|scrollTop|onload|location|hidden|RegExp|jquery|355|url|extend|ready|version|jpg|425|for|borderLeftWidth|hspace|while|300|paddingLeft|curCSS|borderTopWidth|msie|fancy_ajax|fancy_bg_w|scale|fancy_bg_sw|fancy_bg_nw|setInterval|DXImageTransform|clientWidth|sizingMethod|fancy_bg_s|fancy_bg_se|progid|66|gif|repeat||backgroundRepeat|fancy_bg_e|fancy_bg_ne|fancy_bg_n|none|body|prepend|alt|fancy_img|fancy_bigIframe|60|crop|AlphaImageLoader|scrolling|jQuery|offset|cellpadding|cellspacing|clientHeight|border|fancy_title_left|Microsoft|fancy_title_right|fancy_title_main|get'.split('|'),0,{}))
|
update jquery fancybox from 1.0 to 1.2.1
add fancybox imagefolder incl. fancybox.css