PageSourceSearch

http://shjinbao.com/js/plugin.js

js shjinbao.com collected 2026-09-27 06:16:43 UTC 190,580 bytes, 2,004 lines download raw bytes

1/* main */
2
3function preload(image_src)
4{ var temp=new Image();	temp.src=image_src;	return temp; }
5
6var ticker1=0;
7var ticker2=0;
8var w;
9function resizeIframe() {
10try {
11if (parent.document.getElementById("cid") != null) {
12 parent.document.getElementById("cid").style.height=(document.getElementById("ifrc").offsetHeight + 100) + "px";
13}
14} catch(e) {
15}
16}
17
18function init_content()
19{
20    resizeIframe();
21 ticker1=document.getElementById("ticker1");
22 ticker2=document.getElementById("ticker2");
23 if(ticker1&&ticker2)
24 {
25	w=ticker1.offsetWidth;
26	ticker1.style.left="0px";
27	ticker2.style.left="0px";//String(w)+"px";
28      ticker2.style.visibility="visible";
29	ticker();
30 }
31 init_navi2();
32 if(document.getElementById("navigation"))
33 {
34   if(document.getElementById("navigation").innerHTML.replace(/\s/g,"")=="")
35	{
36		document.getElementById("navigation").style.display="none";
37		if(document.getElementById("leftcolumn"))
38			document.getElementById("leftcolumn").style.display="block";
39	}
40 }
41 if(window.replace_iframe)
42	f_replace_iframe();
43}
44
45var print_ifr=0;
46function f_replace_iframe()
47{	
48	if(!print_ifr)
49	{
50	if(document.getElementsByTagName("iframe").length>0)
51	{
52		if (window.XMLHttpRequest)
53		{
54			xmlhttp=new XMLHttpRequest();
55		}
56		// code for IE
57		else if (window.ActiveXObject)
58		{
59			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
60		}
61		xmlhttp.open("GET", document.getElementsByTagName("iframe")[0].src);
62		xmlhttp.onreadystatechange = function() {
63			print_ifr=document.createElement("div");
64
65			if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {							
66				print_ifr.innerHTML=xmlhttp.responseText;
67				if(print_ifr.getElementsByTagName("body").length>0)
68					print_ifr.innerHTML=print_ifr.getElementsByTagName("body")[0].innerHTML;
69				var pn=document.getElementsByTagName("iframe")[0].parentNode;
70				var ri=document.getElementsByTagName("iframe")[0];
71				pn.replaceChild(print_ifr,ri);
72			}
73		}
74		xmlhttp.send(null);
75	}
76	}
77}
78
79function ticker()
80{
81        t1=parseInt(ticker1.style.left.replace("px",""));
82        t2=parseInt(ticker2.style.left.replace("px",""));
83        if( t1<-w)
84        {
85            t1=w;
86            ticker1.style.left=String(t1)+"px";
87        }
88        if( t2<-2*w)
89        {
90         t2=0;
91         ticker2.style.left=String(t2)+"px";
92        }
93        ticker1.style.left=String(t1-1)+"px";
94        ticker2.style.left=String(t2-1)+"px";
95        setTimeout("ticker()",20);
96}
97function f1()
98{
99popup('http://www.adrivo.com/structured/includes/microsites/mahle_en/startseite.php',792,602,'F1_FS')
100}
101function f1_d()
102{
103popup('http://www.adrivo.com/structured/includes/microsites/mahle/startseite.php',792,602,'F1_FS')
104}
105function jumpPortal() {  Navigation = window.open("https://portal.mahle.com/", "Navigation", "resizable=yes");  Navigation.focus();  } 
106
107function popup(PopURL,x,y,wname) 
108{
109//	var pg=new makePageCoords();
110	var fens=window.open(PopURL,wname,'directories=no,location=no,menubar=no,resizable=no,status=no,scrollbars=no,toolbar=no,width='+x+',height='+y); 
111	fens.focus();
112}
113
114function popup2(PopURL,x,y,wname) 
115{
116	var fens=window.open(PopURL,wname,'directories=no,location=no,menubar=no,resizable=yes,status=no,scrollbars=yes,toolbar=no,width='+x+',height='+y); 
117	fens.focus();
118}
119function go(q)
120{
121	if(document.forms[0].suchfeld.value!="")
122		window.location.href=q+"?open&q="+(document.forms[0].suchfeld.value)+"&#se";
123}
124
125function gosb(o,targets,sbid)
126{
127 if(!o)
128	o=document.getElementById(sbid);
129 if(o.options.selectedIndex==0)
130   return;
131 var t=targets.split(",");
132 var target="";
133 if(o.options.selectedIndex>t.length)
134    target=t[0];
135 else
136    target=t[o.options.selectedIndex-1];
137 if(target=="_top")
138 {
139  var link=o.options[o.options.selectedIndex].value;
140  window.location.href=(link.indexOf("../")==0?"/"+JSBaseReplicaIDx+"/CurrentBaseLink/":"")+link;
141  return;
142 }
143 if(target=="_blank" || target=="_new")
144 {
145  window.open(o.options[o.options.selectedIndex].value,"_blank","location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes");
146  return;
147 }
148  var link=o.options[o.options.selectedIndex].value;
149  window.location.href=(link.indexOf("../")==0?"/"+JSBaseReplicaIDx+"/CurrentBaseLink/":"")+link;
150  return;
151// frames[0].location.href=o.options[o.options.selectedIndex].value;
152}
153
154function switch_l(nl)
155{
156 window.location.href="/"+JSBaseReplicaIDx+"/vwContentByKey/"+fldkey.substring(0,fldkey.length-2)+nl
157}
158
159var currn2=0;
160var n2=new Array();
161var n2t=new Array();
162
163
164function init_navi2()
165{
166	var i=0;
167	var o=document.getElementById("navi2");
168	if(o)
169	{
170	max=o.parentNode.offsetWidth;
171	if(o.offsetWidth>=max)
172	{
173		max-=33;
174		var tmp=0;
175		document.getElementById("arrows").style.visibility="visible";
176		n2[0]=0;
177		n2t[0]=0;
178		var tds=o.getElementsByTagName("td");
179		var j=0;
180		for(i=0;i<tds.length;i++)
181		{
182			tmp+=tds[i].offsetWidth;
183			if(tmp>max)
184			{
185				j++;
186				n2[j]=i;
187				n2t[j]=i;
188				tds[i].style.visibility="hidden";
189				tmp=tds[i].offsetWidth;
190			}
191			if(tds[i].className.indexOf("active")>-1)
192			{
193				currn2=j;
194			}
195		}
196		if(tmp<max)
197		{
198			for(i=n2[j]-1;i>=0;i--)
199			{
200				tmp+=tds[i].offsetWidth;
201
202				if(tmp>max)
203				{
204					n2[j]=i+1;
205					break;
206				}
207			}
208		}
209		move_n2(0);
210	}
211	o.style.visibility="visible";
212
213	}
214}
215
216function move_n2(x)
217{
218	currn2+=x;
219	if(currn2<0)
220		currn2=0;
221	else
222	{
223		if(currn2>=n2.length)
224			currn2=n2.length-1;
225		else
226		{
227			var o=document.getElementById("navi2");
228			var tds=o.getElementsByTagName("td");
229			if(tds.length>0)
230			{
231				o.style.left=-tds[n2[currn2]].offsetLeft;
232				tds[n2t[currn2]].style.visibility="visible";
233				if((currn2+1)<n2.length)
234					tds[n2t[currn2+1]].style.visibility="hidden";
235				o=document.getElementById("arrows");
236				if(currn2==0)
237					o.getElementsByTagName("img")[0].src=o.getElementsByTagName("img")[0].src.replace(/l2/,"l1");
238				else
239					o.getElementsByTagName("img")[0].src=o.getElementsByTagName("img")[0].src.replace(/l1/,"l2");
240				if(currn2+1==n2.length)
241					o.getElementsByTagName("img")[1].src=o.getElementsByTagName("img")[1].src.replace(/r2/,"r1");
242				else
243					o.getElementsByTagName("img")[1].src=o.getElementsByTagName("img")[1].src.replace(/r1/,"r2");
244			}
245		}
246	}
247}
248function languageNavi() {
249    if (document.getElementById("switchLanguage").style.visibility == "visible") {
250        document.getElementById("switchLanguage").style.visibility = "hidden";
251    } else {
252    document.getElementById("switchLanguage").style.visibility = "visible";
253    }
254
255}
256var fs_tags = {td: 1,  p: 1 ,  a: 1 ,  b: 1 , i: 1 , em: 1 , strong: 1 , div: 1 , span: 1 , li: 1 , font: 1 };
257var fs_table1 = new Array("10px", "12px", "14px");
258var fs_table2 = new Array("11px", "13px", "15px");
259
260function changeFS(size) {
261    var ts; var i; var j;
262    var hp = document.getElementById("content");
263    if (!hp)
264        hp = document.getElementById("ifrc");
265    setFS(size, hp.firstChild, fs_table2);
266    hp = hp.getElementsByTagName("div");
267    ts = document.getElementById("btnEdit")
268    if (ts) {
269        ts = ts.getElementsByTagName("a");
270        ts[0].style.fontSize = fs_table1[0];
271    }
272    if(document.getElementById("ifrc"))
273        resizeIframe();
274
275}
276function setFS(size, obj, fs_table) {
277    if (obj.nodeType == 1) {
278        if ((obj.className != "clearfix") && (obj.className != "footer")) {
279            if(fs_tags[obj.nodeName.toLowerCase()])
280                obj.style.fontSize = fs_table[size];
281            if (obj.firstChild) {
282                if (obj.className.indexOf("listing") > -1)
283                    setFS(size, obj.firstChild, fs_table1);
284                else
285                    setFS(size, obj.firstChild, fs_table);
286            }
287        }
288    }
289    if (obj.nextSibling)
290        setFS(size, obj.nextSibling, fs_table);
291}
292
293/**
294 * Cookie plugin
295 *
296 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
297 * Dual licensed under the MIT and GPL licenses:
298 * http://www.opensource.org/licenses/mit-license.php
299 * http://www.gnu.org/licenses/gpl.html
300 *
301 */
302
303/**
304 * Create a cookie with the given name and value and other optional parameters.
305 *
306 * @example $.cookie('the_cookie', 'the_value');
307 * @desc Set the value of a cookie.
308 * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
309 * @desc Create a cookie with all available options.
310 * @example $.cookie('the_cookie', 'the_value');
311 * @desc Create a session cookie.
312 * @example $.cookie('the_cookie', null);
313 * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
314 *       used when the cookie was set.
315 *
316 * @param String name The name of the cookie.
317 * @param String value The value of the cookie.
318 * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
319 * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
320 *                             If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
321 *                             If set to null or omitted, the cookie will be a session cookie and will not be retained
322 *                             when the the browser exits.
323 * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
324 * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
325 * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
326 *                        require a secure protocol (like HTTPS).
327 * @type undefined
328 *
329 * @name $.cookie
330 * @cat Plugins/Cookie
331 * @author Klaus Hartl/[email protected]
332 */
333
334/**
335 * Get the value of a cookie with the given name.
336 *
337 * @example $.cookie('the_cookie');
338 * @desc Get the value of a cookie.
339 *
340 * @param String name The name of the cookie.
341 * @return The value of the cookie.
342 * @type String
343 *
344 * @name $.cookie
345 * @cat Plugins/Cookie
346 * @author Klaus Hartl/[email protected]
347 */
348jQuery.cookie = function(name, value, options) {
349    if (typeof value != 'undefined') { // name and value given, set cookie
350        options = options || {};
351        if (value === null) {
352            value = '';
353            options.expires = -1;
354        }
355        var expires = '';
356        if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
357            var date;
358            if (typeof options.expires == 'number') {
359                date = new Date();
360                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
361            } else {
362                date = options.expires;
363            }
364            expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
365        }
366        // CAUTION: Needed to parenthesize options.path and options.domain
367        // in the following expressions, otherwise they evaluate to undefined
368        // in the packed version for some reason...
369        var path = options.path ? '; path=' + (options.path) : '';
370        var domain = options.domain ? '; domain=' + (options.domain) : '';
371        var secure = options.secure ? '; secure' : '';
372        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
373    } else { // only name given, get cookie
374        var cookieValue = null;
375        if (document.cookie && document.cookie != '') {
376            var cookies = document.cookie.split(';');
377            for (var i = 0; i < cookies.length; i++) {
378                var cookie = jQuery.trim(cookies[i]);
379                // Does this cookie string begin with the name we want?
380                if (cookie.substring(0, name.length + 1) == (name + '=')) {
381                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
382                    break;
383                }
384            }
385        }
386        return cookieValue;
387    }
388};
389
390
391/*
392 * 	loopedSlider 0.5.6 - jQuery plugin
393 *	written by Nathan Searles	
394 *	http://nathansearles.com/loopedslider/
395 *
396 *	Copyright (c) 2009 Nathan Searles (http://nathansearles.com/)
397 *	Dual licensed under the MIT (MIT-LICENSE.txt)
398 *	and GPL (GPL-LICENSE.txt) licenses.
399 *
400 *	Built for jQuery library
401 *	http://jquery.com
402 *	Compatible with jQuery 1.3.2+
403 *
404 */
405
406/*
407 *	markup example for $("#loopedSlider").loopedSlider();
408 *
409 *	<div id="loopedSlider">	
410 *		<div class="container">
411 *			<div class="slides">
412 *				<div><img src="01.jpg" alt="" /></div>
413 *				<div><img src="02.jpg" alt="" /></div>
414 *				<div><img src="03.jpg" alt="" /></div>
415 *				<div><img src="04.jpg" alt="" /></div>
416 *			</div>
417 *		</div>
418 *		<a href="#" class="previous">previous</a>
419 *		<a href="#" class="next">next</a>	
420 *	</div>
421 *
422*/
423
424if(typeof jQuery != 'undefined') {
425	jQuery(function($) {
426		$.fn.extend({
427			loopedSlider: function(options) {
428				var settings = $.extend({}, $.fn.loopedSlider.defaults, options);
429			
430				return this.each(
431					function() {
432					if($.fn.jquery < '1.3.2') {return;}
433					var $t = $(this);
434					var o = $.metadata ? $.extend({}, settings, $t.metadata()) : settings;
435					
436					var distance = 0;
437					var times = 1;
438					var slides = $(o.slides,$t).children().size();
439					var width = $(o.slides,$t).children().outerWidth();
440					var position = 0;
441					var active = false;
442					var number = 0;
443					var interval = 0;
444					var restart = 0;
445					var pagination = $("."+o.pagination+" li a",$t);
446
447					if(o.addPagination && !$(pagination).length){
448						var buttons = slides;
449						$($t).append("<ul class="+o.pagination+">");
450						$(o.slides,$t).children().each(function(){
451							if (number<buttons) {
452								$("."+o.pagination,$t).append("<li><a rel="+(number+1)+" href=\"#\" >"+(number+1)+"</a></li>");
453								number = number+1;
454							} else {
455								number = 0;
456								return false;
457							}
458							$("."+o.pagination+" li a:eq(0)",$t).parent().addClass("active");
459						});
460						pagination = $("."+o.pagination+" li a",$t);
461					} else {
462						$(pagination,$t).each(function(){
463							number=number+1;
464							$(this).attr("rel",number);
465							$(pagination.eq(0),$t).parent().addClass("active");
466						});
467					}
468
469					if (slides===1) {
470						$(o.slides,$t).children().css({position:"absolute",left:position,display:"block"});
471						return;
472					}
473
474					$(o.slides,$t).css({width:(slides*width)});
475
476					$(o.slides,$t).children().each(function(){
477						$(this).css({position:"absolute",left:position,display:"block"});
478						position=position+width;
479					});
480
481					$(o.slides,$t).children(":eq("+(slides-1)+")").css({position:"absolute",left:-width});
482
483					if (slides>3) {
484						$(o.slides,$t).children(":eq("+(slides-1)+")").css({position:"absolute",left:-width});
485					}
486
487					if(o.autoHeight){autoHeight(times);}
488
489					$(".next",$t).click(function(){
490						if(active===false) {
491							animate("next",true);
492							if(o.autoStart){
493								if (o.restart) {autoStart();}
494								else {clearInterval(sliderIntervalID);}
495							}
496						} return false;
497					});
498
499					$(".previous",$t).click(function(){
500						if(active===false) {	
501							animate("prev",true);
502							if(o.autoStart){
503								if (o.restart) {autoStart();}
504								else {clearInterval(sliderIntervalID);}
505							}
506						} return false;
507					});
508
509					if (o.containerClick) {
510						$(o.container,$t).click(function(){
511							if(active===false) {
512								animate("next",true);
513								if(o.autoStart){
514									if (o.restart) {autoStart();}
515									else {clearInterval(sliderIntervalID);}
516								}
517							} return false;
518						});
519					}
520
521					$(pagination,$t).click(function(){
522						if ($(this).parent().hasClass("active")) {return false;}
523						else {
524							times = $(this).attr("rel");
525							$(pagination,$t).parent().siblings().removeClass("active");
526							$(this).parent().addClass("active");
527							animate("fade",times);
528							if(o.autoStart){
529								if (o.restart) {autoStart();}
530								else {clearInterval(sliderIntervalID);}
531							}
532						} return false;
533					});
534
535					if (o.autoStart) {
536						sliderIntervalID = setInterval(function(){
537							if(active===false) {animate("next",true);}
538						},o.autoStart);
539						function autoStart() {
540							if (o.restart) {
541							clearInterval(sliderIntervalID);
542							clearInterval(interval);
543							clearTimeout(restart);
544								restart = setTimeout(function() {
545									interval = setInterval(	function(){
546										animate("next",true);
547									},o.autoStart);
548								},o.restart);
549							} else {
550								sliderIntervalID = setInterval(function(){
551									if(active===false) {animate("next",true);}
552								},o.autoStart);
553							}
554						};
555					}
556
557					function current(times) {
558						if(times===slides+1){times = 1;}
559						if(times===0){times = slides;}
560						$(pagination,$t).parent().siblings().removeClass("active");
561						$("[rel='" + (times) + "']",$t).parent().addClass("active");
562					};
563
564					function autoHeight(times) {
565						if(times===slides+1){times=1;}
566						if(times===0){times=slides;}	
567						var getHeight = $(o.slides,$t).children(":eq("+(times-1)+")",$t).outerHeight();
568						$(o.container,$t).animate({height: getHeight},o.autoHeight);					
569					};		
570
571					function animate(dir,clicked){	
572						active = true;	
573						switch(dir){
574							case "next":
575								times = times+1;
576								distance = (-(times*width-width));
577								current(times);
578								if(o.autoHeight){autoHeight(times);}
579								if(slides<3){
580									if (times===3){$(o.slides,$t).children(":eq(0)").css({left:(sli
580des*width)});}
581									if (times===2){$(o.slides,$t).children(":eq("+(slides-1)+")").css({position:"absolute",left:width});}
582								}
583								$(o.slides,$t).animate({left: distance}, o.slidespeed,function(){
584									if (times===slides+1) {
585										times = 1;
586										$(o.slides,$t).css({left:0},function(){$(o.slides,$t).animate({left:distance})});							
587										$(o.slides,$t).children(":eq(0)").css({left:0});
588										$(o.slides,$t).children(":eq("+(slides-1)+")").css({ position:"absolute",left:-width});				
589									}
590									if (times===slides) $(o.slides,$t).children(":eq(0)").css({left:(slides*width)});
591									if (times===slides-1) $(o.slides,$t).children(":eq("+(slides-1)+")").css({left:(slides*width-width)});
592									active = false;
593								});					
594								break; 
595							case "prev":
596								times = times-1;
597								distance = (-(times*width-width));
598								current(times);
599								if(o.autoHeight){autoHeight(times);}
600								if (slides<3){
601									if(times===0){$(o.slides,$t).children(":eq("+(slides-1)+")").css({position:"absolute",left:(-width)});}
602									if(times===1){$(o.slides,$t).children(":eq(0)").css({position:"absolute",left:0});}
603								}
604								$(o.slides,$t).animate({left: distance}, o.slidespeed,function(){
605									if (times===0) {
606										times = slides;
607										$(o.slides,$t).children(":eq("+(slides-1)+")").css({position:"absolute",left:(slides*width-width)});
608										$(o.slides,$t).css({left: -(slides*width-width)});
609										$(o.slides,$t).children(":eq(0)").css({left:(slides*width)});
610									}
611									if (times===2 ) $(o.slides,$t).children(":eq(0)").css({position:"absolute",left:0});
612									if (times===1) $(o.slides,$t).children(":eq("+ (slides-1) +")").css({position:"absolute",left:-width});
613									active = false;
614								});
615								break;
616							case "fade":
617								times = [times]*1;
618								distance = (-(times*width-width));
619								current(times);
620								if(o.autoHeight){autoHeight(times);}
621								$(o.slides,$t).children().fadeOut(o.fadespeed, function(){
622									$(o.slides,$t).css({left: distance});
623									$(o.slides,$t).children(":eq("+(slides-1)+")").css({left:slides*width-width});
624									$(o.slides,$t).children(":eq(0)").css({left:0});
625									if(times===slides){$(o.slides,$t).children(":eq(0)").css({left:(slides*width)});}
626									if(times===1){$(o.slides,$t).children(":eq("+(slides-1)+")").css({ position:"absolute",left:-width});}
627									$(o.slides,$t).children().fadeIn(o.fadespeed);
628									active = false;
629								});
630								break; 
631							default:
632								break;
633							}					
634						};
635					}
636				);
637			}
638		});
639		$.fn.loopedSlider.defaults = {
640			container: ".slidescontainer", //Class/id of main container. You can use "#container" for an id.
641			slides: ".slides", //Class/id of slide container. You can use "#slides" for an id.
642			pagination: "bannernavigation", //Class name of parent ul for numbered links. Don't add a "." here.
643			containerClick: true, //Click slider to goto next slide? true/false
644			autoStart: 0, //Set to positive number for true. This number will be the time between transitions.
645			restart: 0, //Set to positive number for true. Sets time until autoStart is restarted.
646			slidespeed: 500, //Speed of slide animation, 1000 = 1second.
647			fadespeed: 200, //Speed of fade animation, 1000 = 1second.
648			autoHeight: 0, //Set to positive number for true. This number will be the speed of the animation.
649			addPagination: false //Add pagination links based on content? true/false
650		};
651	});
652}
653
654/* jQuery DisplayData */
655(function () {
656	
657	jQuery.fn.displayData = function (data, options) {
658		var self = this;
659		var render = function (bereiche, orte, rows, column, bool, datas, translations) {
660			self.append("<table border=0 id=\"displayDataTable\" cellspacing=0 cellpadding=0 width=100%>");
661
662			// header
663			var ret = "<tr><td>&nbsp;</td>";			
664			for (var x in orte) {
665				var ort=orte[x];
666				ort = ort.replace("/","");
667				ort = ort.replace(" ","");
668				ort = ort.toLowerCase();
669				ort = ort.replace(" ","");
670				
671					if(options.useImage) { 
672						ret = ret + "<td valign=bottom class=\"columnHead borderRight\"><img width=25 src=\"/media/global/system/matrix-images/" + ort.replace(/ß/g,"ss") + ".png\"></td>"; // orte[x]
673					} else {
674						ret = ret + "<td valign=bottom class=\"columnHead borderRight\">" + orte[x] + "</td>";
675					}
676			}
677			$("#displayDataTable").append(ret + "</tr>");
678
679			// die einzelnen Bereiche
680			for ( var x in bereiche) {
681				// Bereich sortieren
682				bereiche[x] = _.sortBy(bereiche[x], function(num) {
683					return num[options.rows];
684				});
685				
686				// der spacer
687				var colspan = Number(orte.length);
688				var translation = translations[x]?translations[x]:x;
689				var ret1 = "<tr><th class=\"rowSpacer borderRight\" >"
690						+ translation + "</th>";
691				for (i = 0; i < colspan; i++)
692					ret1 = ret1
693							+ "<td class=\"rowSpacer borderRight\">&nbsp;</td>";
694				$("#displayDataTable").append(ret1 + "</tr>");
695
696				// unique Array der Berufe des Bereiches
697				var berufe = _.unique(_.pluck(bereiche[x], rows))
698
699				// zeilen
700				colNum = 0;
701				for ( var y in berufe) {
702					colClass = colNum % 2 == 0 ? "even" : "odd";
703					//only need this to get the url
704					
705					var temp = _.find(bereiche[x],function(num){ return num[options.rows] == berufe[y]});
706					
707					ret = "<tr class=\"" + colClass + "\"><td>";
708					if(self.attr("jUrl") != "") {
709						ret += "<a href=\""+self.attr("jUrl") + temp.id+"\" class=\"noArrow\">";
710					}
711					ret += berufe[y]
712					if(self.attr("jUrl") != "") {
713						ret += "</a>";
714					}
715					ret += "</td>";
716					
717					// spalten
718					for ( var e in orte) {
719
720						var ret3 = "<td class=\"cell borderRight\">&nbsp;</td>";
721						for ( var d in datas) {
722							if (datas[d][column] == orte[e]
723									&& datas[d][rows] == berufe[y]) {
724								var q = datas[d][bool] == "1" ? 1 : 2;
725								var link = "";
726								//http-URL
727								if(datas[d]["mail"].substring(0,7).toLowerCase()=="http://" || datas[d]["mail"].substring(0,8).toLowerCase()=="https://") { 
728									var z = q;
729									if(datas[d].Score==1) {
730										link =" href=\""+datas[d]["mail"]+"\" target=\"new\"";
731										z=3;
732									}
733									
734									link = "<a " + link + " class=\"noArrow tooltip\" title=\""
735										+ options["title" + z]
736										+ "\"><img src=\""
737										+ options["img" + q] + "\" alt=\""
738										+ options["title" + z] + "\"></a>";
739									
740								} else { //Standard Cookie Contact link
741									if(datas[d].Score==1) {
742										link =" href=\""+self.attr("cUrl")+"\"";
743									}
744									link = "<a "+ link+ " class=\"noArrow tooltip contloclink\" title=\""
745											+ options["title" + q]
746											+ "\" rel=\"Schoolleavers#"+orte[e]+"\"><img src=\""
747											+ options["img" + q] + "\" alt=\""
748											+ options["title" + q] + "\"></a>";
749								}
750								ret3 = "<td class=\"cell borderRight\">" + link
751										+ "</td>";
752							}
753						}
754						ret = ret + ret3;
755
756					}
757					$("#displayDataTable").append(ret + "</tr>");
758
759					colNum++;
760				}
761			}
762			//console.log($("#displayDataTable"));
763		}
764		// datahandling
765		if (this.attr("url")) {
766			var elm = this;
767			$.get(unescape(this.attr("url")), function(dat) {
768				var daten1 = dat;
769				var daten2 = jQuery.parseJSON(elm.attr("data-data"));
770				daten2["result"] = daten1;
771				init([daten2]);
772			});
773		} 
774
775		function init(dat) {
776			
777			// Options mapping
778			options={};
779			options.groupBy= dat[0].groupBy;
780			options.column = dat[0].column;
781			options.rows = dat[0].rows;
782			options.img2 = dat[0].img2;
783			options.img1 = dat[0].img1;
784			options.title1 = dat[0].title1;
785			options.title2 = dat[0].title2;
786			options.title3 = dat[0].title3;
787			options.bool = dat[0].bool;
788			options.useImage = dat[0].useImage;
789			options.tag = dat[0].tag;
790			options.translations = dat[0].translations||[];
791			var daten = dat[0]["result"];
792			
793			var orte = _.unique(_.pluck(daten, options.column));
794			orte = orte.sort();
795			// Stuttgart nach vorne
796			if(options.tag) {
797				switch(options.tag) {
798					case "stuttgartnachvorne":
799						for ( var t in orte) {
800							orte[t] == "Stuttgart" ? orte.splice(t, 1) : "";
801						}
802						orte.unshift("Stuttgart");
803						break;
804					case "jahreszahlhinten":
805						orte = orte.sort(function(a,b) {
806							//die Jahreszahl zum sortieren nach hinten packen
807							var transform = function(x) {
808								var arr = x.replace("<br>"," ").split(" ");
809								var jahresZahl = arr[arr.length-1];
810								delete arr[arr.length-1];
811								return jahresZahl + " " + arr.join(" ");
812							}
813							if(transform(a) > transform(b)) return 1;
814							if(transform(a) < transform(b)) return -1
815							return 0;
816						});
817						break;
818				}
819			}
820			var bereiche = _.sortBy(daten, function(num) {
821				var bereichsKriterium = num[options.groupBy];
822				if(options.translations[bereichsKriterium]) return options.translations[bereichsKriterium];
823				return bereichsKriterium;
824			});
825			bereiche = _.groupBy(bereiche, options.groupBy);
826			// dat = _.sortBy(dat,function(num) { return num["Title"]; })
827			render(bereiche, orte, options.rows, options.column, options.bool,
828					daten, options.translations);
829
830			$("#displayDataTable").scrollableTable({
831					scrollY:false,
832					scrollX:true,
833					beginX:1,
834					beginY:1,
835					steps:10,
836					navigationText:dat[0].navigationText
837				});
838			$("a.tooltip").tooltip();
839		
840		}
841		
842	}
843	
844	// Helper functions from underscore.js
845	var _ = {};
846	_.sortBy = function(obj, iterator, context) {
847		return _.pluck(_.map(obj, function(value, index, list) {
848			return {
849				value : value,
850				criteria : iterator.call(context, value, index, list)
851			};
852		}).sort( function(left, right) {
853			var a = left.criteria, b = right.criteria;
854			return a < b ? -1 : a > b ? 1 : 0;
855		}), 'value');
856	};
857	// Convenience version of a common use case of `map`: fetching a property.
858	_.pluck = function(obj, key) {
859		return _.map(obj, function(value) {
860			return value[key];
861		});
862	};
863	// Return the results of applying the iterator to each element.
864	// Delegates to **ECMAScript 5**'s native `map` if available.
865	_.map = function(obj, iterator, context) {
866		var results = [];
867		if (obj == null)
868			return results;
869		// if (nativeMap && obj.map === nativeMap) return obj.map(iterator,
870		// context);
871		_.each(obj, function(value, index, list) {
872			results[results.length] = iterator
873					.call(context, value, index, list);
874		});
875		if (obj.length === +obj.length)
876			results.length = obj.length;
877		return results;
878	};
879	// Groups the object's values by a criterion. Pass either a string attribute
880	// to group by, or a function that returns the criterion.
881	_.groupBy = function(obj, val) {
882		var result = {};
883		var iterator = _.isFunction(val) ? val : function(obj) {
884			return obj[val];
885		};
886		_.each(obj, function(value, index) {
887			var key = iterator(value, index);
888			(result[key] || (result[key] = [])).push(value);
889		});
890		return result;
891	};
892	_.isFunction = function(obj) {
893		return false; // this.toString.call(obj) == '[object Function]';
894	};
895
896	_.each = function(obj, iterator, context) {
897		if (obj == null)
898			return;
899
900		if (obj.length === +obj.length) {
901			for ( var i = 0, l = obj.length; i < l; i++) {
902				if (i in obj && iterator.call(context, obj[i], i, obj) === breaker)
903					return;
904			}
905		} else {
906			for ( var key in obj) {
907				if (_.has(obj, key)) {
908					if (iterator.call(context, obj[key], key, obj) === breaker)
909						return;
910				}
911			}
912		}
913	};
914	_.has = function(obj, key) {
915		return hasOwnProperty.call(obj, key);
916	};
917	var breaker = {};
918	_.uniq = _.unique = function(array, isSorted, iterator) {
919		var initial = iterator ? _.map(array, iterator) : array;
920		var result = [];
921		_.reduce(initial, function(memo, el, i) {
922			if (0 == i
923					|| (isSorted === true ? _.last(memo) != el : !_.include(
924							memo, el))) {
925				memo[memo.length] = el;
926				result[result.length] = array[i];
927			}
928			return memo;
929		}, []);
930		return result;
931	};
932	_.reduce = function(obj, iterator, memo, context) {
933		var initial = arguments.length > 2;
934		if (obj == null)
935			obj = [];
936
937		_.each(obj, function(value, index, list) {
938			if (!initial) {
939				memo = value;
940				initial = true;
941			} else {
942				memo = iterator.call(context, memo, value, index, list);
943			}
944		});
945		if (!initial)
946			throw new TypeError('Reduce of empty array with no initial value');
947		return memo;
948	};
949
950	_.include = function(obj, target) {
951		var found = false;
952		if (obj == null)
953			return found;
954		// if (nativeIndexOf && obj.indexOf === nativeIndexOf) return
955		// obj.indexOf(target) != -1;
956		found = any(obj, function(value) {
957			return value === target;
958		});
959		return found;
960	};
961
962	_.last = function(array, n, guard) {
963		if ((n != null) && !guard) {
964			return slice.call(array, Math.max(array.length - n, 0));
965		} else {
966			return array[array.length - 1];
967		}
968	};
969
970	var any = _.some = _.any = function(obj, iterator, context) {
971		iterator || (iterator = _.identity);
972		var result = false;
973		if (obj == null)
974			return result;
975
976		_.each(obj,
977				function(value, index, list) {
978					if (result
979							|| (result = iterator.call(context, value, index,
980									list)))
981						return breaker;
982				});
983		return !!result;
984	};
985	_.find = function(obj, iterator, context) {
986		var result;
987		any(obj, function(value, index, list) {
988			if (iterator.call(context, value, index, list)) {
989				result = value;
990				return true;
991			}
992		});
993		return result;
994	};
995
996	_.filter = _.select = function(obj, iterator, context) {
997		var results = [];
998		if (obj == null)
999			return results;
1000
1001		_.each(obj, function(value, index, list) {
1002			if (iterator.call(context, value, index, list))
1003				results[results.length] = value;
1004		});
1005		return results;
1006	};
1007
1008	jQuery.fn.tooltip = function() {
1009		xOffset = 10;
1010		yOffset = 20;
1011
1012		this.hover( function(e) {
1013			this.t = this.title;
1014			this.title = "";
1015			$("body").append("<div id='tooltip'>" + this.t + "</div>");
1016			$("#tooltip").css("top", (e.pageY - xOffset) + "px").css("left",
1017					(e.pageX + yOffset) + "px").css("position", "absolute")
1018					.fadeIn("fast");
1019		}, function() {
1020			this.title = this.t;
1021			$("#tooltip").remove();
1022		});
1023		this.mousemove( function(e) {
1024			$("#tooltip").css("top", (e.pageY - xOffset) + "px").css("left",
1025					(e.pageX + yOffset) + "px");
1026		});
1027	};
1028	
1029
1030})(jQuery);
1031(function() {
1032
1033	jQuery.fn.scrollableTable = function(options) {
1034		var self = this;
1035
1036		this.rowCount = self.children("tbody").children("tr").length;
1037		this.colCount = self.children("tbody").children("tr:first").children("td").length;
1038		this.beginX = options.beginX;
1039		this.beginY = options.beginY;
1040		this.current = options.beginX;
1041		this.steps = options.steps;
1042		this.navigationText = options.navigationText || "";
1043		this.currentPage = -1;
1044		this.pages = Math.round((this.colCount-this.beginY)/this.steps);
1045		
1046		this.arrow1 = "/media/system-files/img/arrow3.png";
1047		this.arrow2 = "/media/system-files/img/arrow4.png";
1048
1049		
1050		var scrollX = this.scrollX = function(direction) {
1051			$(".scrollableArrows").hide();
1052			hideAll();
1053			var from, to;
1054			switch (direction) {
1055			case "right":
1056				from = this.current;
1057				to = (this.current + this.steps);
1058				page = self.currentPage+1;
1059				break;
1060			case "left":
1061				from = (this.current - (2 * this.steps));
1062				to = (this.current - this.steps);
1063				page = self.currentPage-1;
1064				break;
1065			}
1066			self.currentPage = page;
1067			// to hide arrows
1068			this.hideLeft = false;
1069			this.hideRight = false;
1070			// if(to >= (this.colCount)) this.hideRight = true;
1071			// if(to <= (this.beginX+this.steps)) this.hideLeft = true;
1072			if(page <= 0) { this.hideLeft = true;page=0;self.currentPage=0; }
1073			if(page == self.pages) { this.hideRight = true;  }
1074
1075			if((this.colCount - this.beginX) < this.steps) { this.hideLeft = true; this.hideRight = true; }
1076
1077			if (from < this.beginX) {
1078				var mod = (this.colCount - this.beginX) % this.steps;
1079				var from = (this.colCount - this.beginX - this.steps) + mod;
1080				var to = from + this.steps;
1081			}
1082
1083			if (from > this.colCount) {
1084				from = this.beginX;
1085				to = this.steps + 1;
1086			}
1087			
1088			var x = 0;
1089			/*
1090			 * for (i = from; i < to; i++) { $(".st" + i).fadeIn("slow"); }
1091			 * this.current = i;
1092			 */
1093			$(".st" + self.currentPage).show(); //("slow");
1094		}
1095		function hideAll() {
1096			var x = 0;
1097			for (i = options.beginX; i < self.colCount; i++) {
1098				$(".st" + x).hide();
1099				if (i >= self.steps) x++;
1100			}
1101		}
1102		function generateX() {
1103			var x = 0;
1104			var i = 0;
1105			var elm = self.children("tbody") || self;
1106
1107			elm.children("tr").each(function() {
1108				$(this).children().each(function() {
1109					if(i>=self.beginX) {
1110						$(this).addClass("st" + x);
1111						if(i%self.steps==0) x++;
1112					}
1113					i++;
1114				});
1115				x = 0;
1116				i = 0;
1117			});
1118		}
1119		function generateArrows() {
1120			var sel = self;
1121			var height = self.outerHeight();
1122			var w1 = 14; // width of the arrows
1123			
1124			var left = document.createElement("DIV");
1125			$(left).text(" ").css({
1126				"position" : "absolute",
1127				"verticalAlign" : "middle",
1128				"height" : height + "px",
1129				"background" : " no-repeat center left",
1130				"backgroundImage" : "url('" + self.arrow1 + "')",
1131				"width" : w1,
1132				"cursor" : "pointer"
1133
1134			}).click(function() {
1135				window.setTimeout(sel.rePositionArrows, 100);
1136				sel.scrollX("left");
1137			}).attr("id", "arrowLeft").attr("class", "scrollableArrows");
1138
1139			var right = document.createElement("DIV");
1140			$(right).text(" ").css({
1141				"position" : "absolute",
1142				"verticalAlign" : "middle",
1143				"height" : height + "px",
1144				"background" : "no-repeat right ",
1145				"backgroundImage" : "url('" + self.arrow1 + "')",
1146				"width" : w1,
1147				"cursor" : "pointer"
1148			}).click(function() {
1149				window.setTimeout(sel.rePositionArrows, 100);
1150				sel.scrollX("right");
1151			}).attr("id", "arrowRight").attr("class", "scrollableArrows");
1152			
1153			//text layer
1154			var textLayer = document.createElement("A");
1155			$(textLayer).text(" ").css({
1156				"position" : "absolute",
1157				"font-wight":"bold",
1158				"font-size":"10px",
1159				"line-height":"32px",
1160				"margin":"0 5px",
1161				"white-space": "nowrap"
1162			}).attr("id", "textLayer").attr("class", "noArrow textLayer").html(self.navigationText);
1163			
1164			self.wrap("<div id=\"tableWrapper\" style=\"padding-right:10px\">");
1165
1166			$("#tableWrapper").prepend(left).prepend(textLayer).prepend(right);
1167			
1168			$(".scrollableArrows").hover(function() {
1169				$(this).css("backgroundImage", "url('" + sel.arrow2 + "')");
1170			}, function() {
1171				$(this).css("backgroundImage", "url('" + sel.arrow1 + "')");
1172			});
1173			$(".scrollableArrows").hide();
1174			if (self.hideLeft)
1175				$("#arrowRight").hide();
1176			if (self.hideRight)
1177				$("#arrowLeft").show();
1178			if (self.hideLeft && self.hideRight)
1179				$(".scrollableArrows").hide(); //fadeIn();
1180			//if (!self.hideLeft && !self.hideRight)
1181				//$(".scrollableArrows").fadeIn(); //fadeOut();
1182			// change width of table for right arrow
1183			//self.css("width",self.width() - w1);
1184			rePositionArrows();
1185		}
1186		var rePositionArrows = this.rePositionArrows = function() {
1187			var selff = self;
1188			var sel = $("#displayDataTable").parent();
1189			var height = sel.outerHeight();
1190			var l = document.getElementById(sel.attr("id")).offsetLeft;
1191			//breite der tabelle
1192			var b = document.getElementById(sel.attr("id")).offsetWidth;
1193			//Breite der ersten Zelle
1194			var b1 = $("#" + sel.attr("id")).find("td").eq(0).width();
1195			var w1 = 14; // width of the arrows
1196			var h1 = 32; //height of arrow
1197			var puffer = 3;
1198			// especially for my lovely friend IE
1199			if(document.getElementById(self.attr("id")).getBoundingClientRect()) {
1200				var obj = document.getElementById(self.attr("id")).getBoundingClientRect();
1201				var l = obj.left;
1202				var b = obj.right - obj.left;
1203			}
1204			l = l + $(window).scrollLeft();
1205			//rkurz: 2013-03-28: Anpassung der Pfeilpositionen
1206			var zweiteZeile = $("#displayDataTable").children("tbody").children("tr")[1];
1207			var positionDerZweitenZeile = zweiteZeile.offsetTop;
1208			var hoeheDerZweitenZeile = zweiteZeile.offsetHeight;
1209			var differenzZeilenPfeilHoehe = positionDerZweitenZeile + ((hoeheDerZweitenZeile - h1)/2);
1210			//vorher l + b
1211			$("#arrowRight").css("left", l + b - w1 - puffer).css("background-position","right " + differenzZeilenPfeilHoehe + "px");
1212			
1213			var textLayer = $("#textLayer");
1214			textLayer.css("left", l + b - w1 - (5*puffer) - textLayer.width()).css("padding-top", differenzZeilenPfeilHoehe + "px");
1215			
1216			//vorher l + b1 - w1 - puffer
1217			$("#arrowLeft").css("left", l + b - w1 - (5*puffer) - textLayer.width() - w1).css("background-position","left " + differenzZeilenPfeilHoehe + "px");
1218			
1219			if (self.hideLeft)
1220				$("#arrowRight").show();
1221			if (self.hideRight)
1222				$("#arrowLeft").show();
1223			if (!self.hideLeft && !self.hideRight)
1224				$(".scrollableArrows").show(); //fadeOut();
1225			if (self.hideLeft && self.hideRight) {
1226				 $(".scrollableArrows").hide(); 
1227				 textLayer.hide();
1228			}
1229			if (!self.hideLeft && !self.hideRight)
1230				$(".scrollableArrows").fadeIn(); 
1231			
1232			//check click functionallity dependent on number of pages
1233			if(self.pages < 2) {
1234				textLayer.css({"color":"#1E2A63","cursor":"pointer"}).unbind("click").click(function() {
1235					if(self.hideLeft && !self.hideRight) {
1236						$("#arrowRight").trigger("click");
1237						return;
1238					} 
1239					if(self.hideRight && !self.hideLeft) {
1240						$("#arrowLeft").trigger("click");
1241					}
1242					
1243				});
1244			}
1245			setCurrentPager();
1246		}
1247		var pages = this.colCount / this.steps;
1248		//var currentPage = this.currentPage = 1;
1249		
1250		this.goTo = function(i) {
1251			var current = Number(self.currentPage + 1);
1252			var selected = Number(i);
1253			//wir wollen zur�ck
1254			if(current > selected) {
1255				for(i=0;i<(current-selected);i++) {
1256					$("#arrowLeft").trigger("click");
1257				}
1258			}
1259			if(current < selected) {
1260				for(i=0;i<(selected-current);i++) {
1261					$("#arrowRight").trigger("click");
1262				}
1263			}
1264		}
1265		
1266		var generatePager = function() {
1267			var sel = self;
1268			var table = $("#displayDataTable");
1269			
1270			table.children("tbody").after("<tfoot><tr><td colspan=\"" + (sel.steps+1) + "\"><div id=\"displayDataFooter\"></div></td></tr></tfoot>");
1271			
1272			var trenner = "<span>&nbsp;|&nbsp;</span>";
1273			for(var i = 0;i<=sel.pages;i++) {
1274				$("<a class=\"noArrow pagerLink\">" + (i+1) + "</a>").click(function() {
1275					sel.goTo($(this).text());
1276				}).appendTo("#displayDataFooter");
1277				if(i<(sel.pages)) $(trenner).appendTo("#displayDataFooter");
1278			}
1279			setCurrentPager();
1280			$("#displayDataFooter").css({"text-align":"center"});
1281		}
1282		
1283		setCurrentPager = function() {
1284			$(".pagerLink").css({"color":"#1E2A63","cursor":"pointer","font-weight":"normal","text-decoration":"none"});
1285			$(".pagerLink").eq(self.currentPage).css({"font-weight":"bold","text-decoration":"underline"});
1286		}
1287		
1288		function generateMenu() {
1289			var sel = self;
1290			var css = {
1291				"cursor" : "pointer",
1292				"color" : "#fff",
1293				"fontWeight" : "bold",
1294				"padding" : "0 5px 0 5px"
1295			}
1296			var b1 = document.createElement("span");
1297			$(b1).text("<<").click(function() {
1298				sel.scrollX("left");
1299			}).css(css);
1300			var b2 = document.createElement("span");
1301			$(b2).text(">>").click(function() {
1302				sel.scrollX("right");
1303			}).css({
1304				"float" : "right"
1305			}).css(css);
1306
1307			var div = document.createElement("div");
1308			$(div).css({
1309				"backgroundColor" : "silver"
1310			});
1311			$(div).prepend(b1).prepend(b2);
1312			div2 = $(div).clone(true);
1313			self.before($(div));
1314			self.after(div2);
1315		}
1316		//nur 25px wenn auch mehr als 2 Spalten in der Tabelle sind
1317		if($("#displayDataTable").children("tr:first > td").length > 2) {
1318			$(".columnHead").css({width:"25px"});
1319		}
1320		// generateMenu();
1321		if (options.scrollX)
1322			generateX();
1323		this.scrollX("right");
1324		generateArrows();
1325		$(document).load(function() {
1326			rePositionArrows();
1327		});
1328		generatePager();
1329		$(window).resize(rePositionArrows);
1330		window.setTimeout(rePositionArrows, 1000);
1331	}
1332
1333})(jQuery);
1334
1335/* ------------------------------------------------------------------------
1336	Class: prettyPhoto
1337	Use: Lightbox clone for jQuery
1338	Author: Stephane Caron (http://www.no-margin-for-errors.com)
1339	Version: 3.0.3
1340------------------------------------------------------------------------- */
1341
1342(function($){$.prettyPhoto={version:'3.0.2'};$.fn.prettyPhoto=function(pp_settings){pp_settings=jQuery.extend({animation_speed:'fast',slideshow:false,autoplay_slideshow:false,opacity:0.80,show_title:true,allow_resize:true,default_width:500,default_height:344,counter_separator_label:'/',theme:'facebook',hideflash:false,wmode:'opaque',autoplay:true,modal:false,overlay_gallery:true,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},markup:'<div class="pp_pic_holder"> \
1343      <div class="ppt">&nbsp;</div> \
1344      <div class="pp_top"> \
1345       <div class="pp_left"></div> \
1346       <div class="pp_middle"></div> \
1347       <div class="pp_right"></div> \
1348      </div> \
1349      <div class="pp_content_container"> \
1350       <div class="pp_left"> \
1351       <div class="pp_right"> \
1352        <div class="pp_content"> \
1353         <div class="pp_loaderIcon"></div> \
1354         <div class="pp_fade"> \
1355          <a href="#" class="pp_expand" title="Expand the image">Expand</a> \
1356          <div class="pp_hoverContainer"> \
1357           <a class="pp_next" href="#">next</a> \
1358           <a class="pp_previous" href="#">previous</a> \
1359          </div> \
1360          <div id="pp_full_res"></div> \
1361          <div class="pp_details clearfix"> \
1362           <p class="pp_description"></p> \
1363           <a class="pp_close" href="#">Close</a> \
1364           <div class="pp_nav"> \
1365            <a href="#" class="pp_arrow_previous">Previous</a> \
1366            <p class="currentTextHolder">0/0</p> \
1367            <a href="#" class="pp_arrow_next">Next</a> \
1368           </div> \
1369          </div> \
1370         </div> \
1371        </div> \
1372       </div> \
1373       </div> \
1374      </div> \
1375      <div class="pp_bottom"> \
1376       <div class="pp_left"></div> \
1377       <div class="pp_middle"></div> \
1378       <div class="pp_right"></div> \
1379      </div> \
1380     </div> \
1381     <div class="pp_overlay"></div>',gallery_markup:'<div class="pp_gallery"> \
1382        <a href="#" class="pp_arrow_previous">Previous</a> \
1383        <ul> \
1384         {gallery} \
1385        </ul> \
1386        <a href="#" class="pp_arrow_next">Next</a> \
1387       </div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',inline_markup:'<div class="pp_inline clearfix">{content}</div>',custom_markup:''},pp_settings);var matchedObjects=this,percentBased=false,pp_dimensions,pp_open,pp_contentHeight,pp_contentWidth,pp_containerHeight,pp_containerWidth,windowHeight=$(window).height(),windowWidth=$(window).width(),pp_slideshow;doresize=true,scroll_pos=_get_scroll();$(window).unbind('resize.prettyphoto').bind('resize.prettyphoto',function(){_center_overlay();_resize_overlay();});if(pp_settings.keyboard_shortcuts){$(document).unbind('keydown.prettyphoto').bind('keydown.prettyphoto',function(e){if(typeof $pp_pic_holder!='undefined'){if($pp_pic_holder.is(':visible')){switch(e.keyCode){case 37:$.prettyPhoto.changePage('previous');e.preventDefault();break;case 39:$.prettyPhoto.changePage('next');e.preventDefault();break;case 27:if(!settings.modal)
1388$.prettyPhoto.close();e.preventDefault();break;};};};});}
1389$.prettyPhoto.initialize=function(){settings=pp_settings;if($.browser.msie&&parseInt($.browser.version)==6)settings.theme="light_square";theRel=$(this).attr('rel');galleryRegExp=/\[(?:.*)\]/;isSet=(galleryRegExp.exec(theRel))?true:false;
1389pp_images=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return $(n).attr('href');}):$.makeArray($(this).attr('href'));pp_titles=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return($(n).find('img').attr('alt'))?$(n).find('img').attr('alt'):"";}):$.makeArray($(this).find('img').attr('alt'));pp_descriptions=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return($(n).attr('title'))?$(n).attr('title'):"";}):$.makeArray($(this).attr('title'));_buildOverlay(this);if(settings.allow_resize)
1390$(window).bind('scroll.prettyphoto',function(){_center_overlay();});set_position=jQuery.inArray($(this).attr('href'),pp_images);$.prettyPhoto.open();return false;}
1391$.prettyPhoto.open=function(event){if(typeof settings=="undefined"){settings=pp_settings;if($.browser.msie&&$.browser.version==6)settings.theme="light_square";pp_images=$.makeArray(arguments[0]);pp_titles=(arguments[1])?$.makeArray(arguments[1]):$.makeArray("");pp_descriptions=(arguments[2])?$.makeArray(arguments[2]):$.makeArray("");isSet=(pp_images.length>1)?true:false;set_position=0;_buildOverlay(event.target);}
1392if($.browser.msie&&$.browser.version==6)$('select').css('visibility','hidden');if(settings.hideflash)$('object,embed').css('visibility','hidden');_checkPosition($(pp_images).size());$('.pp_loaderIcon').show();if($ppt.is(':hidden'))$ppt.css('opacity',0).show();$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);$pp_pic_holder.find('.currentTextHolder').text((set_position+1)+settings.counter_separator_label+$(pp_images).size());$pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position]));(settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined")?$ppt.html(unescape(pp_titles[set_position])):$ppt.html('&nbsp;');movie_width=(parseFloat(grab_param('width',pp_images[set_position])))?grab_param('width',pp_images[set_position]):settings.default_width.toString();movie_height=(parseFloat(grab_param('height',pp_images[set_position])))?grab_param('height',pp_images[set_position]):settings.default_height.toString();if(movie_height.indexOf('%')!=-1){movie_height=parseFloat(($(window).height()*parseFloat(movie_height)/100)-150);percentBased=true;}
1393if(movie_width.indexOf('%')!=-1){movie_width=parseFloat(($(window).width()*parseFloat(movie_width)/100)-150);percentBased=true;}
1394$pp_pic_holder.fadeIn(function(){imgPreloader="";switch(_getFileType(pp_images[set_position])){case'image':imgPreloader=new Image();nextImage=new Image();if(isSet&&set_position<$(pp_images).size()-1)nextImage.src=pp_images[set_position+1];prevImage=new Image();
1394if(isSet&&pp_images[set_position-1])prevImage.src=pp_images[set_position-1];$pp_pic_holder.find('#pp_full_res')[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){pp_dimensions=_fitToViewport(imgPreloader.width,imgPreloader.height);_showContent();};imgPreloader.onerror=function(){alert('Image cannot be loaded. Make sure the path is correct and image exist.');$.prettyPhoto.close();};imgPreloader.src=pp_images[set_position];break;case'youtube':pp_dimensions=_fitToViewport(movie_width,movie_height);movie='http://www.youtube.com/v/'+grab_param('v',pp_images[set_position]);if(settings.autoplay)movie+="&autoplay=1";toInject=settings.flash_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case'vimeo':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=pp_images[set_position];var regExp=/http:\/\/(www\.)?vimeo.com\/(\d+)/;var match=movie_id.match(regExp);movie='http://player.vimeo.com/video/'+match[2]+'?title=0&amp;byline=0&amp;portrait=0';if(settings.autoplay)movie+="&autoplay=1;";vimeo_width=pp_dimensions['width']+'/embed/?moog_width='+pp_dimensions['width'];toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,movie);break;case'quicktime':pp_dimensions=_fitToViewport(movie_width,movie_height);pp_dimensions['height']+=15;pp_dimensions['contentHeight']+=15;pp_dimensions['containerHeight']+=15;toInject=settings.quicktime_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case'flash':pp_dimensions=_fitToViewport(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf('flashvars')+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf('?'));toInject=settings.flash_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+'?'+flash_vars);break;case'iframe':pp_dimensions=_fitToViewport(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf('iframe')-1);toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,frame_url);break;case'custom':pp_dimensions=_fitToViewport(movie_width,movie_height);toInject=settings.custom_markup;break;case'inline':myClone=$(pp_images[set_position]).clone().css({'width':settings.default_width,'height':settings.default_height}).wrapInner('<div id="pp_full_res"><div class="pp_inline clearfix"></div></div>').appendTo($('body')).show();doresize=false;pp_dimensions=_fitToViewport($(myClone).width(),$(myClone).height());doresize=true;$(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,$(pp_images[set_position]).html());break;};if(!imgPreloader){$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();};});return false;};$.prettyPhoto.changePage=function(direction){currentGalleryPage=0;if(direction=='previous'){set_position--;if(set_position<0){set_position=0;return;};}else if(direction=='next'){set_position++;if(set_position>$(pp_images).size()-1){set_position=0;}}else{set_position=direction;};if(!doresize)doresize=true;$('.pp_contract').removeClass('pp_contract').addClass('pp_expand');_hideContent(function(){$.prettyPhoto.open();});};$.prettyPhoto.changeGalleryPage=function(direction){if(direction=='next'){currentGalleryPage++;if(currentGalleryPage>totalPage){currentGalleryPage=0;};}else if(direction=='previous'){currentGalleryPage--;if(currentGalleryPage<0){currentGalleryPage=totalPage;};}else{currentGalleryPage=direction;};itemsToSlide=(currentGalleryPage==totalPage)?pp_images.length-((totalPage)*itemsPerPage):itemsPerPage;$pp_pic_holder.find('.pp_gallery li').each(function(i){$(this).animate({'left':(i*itemWidth)-((itemsToSlide*itemWidth)*currentGalleryPage)});});};$.prettyPhoto.startSlideshow=function(){if(typeof pp_slideshow=='undefined'){$pp_pic_holder.find('.pp_play').unbind('click').removeClass('pp_play').addClass('pp_pause').click(function(){$.prettyPhoto.stopSlideshow();return false;});pp_slideshow=setInterval($.prettyPhoto.startSlideshow,settings.slideshow);}else{$.prettyPhoto.changePage('next');};}
1395$.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find('.pp_pause').unbind('click').removeClass('pp_pause').addClass('pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});clearInterval(pp_slideshow);pp_slideshow=undefined;}
1396$.prettyPhoto.close=function(){if($pp_overlay.is(":animated"))return;$.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find('object,embed').css('visibility','hidden');$('div.pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animation_speed,function(){$(this).remove();});$pp_overlay.fadeOut(settings.animation_speed,function(){if($.browser.msie&&$.browser.version==6)$('select').css('visibility','visible');if(settings.hideflash)$('object,embed').css('visibility','visible');$(this).remove();$(window).unbind('scroll');settings.callback();doresize=true;pp_open=false;delete settings;});};function _showContent(){$('.pp_loaderIcon').hide();$ppt.fadeTo(settings.animation_speed,1);projectedTop=scroll_pos['scrollTop']+((windowHeight/2)-(pp_dimensions['containerHeight']/2));if(projectedTop<0)projectedTop=0;$pp_pic_holder.find('.pp_content').animate({height:pp_dimensions['contentHeight'],width:pp_dimensions['contentWidth']},settings.animation_speed);$pp_pic_holder.animate({'top':projectedTop,'left':(windowWidth/2)-(pp_dimensions['containerWidth']/2),width:pp_dimensions['containerWidth']},settings.animation_speed,function(){$pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(pp_dimensions['height']).width(pp_dimensions['width']);$pp_pic_holder.find('.pp_fade').fadeIn(settings.animation_speed);if(isSet&&_getFileType(pp_images[set_position])=="image"){$pp_pic_holder.find('.pp_hoverContainer').show();}else{$pp_pic_holder.find('.pp_hoverContainer').hide();}
1397if(pp_dimensions['resized']){$('a.pp_expand,a.pp_contract').show();}else{$('a.pp_expand,a.pp_contract').hide();}
1398if(settings.autoplay_slideshow&&!pp_slideshow&&!pp_open)$.prettyPhoto.startSlideshow();settings.changepicturecallback();pp_open=true;});_insert_gallery();};function _hideContent(callback){$pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden');$pp_pic_holder.find('.pp_fade').fadeOut(settings.animation_speed,function(){$('.pp_loaderIcon').show();callback();});};function _checkPosition(setCount){(setCount>1)?$('.pp_nav').show():$('.pp_nav').hide();};function _fitToViewport(width,height){resized=false;_getDimensions(width,height);imageWidth=width,imageHeight=height;if(((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight))&&doresize&&settings.allow_resize&&!percentBased){resized=true,fitting=false;while(!fitting){if((pp_containerWidth>windowWidth)){imageWidth=(windowWidth-200);imageHeight=(height/width)*imageWidth;}else if((pp_containerHeight>windowHeight)){imageHeight=(windowHeight-200);imageWidth=(width/height)*imageHeight;}else{fitting=true;};pp_containerHeight=imageHeight,pp_containerWidth=imageWidth;};_getDimensions(imageWidth,imageHeight);};return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(pp_containerHeight),containerWidth:Math.floor(pp_containerWidth)+40,contentHeight:Math.floor(pp_contentHeight),contentWidth:Math.floor(pp_contentWidth),resized:resized};};function _getDimensions(width,height){width=parseFloat(width);height=parseFloat(height);$pp_details=$pp_pic_holder.find('.pp_details');$pp_details.width(width);detailsHeight=parseFloat($pp_details.css('marginTop'))+parseFloat($pp_details.css('marginBottom'));$pp_details=$pp_details.clone().appendTo($('body')).css({'position':'absolute','top':-10000});detailsHeight+=$pp_details.height();
1398detailsHeight=(detailsHeight<=34)?36:detailsHeight;if($.browser.msie&&$.browser.version==7)detailsHeight+=8;$pp_details.remove();$pp_title=$pp_pic_holder.find('.ppt');$pp_title.width(width);titleHeight=parseFloat($pp_title.css('marginTop'))+parseFloat($pp_title.css('marginBottom'));$pp_title=$pp_title.clone().appendTo($('body')).css({'position':'absolute','top':-10000});titleHeight+=$pp_title.height();$pp_title.remove();pp_contentHeight=height+detailsHeight;pp_contentWidth=width;pp_containerHeight=pp_contentHeight+titleHeight+$pp_pic_holder.find('.pp_top').height()+$pp_pic_holder.find('.pp_bottom').height();pp_containerWidth=width;}
1399function _getFileType(itemSrc){if(itemSrc.match(/youtube\.com\/watch/i)){return'youtube';}else if(itemSrc.match(/vimeo\.com/i)){return'vimeo';}else if(itemSrc.match(/\b.mov\b/i)){return'quicktime';}else if(itemSrc.match(/\b.swf\b/i)){return'flash';}else if(itemSrc.match(/\biframe=true\b/i)){return'iframe';}else if(itemSrc.match(/\bcustom=true\b/i)){return'custom';}else if(itemSrc.substr(0,1)=='#'){return'inline';}else{return'image';};};function _center_overlay(){if(doresize&&typeof $pp_pic_holder!='undefined'){scroll_pos=_get_scroll();contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=(windowHeight/2)+scroll_pos['scrollTop']-(contentHeight/2);if(projectedTop<0)projectedTop=0;$pp_pic_holder.css({'top':projectedTop,'left':(windowWidth/2)+scroll_pos['scrollLeft']-(contentwidth/2)});};};function _get_scroll(){if(self.pageYOffset){return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset};}else if(document.documentElement&&document.documentElement.scrollTop){return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft};}else if(document.body){return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft};};};function _resize_overlay(){windowHeight=$(window).height(),windowWidth=$(window).width();if(typeof $pp_overlay!="undefined")$pp_overlay.height($(document).height()).width(windowWidth);};function _insert_gallery(){if(isSet&&settings.overlay_gallery&&_getFileType(pp_images[set_position])=="image"){itemWidth=52+5;navWidth=(settings.theme=="facebook")?58:38;itemsPerPage=Math.floor((pp_dimensions['containerWidth']-100-navWidth)/itemWidth);itemsPerPage=(itemsPerPage<pp_images.length)?itemsPerPage:pp_images.length;totalPage=Math.ceil(pp_images.length/itemsPerPage)-1;if(totalPage==0){navWidth=0;$pp_pic_holder.find('.pp_gallery .pp_arrow_next,.pp_gallery .pp_arrow_previous').hide();}else{$pp_pic_holder.find('.pp_gallery .pp_arrow_next,.pp_gallery .pp_arrow_previous').show();};galleryWidth=itemsPerPage*itemWidth+navWidth;$pp_pic_holder.find('.pp_gallery').width(galleryWidth).css('margin-left',-(galleryWidth/2));$pp_pic_holder.find('.pp_gallery ul').width(itemsPerPage*itemWidth).find('li.selected').removeClass('selected');goToPage=(Math.ceil((set_position+1)/itemsPerPage)<totalPage)?Math.ceil((set_position+1)/itemsPerPage):totalPage;$.prettyPhoto.changeGalleryPage(goToPage);$pp_pic_holder.find('.pp_gallery ul li:eq('+set_position+')').addClass('selected');}else{$pp_pic_holder.find('.pp_content').unbind('mouseenter mouseleave');$pp_pic_holder.find('.pp_gallery').hide();}}
1400function _buildOverlay(caller){$('body').append(settings.markup);$pp_pic_holder=$('.pp_pic_holder'),$ppt=$('.ppt'),$pp_overlay=$('div.pp_overlay');if(isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var i=0;i<pp_images.length;i++){if(!pp_images[i].match(/\b(jpg|jpeg|png|gif)\b/gi)){classname='default';}else{classname='';}
1401toInject+="<li class='"+classname+"'><a href='#'><img src='"+pp_images[i]+"' width='50' alt='' /></a></li>";};toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find('#pp_full_res').after(toInject);$pp_pic_holder.find('.pp_gallery .pp_arrow_next').click(function(){$.prettyPhoto.changeGalleryPage('next');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_gallery .pp_arrow_previous').click(function(){$.prettyPhoto.changeGalleryPage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_content').hover(function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeIn();},function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeOut();});itemWidth=52+5;$pp_pic_holder.find('.pp_gallery ul li').each(function(i){$(this).css({'position':'absolute','left':i*itemWidth});$(this).find('a').unbind('click').click(function(){$.prettyPhoto.changePage(i);$.prettyPhoto.stopSlideshow();return false;});});};if(settings.slideshow){$pp_pic_holder.find('.pp_nav').prepend('<a href="#" class="pp_play">Play</a>')
1402$pp_pic_holder.find('.pp_nav .pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});}
1403$pp_pic_holder.attr('class','pp_pic_holder '+settings.theme);$pp_overlay.css({'opacity':0,'height':$(document).height(),'width':$(window).width()}).bind('click',function(){if(!settings.modal)$.prettyPhoto.close();});$('a.pp_close').bind('click',function(){$.prettyPhoto.close();return false;});$('a.pp_expand').bind('click',function(e){if($(this).hasClass('pp_expand')){$(this).removeClass('pp_expand').addClass('pp_contract');doresize=false;}else{$(this).removeClass('pp_contract').addClass('pp_expand');doresize=true;};_hideContent(function(){$.prettyPhoto.open();});return false;});$pp_pic_holder.find('.pp_previous, .pp_nav .pp_arrow_previous').bind('click',function(){$.prettyPhoto.changePage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_next, .pp_nav .pp_arrow_next').bind('click',function(){$.prettyPhoto.changePage('next');$.prettyPhoto.stopSlideshow();return false;});_center_overlay();};return this.unbind('click.prettyphoto').bind('click.prettyphoto',$.prettyPhoto.initialize);};function grab_param(name,url){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(url);return(results==null)?"":results[1];}})(jQuery);
1404
1405
1406/*	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
1407	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
1408*/
1409var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}
1409else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();
1410
1411/* JW Player v6.3 */
1412"undefined"==typeof jwplayer&&(jwplayer=function(d){if(jwplayer.api)return jwplayer.api.selectPlayer(d)},jwplayer.version="6.3.3242",jwplayer.vid=document.createElement("video"),jwplayer.audio=document.createElement("audio"),jwplayer.source=document.createElement("source"),function(d){function a(b){return function(){return e(b)}}var h=document,g=window,c=navigator,b=d.utils=function(){};b.exists=function(b){switch(typeof b){case "string":return 0<b.length;case "object":return null!==b;case "undefined":return!1}return!0};
1413b.styleDimension=function(b){return b+(0<b.toString().indexOf("%")?"":"px")};b.getAbsolutePath=function(a,e){b.exists(e)||(e=h.location.href);
1413if(b.exists(a)){var c;if(b.exists(a)){c=a.indexOf("://");var g=a.indexOf("?");c=0<c&&(0>g||g>c)}else c=void 0;if(c)return a;c=e.substring(0,e.indexOf("://")+3);var g=e.substring(c.length,e.indexOf("/",c.length+1)),k;0===a.indexOf("/")?k=a.split("/"):(k=e.split("?")[0],k=k.substring(c.length+g.length+1,k.lastIndexOf("/")),k=k.split("/").concat(a.split("/")));
1414for(var f=[],d=0;d<k.length;d++)k[d]&&(b.exists(k[d])&&"."!=k[d])&&(".."==k[d]?f.pop():f.push(k[d]));return c+g+"/"+f.join("/")}};b.extend=function(){var a=b.extend.arguments;if(1<a.length){for(var e=1;e<a.length;e++)for(var c in a[e])try{b.exists(a[e][c])&&(a[0][c]=a[e][c])}catch(k){}return a[0]}return null};b.log=function(b,a){"undefined"!=typeof console&&"undefined"!=typeof console.log&&(a?console.log(b,a):console.log(b))};var e=b.userAgentMatch=function(b){return null!==c.userAgent.toLowerCase().match(b)};
1415b.isIE=a(/msie/i);b.isFF=a(/firefox/i);b.isChrome=a(/chrome/i);b.isIOS=a(/iP(hone|ad|od)/i);b.isIPod=a(/iP(hone|od)/i);b.isIPad=a(/iPad/i);b.isSafari602=a(/Macintosh.*Mac OS X 10_8.*6\.0\.\d* Safari/i);b.isAndroid=function(b){return b?e(RegExp("android.*"+b,"i")):e(/android/i)};b.isMobile=function(){return b.isIOS()||b.isAndroid()};b.saveCookie=function(b,a){h.cookie="jwplayer."+b+"\x3d"+a+"; path\x3d/"};b.getCookies=function(){for(var b={},a=h.cookie.split("; "),e=0;e<a.length;e++){var c=a[e].split("\x3d");
14160==c[0].indexOf("jwplayer.")&&(b[c[0].substring(9,c[0].length)]=c[1])}return b};b.typeOf=function(b){var a=typeof b;return"object"===a?!b?"null":b instanceof Array?"array":a:a};b.translateEventResponse=function(a,e){var c=b.extend({},e);a==d.events.JWPLAYER_FULLSCREEN&&!c.fullscreen?(c.fullscreen="true"==c.message?!0:!1,delete c.message):"object"==typeof c.data?(c=b.extend(c,c.data),delete c.data):"object"==typeof c.metadata&&b.deepReplaceKeyName(c.metadata,["__dot__","__spc__","__dsh__","__default__"],
1417["."," ","-","default"]);var k=["position","duration","offset"],g;for(g in k)c[k[g]]&&(c[k[g]]=Math.round(1E3*c[k[g]])/1E3);return c};b.flashVersion=function(){if(b.isAndroid())return 0;var a=c.plugins,e;try{if("undefined"!==a&&(e=a["Shockwave Flash"]))return parseInt(e.description.replace(/\D+(\d+)\..*/,"$1"))}catch(k){}if("undefined"!=typeof g.ActiveXObject)try{if(e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return parseInt(e.GetVariable("$version").split(" ")[1].split(",")[0])}catch(d){}return 0};
1418b.getScriptPath=function(b){for(var a=h.getElementsByTagName("script"),e=0;e<a.length;e++){var c=a[e].src;if(c&&0<=c.indexOf(b))return c.substr(0,c.indexOf(b))}return""};b.deepReplaceKeyName=function(b,a,e){switch(d.utils.typeOf(b)){case "array":for(var c=0;c<b.length;c++)b[c]=d.utils.deepReplaceKeyName(b[c],a,e);break;case "object":for(var k in b){var f;if(a instanceof Array&&e instanceof Array)if(a.length!=e.length)continue;else f=a;else f=[a];for(var g=k,c=0;c<f.length;c++)g=g.replace(RegExp(a[c],
1419"g"),e[c]);b[g]=d.utils.deepReplaceKeyName(b[k],a,e);k!=g&&delete b[k]}}return b};var k=b.pluginPathType={ABSOLUTE:0,RELATIVE:1,CDN:2};b.getPluginPathType=function(a){if("string"==typeof a){a=a.split("?")[0];var e=a.indexOf("://");if(0<e)return k.ABSOLUTE;var c=a.indexOf("/");a=b.extension(a);return 0>e&&0>c&&(!a||!isNaN(a))?k.CDN:k.RELATIVE}};b.getPluginName=function(a){return a.replace(/^(.*\/)?([^-]*)-?.*\.(swf|js)$/,"$2")};b.getPluginVersion=function(a){return a.replace(/[^-]*-?([^\.]*).*$/,"$1")};
1420b.isYouTube=function(a){return-1<a.indexOf("youtube.com")||-1<a.indexOf("youtu.be")};b.isRtmp=function(a,b){return 0==a.indexOf("rtmp")||"rtmp"==b};b.foreach=function(a,b){for(var e in a)a.hasOwnProperty(e)&&b(e)};
1420b.isHTTPS=function(){return 0==g.location.href.indexOf("https")};b.repo=function(){var a="http://p.jwpcdn.com/"+d.version.split(/\W/).splice(0,2).join("/")+"/";try{b.isHTTPS()&&(a=a.replace("http://","https://ssl."))}catch(e){}return a}}(jwplayer),function(d){var a="video/",h={mp4:a+"mp4",
1421vorbis:"audio/ogg",ogg:a+"ogg",webm:a+"webm",aac:"audio/mp4",mp3:"audio/mpeg",hls:"application/vnd.apple.mpegurl"},g={mp4:h.mp4,f4v:h.mp4,m4v:h.mp4,mov:h.mp4,m4a:h.aac,f4a:h.aac,aac:h.aac,mp3:h.mp3,ogv:h.ogg,ogg:h.vorbis,oga:h.vorbis,webm:h.webm,m3u8:h.hls,hls:h.hls},a="video",a={flv:a,f4v:a,mov:a,m4a:a,m4v:a,mp4:a,aac:a,f4a:a,mp3:"sound",smil:"rtmp",m3u8:"hls",hls:"hls"},c=d.extensionmap={},b;for(b in g)c[b]={html5:g[b]};for(b in a)c[b]||(c[b]={}),c[b].flash=a[b];c.types=h;c.mimeType=function(a){for(var b in h)if(h[b]==
1422a)return b};c.extType=function(a){return c.mimeType(g[a])}}(jwplayer.utils),function(d){var a=d.loaderstatus={NEW:0,LOADING:1,ERROR:2,COMPLETE:3},h=document;d.scriptloader=function(g){function c(){e=a.ERROR;l.sendEvent(k.ERROR)}function b(){e=a.COMPLETE;l.sendEvent(k.COMPLETE)}var e=a.NEW,k=jwplayer.events,l=new k.eventdispatcher;d.extend(this,l);this.load=function(){var l=d.scriptloader.loaders[g];if(l&&(l.getStatus()==a.NEW||l.getStatus()==a.LOADING))l.addEventListener(k.ERROR,c),l.addEventListener(k.COMPLETE,
1423b);else if(d.scriptloader.loaders[g]=this,e==a.NEW){e=a.LOADING;var n=h.createElement("script");n.addEventListener?(n.onload=b,n.onerror=c):n.readyState&&(n.onreadystatechange=function(){("loaded"==n.readyState||"complete"==n.readyState)&&b()});h.getElementsByTagName("head")[0].appendChild(n);n.src=g}};this.getStatus=function(){return e}};d.scriptloader.loaders={}}(jwplayer.utils),function(d){d.trim=function(a){return a.replace(/^\s*/,"").replace(/\s*$/,"")};d.pad=function(a,d,g){for(g||(g="0");a.length<
1424d;)a=g+a;return a};d.xmlAttribute=function(a,d){for(var g=0;g<a.attributes.length;g++)if(a.attributes[g].name&&a.attributes[g].name.toLowerCase()==d.toLowerCase())return a.attributes[g].value.toString();return""};d.extension=function(a){if(!a||"rtmp"==a.substr(0,4))return"";a=a.substring(a.lastIndexOf("/")+1,a.length).split("?")[0].split("#")[0];if(-1<a.lastIndexOf("."))return a.substr(a.lastIndexOf(".")+1,a.length).toLowerCase()};d.stringToColor=function(a){a=a.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,
1425"$2");3==a.length&&(a=a.charAt(0)+a.charAt(0)+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2));return parseInt(a,16)}}(jwplayer.utils),function(d){d.key=function(a){var h,g,c;this.edition=function(){return c&&c.getTime()<(new Date).getTime()?"invali
1425d":h};this.token=function(){return g};d.exists(a)||(a="");try{a=d.tea.decrypt(a,"36QXq4W@GSBV^teR");var b=a.split("/");(h=b[0])||(h="free");g=b[1];b[2]&&0<parseInt(b[2])&&(c=new Date,c.setTime(String(b[2])))}catch(e){h="invalid"}}}(jwplayer.utils),function(d){var a=
1426d.tea={};a.encrypt=function(c,b){if(0==c.length)return"";var e=a.strToLongs(g.encode(c));1>=e.length&&(e[1]=0);for(var k=a.strToLongs(g.encode(b).slice(0,16)),l=e.length,d=e[l-1],n=e[0],q,j=Math.floor(6+52/l),f=0;0<j--;){f+=2654435769;q=f>>>2&3;for(var r=0;r<l;r++)n=e[(r+1)%l],d=(d>>>5^n<<2)+(n>>>3^d<<4)^(f^n)+(k[r&3^q]^d),d=e[r]+=d}e=a.longsToStr(e);return h.encode(e)};a.decrypt=function(c,b){if(0==c.length)return"";for(var e=a.strToLongs(h.decode(c)),k=a.strToLongs(g.encode(b).slice(0,16)),d=e.length,
1427m=e[d-1],n=e[0],q,j=2654435769*Math.floor(6+52/d);0!=j;){q=j>>>2&3;for(var f=d-1;0<=f;f--)m=e[0<f?f-1:d-1],m=(m>>>5^n<<2)+(n>>>3^m<<4)^(j^n)+(k[f&3^q]^m),n=e[f]-=m;j-=2654435769}e=a.longsToStr(e);e=e.replace(/\0+$/,"");return g.decode(e)};a.strToLongs=function(a){for(var b=Array(Math.ceil(a.length/4)),e=0;e<b.length;e++)b[e]=a.charCodeAt(4*e)+(a.charCodeAt(4*e+1)<<8)+(a.charCodeAt(4*e+2)<<16)+(a.charCodeAt(4*e+3)<<24);return b};a.longsToStr=function(a){for(var b=Array(a.length),e=0;e<a.length;e++)b[e]=
1428String.fromCharCode(a[e]&255,a[e]>>>8&255,a[e]>>>16&255,a[e]>>>24&255);return b.join("")};var h={code:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d",encode:function(a,b){var e,k,d,m,n=[],q="",j,f,r=h.code;f=("undefined"==typeof b?0:b)?g.encode(a):a;j=f.length%3;if(0<j)for(;3>j++;)q+="\x3d",f+="\x00";for(j=0;j<f.length;j+=3)e=f.charCodeAt(j),k=f.charCodeAt(j+1),d=f.charCodeAt(j+2),m=e<<16|k<<8|d,e=m>>18&63,k=m>>12&63,d=m>>6&63,m&=63,n[j/3]=r.charAt(e)+r.charAt(k)+r.charAt(d)+
1429r.charAt(m);n=n.join("");return n=n.slice(0,n.length-q.length)+q},decode:function(a,b){b="undefined"==typeof b?!1:b;var e,k,d,m,n,q=[],j,f=h.code;j=b?g.decode(a):a;for(var r=0;r<j.length;r+=4)e=f.indexOf(j.charAt(r)),k=f.indexOf(j.charAt(r+1)),m=f.indexOf(j.charAt(r+2)),n=f.indexOf(j.charAt(r+3)),d=e<<18|k<<12|m<<6|n,e=d>>>16&255,k=d>>>8&255,d&=255,q[r/4]=String.fromCharCode(e,k,d),64==n&&(q[r/4]=String.fromCharCode(e,k)),64==m&&(q[r/4]=String.fromCharCode(e));m=q.join("");return b?g.decode(m):m}},
1430g={encode:function(a){a=a.replace(/[\u0080-\u07ff]/g,function(a){a=a.charCodeAt(0);return String.fromCharCode(192|a>>6,128|a&63)});return a=a.replace(/[\u0800-\uffff]/g,function(a){a=a.charCodeAt(0);return String.fromCharCode(224|a>>12,128|a>>6&63,128|a&63)})},decode:function(a){a=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){a=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(a)});return a=a.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,
1431function(a){a=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(a)})}}}(jwplayer.utils),function(d){d.events={COMPLETE:"COMPLETE",ERROR:"ERROR",API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_MEDIA_BEFOREPLAY:"jwplayerMediaBeforePlay",JWPLAYER_MEDIA_BEFORECOMPLETE:"jwplayerMediaBeforeComplete",JWPLAYER_COMPONENT_SHOW:"jwplayerComponentShow",JWPLAYER_COMPONENT_HIDE:"jwplayerComponentHide",
1432JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_MEDIA_LEVELS:"jwplayerMediaLevels",JWPLAYER_MEDIA_LEVEL_CHANGED:"jwplayerMediaLevelChanged",
1433JWPLAYER_CAPTIONS_CHANGED:"jwplayerCaptionsChanged",JWPLAYER_CAPTIONS_LIST:"jwplayerCaptionsList",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",state:{BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"},JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem",JWPLAYER_PLAYLIST_COMPLETE:"jwplayerPlaylistComplete",JWPLAYER_DISPLAY_CLICK:"jwplayerViewClick",JWPLAYER_CONTROLS:"jwplayerViewControl
1433s",JWPLAYER_INSTREAM_CLICK:"jwplayerInstreamClicked",
1434JWPLAYER_INSTREAM_DESTROYED:"jwplayerInstreamDestroyed"}}(jwplayer),function(d){var a=jwplayer.utils;d.eventdispatcher=function(d,g){var c,b;this.resetEventListeners=function(){c={};b=[]};this.resetEventListeners();this.addEventListener=function(b,k,d){try{a.exists(c[b])||(c[b]=[]),"string"==a.typeOf(k)&&(k=(new Function("return "+k))()),c[b].push({listener:k,count:d})}catch(g){a.log("error",g)}return!1};this.removeEventListener=function(b,d){if(c[b]){try{for(var g=0;g<c[b].length;g++)if(c[b][g].listener.toString()==
1435d.toString()){c[b].splice(g,1);break}}catch(h){a.log("error",h)}return!1}};this.addGlobalListener=function(e,c){try{"string"==a.typeOf(e)&&(e=(new Function("return "+e))()),b.push({listener:e,count:c})}catch(d){a.log("error",d)}return!1};this.removeGlobalListener=function(e){if(e){try{for(var c=0;c<b.length;c++)if(b[c].listener.toString()==e.toString()){b.splice(c,1);break}}catch(d){a.log("error",d)}return!1}};this.sendEvent=function(e,k){a.exists(k)||(k={});a.extend(k,{id:d,version:jwplayer.version,
1436type:e});g&&a.log(e,k);if("undefined"!=a.typeOf(c[e]))for(var l=0;l<c[e].length;l++){try{c[e][l].listener(k)}catch(m){a.log("There was an error while handling a listener: "+m.toString(),c[e][l].listener)}c[e][l]&&(1===c[e][l].count?delete c[e][l]:0<c[e][l].count&&(c[e][l].count-=1))}for(l=0;l<b.length;l++){try{b[l].listener(k)}catch(n){a.log("There was an error while handling a listener: "+n.toString(),b[l].listener)}b[l]&&(1===b[l].count?delete b[l]:0<b[l].count&&(b[l].count-=1))}}}}(jwplayer.events),
1437function(d){var a={},h={};d.plugins=function(){};d.plugins.loadPlugins=function(g,c){h[g]=new d.plugins.pluginloader(new d.plugins.model(a),c);return h[g]};d.plugins.registerPlugin=function(g,c,b,e){var k=d.utils.getPluginName(g);a[k]||(a[k]=new d.plugins.plugin(g));a[k].registerPlugin(g,c,b,e)}}(jwplayer),function(d){d.plugins.model=function(a){this.addPlugin=function(h){var g=d.utils.getPluginName(h);a[g]||(a[g]=new d.plugins.plugin(h));return a[g]};this.getPlugins=function(){return a}}}(jwplayer),
1438function(d){var a=jwplayer.utils,h=jwplayer.events;d.pluginmodes={FLASH:0,JAVASCRIPT:1,HYBRID:2};d.plugin=function(g){function c(){switch(a.getPluginPathType(g)){case a.pluginPathType.ABSOLUTE:return g;case a.pluginPathType.RELATIVE:return a.getAbsolutePath(g,window.location.href)}}function b(){q=setTimeout(function(){k=a.loaderstatus.COMPLETE;j.sendEvent(h.COMPLETE)},1E3)}function e(){k=a.loaderstatus.ERROR;j.sendEvent(h.ERROR)}var k=a.loaderstatus.NEW,l,m,n,q,j=new h.eventdispatcher;a.extend(this,
1439j);this.load=function(){if(k==a.loaderstatus.NEW)if(0<g.lastIndexOf(".swf"))l=g,k=a.loaderstatus.COMPLETE,j.sendEvent(h.COMPLETE);else if(a.getPluginPathType(g)==a.pluginPathType.CDN)k=a.loaderstatus.COMPLETE,j.sendEvent(h.COMPLETE);else{k=a.loaderstatus.LOADING;var f=new a.scriptloader(c());f.addEventListener(h.COMPLETE,b);f.addEventListener(h.ERROR,e);f.load()}};this.registerPlugin=function(b,e,c,d){q&&(clearTimeout(q),q=void 0);n=e;c&&d?(l=d,m=c):"string"==typeof c?l=c:"function"==typeof c?m=c:
1440!c&&!d&&(l=b);k=a.loaderstatus.COMPLETE;j.sendEvent(h.COMPLETE)};this.getStatus=function(){return k};this.getPluginName=function(){return a.getPluginName(g)};this.getFlashPath=function(){if(l)switch(a.getPluginPathType(l)){case a.pluginPathType.ABSOLUTE:return l;case a.pluginPathType.RELATIVE:return 0<g.lastIndexOf(".swf")?a.getAbsolutePath(l,window.location.href):a.getAbsolutePath(l,c())}return null};this.getJS=function(){return m};this.getTarget=function(){return n};this.getPluginmode=function(){if("undefined"!=
1441typeof l&&"undefined"!=typeof m)return d.pluginmodes.HYBRID;if("undefined"!=typeof l)return d.pluginmodes.FLASH;if("undefined"!=typeof m)return d.pluginmodes.JAVASCRIPT};this.getNewInstance=function(a,b,e){return new m(a,b,e)};this.getURL=function(){return g}}}(jwplayer.plugins),function(d){var a=d.utils,h=d.events;d.plugins.pluginloader=function(g,c){function b(){m?j.sendEvent(h.ERROR,{message:n}):l||(l=!0,k=a.loaderstatus.COMPLETE,j.sendEvent(h.COMPLETE))}function e(){q||b();if(!l&&!m){var e=0,
1442c=g.getPlugins(),f;
1442for(f in q){var k=a.getPluginName(f),h=c[k],k=h.getJS(),j=h.getTarget(),h=h.getStatus();if(h==a.loaderstatus.LOADING||h==a.loaderstatus.NEW)e++;else if(k&&(!j||parseFloat(j)>parseFloat(d.version)))m=!0,n="Incompatible player version",b()}0==e&&b()}}var k=a.loaderstatus.NEW,l=!1,m=!1,n,q=c,j=new h.eventdispatcher;a.extend(this,j);this.setupPlugins=function(b,e,c){var f={length:0,plugins:{}},d=0,k={},h=g.getPlugins(),l;for(l in e.plugins){var j=a.getPluginName(l),m=h[j],B=m.getFlashPath(),
1443n=m.getJS(),q=m.getURL();B&&(f.plugins[B]=a.extend({},e.plugins[l]),f.plugins[B].pluginmode=m.getPluginmode(),f.length++);try{if(n&&e.plugins&&e.plugins[q]){var v=document.createElement("div");v.id=b.id+"_"+j;v.style.position="absolute";v.style.top=0;v.style.zIndex=d+10;k[j]=m.getNewInstance(b,a.extend({},e.plugins[q]),v);d++;b.onReady(c(k[j],v,!0));b.onResize(c(k[j],v))}}catch(C){a.log("ERROR: Failed to load "+j+".")}}b.plugins=k;return f};this.load=function(){if(!(a.exists(c)&&"object"!=a.typeOf(c))){k=
1444a.loaderstatus.LOADING;for(var b in c)if(a.exists(b)){var d=g.addPlugin(b);d.addEventListener(h.COMPLETE,e);d.addEventListener(h.ERROR,f)}d=g.getPlugins();for(b in d)d[b].load()}e()};var f=this.pluginFailed=function(){m||(m=!0,n="File not found",b())};this.getStatus=function(){return k}}}(jwplayer),function(d){d.playlist=function(a){var h=[];if("array"==d.utils.typeOf(a))for(var g=0;g<a.length;g++)h.push(new d.playlist.item(a[g]));else h.push(new d.playlist.item(a));return h}}(jwplayer),function(d){var a=
1445d.item=function(h){var g=jwplayer.utils,c=g.extend({},a.defaults,h);c.tracks=g.exists(h.tracks)?h.tracks:[];0==c.sources.length&&(c.sources=[new d.source(c)]);for(var b=0;b<c.sources.length;b++){var e=c.sources[b]["default"];c.sources[b]["default"]=e?"true"==e.toString():!1;c.sources[b]=new d.source(c.sources[b])}if(c.captions&&!g.exists(h.tracks)){for(h=0;h<c.captions.length;h++)c.tracks.push(c.captions[h]);delete c.captions}for(b=0;b<c.tracks.length;b++)c.tracks[b]=new d.track(c.tracks[b]);return c};
1446a.defaults={description:"",image:"",mediaid:"",title:"",sources:[],tracks:[]}}(jwplayer.playlist),function(d){var a=jwplayer.utils,h={file:void 0,label:void 0,type:void 0,"default":void 0};d.source=function(d){var c=a.extend({},h),b;for(b in h)a.exists(d[b])&&(c[b]=d[b],delete d[b]);c.type&&0<c.type.indexOf("/")&&(c.type=a.extensionmap.mimeType(c.type));"m3u8"==c.type&&(c.type="hls");"smil"==c.type&&(c.type="rtmp");return c}}(jwplayer.playlist),function(d){var a=jwplayer.utils,h={file:void 0,label:void 0,
1447kind:"captions","default":!1};d.track=function(d){var c=a.extend({},h);d||(d={});for(var b in h)a.exists(d[b])&&(c[b]=d[b],delete d[b]);return c}}(jwplayer.playlist),function(d){var a=d.utils,h=d.events,g=document,c=d.embed=function(b){function e(a){l(n,p+a.message)}function k(){l(n,p+"No playable sources found")}function l(b,e){if(m.fallback){var c=b.style;c.backgroundColor="#000";c.color="#FFF";c.width=a.styleDimension(m.width);c.height=a.styleDimension(m.height);c.display="table";c.opacity=1;var c=
1448document.createElement("p"),d=c.style;d.verticalAlign="middle";d.textAlign="center";d.display="table-cell";d.font="15px/20px Arial, Helvetica, sans-serif";c.innerHTML=e.replace(":",":\x3cbr\x3e");b.innerHTML="";b.appendChild(c)}}var m=new c.config(b.config),n,q,j,f=m.width,r=m.height,p="Error loading player: ",s=d.plugins.loadPlugins(b.id,m.plugins);m.fallbackDiv&&(j=m.fallbackDiv,delete m.fallbackDiv);m.id=b.id;q=g.getElementById(b.id);n=g.createElement("div");n.id=q.id;n.style.width=0<f.toString().indexOf("%")?
1449f:f+"px";n.style.height=0<r.toString().indexOf("%")?r:r+"px";q.parentNode.replaceChild(n,q);d.embed.errorScreen=l;s.addEventListener(h.COMPLETE,function(){if("array"==a.typeOf(m.playlist)&&2>m.playlist.length&&(0==m.playlist.length||!m.playlist[0].sources||0==m.playlist[0].sources.length))k();else if(s.getStatus()==a.loaderstatus.COMPLETE){for(var d=0;d<m.modes.length;d++)if(m.modes[d].type&&c[m.modes[d].type]){var f=a.extend({},m),g=new c[m.modes[d].type](n,m.modes[d],f,s,b);if(g.supportsConfig()){g.addEventListener(h.ERROR,
1450e);g.embed();d=b;f=f.events;g=void 0;
1450for(g in f)"function"==typeof d[g]&&d[g].call(d,f[g]);return b}}m.fallback?(a.log("No suitable players found and fallback enabled"),new c.download(n,m,k)):(a.log("No suitable players found and fallback disabled"),n.parentNode.replaceChild(j,n))}});s.addEventListener(h.ERROR,function(a){l(n,"Could not load plugins: "+a.message)});s.load();return b}}(jwplayer),function(d){function a(a){if(a.playlist)for(var e=0;e<a.playlist.length;e++)a.playlist[e]=new c(a.playlist[e]);
1451else{var e={},d;for(d in c.defaults)h(a,e,d);e.sources||(a.levels?(e.sources=a.levels,delete a.levels):(d={},h(a,d,"file"),h(a,d,"type"),e.sources=d.file?[d]:[]));a.playlist=[new c(e)]}}function h(a,e,c){g.exists(a[c])&&(e[c]=a[c],delete a[c])}var g=d.utils,c=d.playlist.item;(d.embed.config=function(b){var e={fallback:!0,height:270,primary:"html5",width:480,base:b.base?b.base:g.getScriptPath("jwplayer.js")};b=g.extend(e,d.defaults,b);var e={type:"html5",src:b.base+"jwplayer.html5.js"},c={type:"flash",
1452src:b.base+"jwplayer.flash.swf"};b.modes="flash"==b.primary?[c,e]:[e,c];b.listbar&&(b.playlistsize=b.listbar.size,b.playlistposition=b.listbar.position);b.flashplayer&&(c.src=b.flashplayer);b.html5player&&(e.src=b.html5player);a(b);return b}).addConfig=function(b,c){a(c);return g.extend(b,c)}}(jwplayer),function(d){var a=d.utils,h=document;d.embed.download=function(d,c,b){function e(a,b){for(var c=h.querySelectorAll(a),e=0;e<c.length;e++)for(var d in b)c[e].style[d]=b[d]}function k(a,b,c){a=h.createElement(a);
1453b&&(a.className="jwdownload"+b);c&&c.appendChild(a);return a}var l=a.extend({},c),m,n=l.width?l.width:480,q=l.height?l.height:320,j;c=c.logo?c.logo:{prefix:a.repo(),file:"logo.png",margin:10};var f,r;r=l.playlist;var p,s,l=["mp4","aac","mp3"];if(r&&r.length){p=r[0];s=p.sources;for(r=0;r<s.length;r++){var u=s[r],t=u.type?u.type:a.extensionmap.extType(a.extension(u.file));if(u.file)for(r in l)t==l[r]?(m=u.file,j=p.image):a.isYouTube(u.file)&&(f=u.file)}m?(b=m,d&&(m=k("a","display",d),k("div","icon",
1454m),k("div","logo",m),b&&m.setAttribute("href",a.getAbsolutePath(b))),b="#"+d.id+" .jwdownload",d.style.width="",d.style.height="",e(b+"display",{width:a.styleDimension(Math.max(320,n)),height:a.styleDimension(Math.max(180,q)),background:"black center no-repeat "+(j?"url("+j+")":""),backgroundSize:"contain",position:"relative",border:"none",display:"block"}),e(b+"display div",{position:"absolute",width:"100%",height:"100%"}),e(b+"logo",{top:c.margin+"px",right:c.margin+"px",background:"top right no-repeat url("+
1455c.prefix+c.file+")"}),e(b+"icon",{background:"center no-repeat url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAgNJREFUeNrs28lqwkAYB/CZqNVDDj2r6FN41QeIy8Fe+gj6BL275Q08u9FbT8ZdwVfotSBYEPUkxFOoks4EKiJdaDuTjMn3wWBO0V/+sySR8SNSqVRKIR8qaXHkzlqS9jCfzzWcTCYp9hF5o+59sVjsiRzcegSckFzcjT+ruN80TeSlAjCAAXzdJSGPFXRpAAMYwACGZQkSdhG4WCzehMNhqV6vG6vVSrirKVEw66YoSqDb7cqlUilE8JjHd/y1MQefVzqdDmiaJpfLZWHgXMHn8F6vJ1cqlVAkEsGuAn83J4gAd2RZymQygX6/L1erVQt+9ZPWb+CDwcCC2zXGJaewl/DhcHhK3DVj+KfKZrMWvFarcYNLomAv4aPRSFZVlTlcSPA5fDweW/BoNIqFnKV53JvncjkLns/n/cLdS+92O7RYLLgsKfv9/t8XlDn4eDyiw+HA9Jyz2eyt0+kY2+3WFC5hluej0Ha7zQQq9PPwdDq1Et1sNsx/nFBgCqWJ8oAK1aUptNVqcYWewE4nahfU0YQnk4ntUEfGMIU2m01HoLaCKbTRaDgKtaVLk9tBYaBcE/6Artdr4RZ5TB6/dC+9iIe/WgAMYADDpAUJAxjAAAYwgGFZgoS/AtNNTF7Z2bL0BYPBV3Jw5xFwwWcYxgtBP5OkE8i9G7aWGOOCruvauwADALMLMEbKf4SdAAAAAElFTkSuQmCC)"})):
1456f?(c=f,d=k("embed","",d),d.src="http://www.youtube.com/v/"+/v[=\/](\w*)|\/(\w+)$|^(\w+)$/i.exec(c).slice(1).join(""),d.type="application/x-shockwave-flash",d.width=n,d.height=q):b()}}}(jwplayer),function(d){var a=d.utils,h=d.events,g={};(d.embed.flash=function(c,b,e,k,l){function m(a,b,c){var e=document.createElement("param");e.setAttribute("name",b);e.setAttribute("value",c);a.appendChild(e)}function n(a,b,c){return function(){try{c&&document.getElementById(l.id+"_wrapper").appendChild(b);var e=
1457document.getElementById(l.id).getPluginConfig("display");"function"==typeof a.resize&&a.resize(e.width,e.height);b.style.left=e.x;b.style.top=e.h}catch(d){}}}function q(b){if(!b)return{};var c={},e=[],d;for(d in b){var f=a.getPluginName(d),g=b[d];e.push(d);for(var k in g)c[f+"."+k]=g[k]}c.plugins=e.join(",");return c}var j=new d.events.eventdispatcher,f=a.flashVersion();a.extend(this,j);this.embed=function(){e.id=l.id;if(10>f)return j.sendEvent(h.ERROR,{message:"Flash version must be 10.0 or greater"}),
1458!1;var d,p=a.extend({},e);c.id+"_wrapper"==c.parentNode.id?document.getElementById(c.id+"_wrapper"):(d=document.createElement("div"),d.id=c.id+"_wrapper",d.style.position="relative",d.style.width=a.styleDimension(p.width),d.style.height=a.styleDimension(p.height),c.parentNode.replaceChild(d,c
1458),d.appendChild(c));d=k.setupPlugins(l,p,n);0<d.length?a.extend(p,q(d.plugins)):delete p.plugins;"undefined"!=typeof p["dock.position"]&&"false"==p["dock.position"].toString().toLowerCase()&&(p.dock=p["dock.position"],
1459delete p["dock.position"]);d=p.wmode?p.wmode:p.height&&40>=p.height?"transparent":"opaque";for(var s="height width modes events primary base fallback volume".split(" "),u=0;u<s.length;u++)delete p[s[u]];var s=a.getCookies(),t;for(t in s)"undefined"==typeof p[t]&&(p[t]=s[t]);t=window.location.pathname.split("/");t.splice(t.length-1,1);t=t.join("/");p.base=t+"/";g[c.id]=p;a.isIE()?(p='\x3cobject classid\x3d"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" " width\x3d"100%" height\x3d"100%" id\x3d"'+c.id+
1460'" name\x3d"'+c.id+'" tabindex\x3d0""\x3e',p+='\x3cparam name\x3d"movie" value\x3d"'+b.src+'"\x3e',p+='\x3cparam name\x3d"allowfullscreen" value\x3d"true"\x3e\x3cparam name\x3d"allowscriptaccess" value\x3d"always"\x3e',p+='\x3cparam name\x3d"seamlesstabbing" value\x3d"true"\x3e',p+='\x3cparam name\x3d"wmode" value\x3d"'+d+'"\x3e',p+='\x3cparam name\x3d"bgcolor" value\x3d"#000000"\x3e',p+="\x3c/object\x3e",c.outerHTML=p,p=document.getElementById(c.id)):(p=document.createElement("object"),p.setAttribute("type",
1461"application/x-shockwave-flash"),p.setAttribute("data",b.src),p.setAttribute("width","100%"),p.setAttribute("height","100%"),p.setAttribute("bgcolor","#000000"),p.setAttribute("id",c.id),p.setAttribute("name",c.id),p.setAttribute("tabindex",0),m(p,"allowfullscreen","true"),m(p,"allowscriptaccess","always"),m(p,"seamlesstabbing","true"),m(p,"wmode",d),c.parentNode.replaceChild(p,c));l.container=p;l.setPlayer(p,"flash")};this.supportsConfig=function(){if(f)if(e){if("string"==a.typeOf(e.playlist))return!0;
1462try{var b=e.playlist[0].sources;if("undefined"==typeof b)return!0;for(var c=0;c<b.length;c++){var d;if(d=b[c].file){var g=b[c].file,k=b[c].type;if(a.isYouTube(g)||a.isRtmp(g,k)||"hls"==k)d=!0;else{var h=a.extensionmap[k?k:a.extension(g)];d=!h?!1:!!h.flash}}if(d)return!0}}catch(j){}}else return!0;return!1}}).getVars=function(a){return g[a]}}(jwplayer),function(d){var a=d.utils,h=a.extensionmap,g=d.events;d.embed.html5=function(c,b,e,k,l){function m(a,b,d){return function(){try{var e=document.querySelector("#"+
1463c.id+" .jwmain");
1463d&&e.appendChild(b);"function"==typeof a.resize&&(a.resize(e.clientWidth,e.clientHeight),setTimeout(function(){a.resize(e.clientWidth,e.clientHeight)},400));b.left=e.style.left;b.top=e.style.top}catch(g){}}}function n(a){q.sendEvent(a.type,{message:"HTML5 player not found"})}var q=this,j=new g.eventdispatcher;a.extend(q,j);q.embed=function(){if(d.html5){k.setupPlugins(l,e,m);c.innerHTML="";var f=d.utils.extend({},e);delete f.volume;f=new d.html5.player(f);l.container=document.getElementById(l.id);
1464l.setPlayer(f,"html5")}else f=new a.scriptloader(b.src),f.addEventListener(g.ERROR,n),f.addEventListener(g.COMPLETE,q.embed),f.load()};q.supportsConfig=function(){if(d.vid.canPlayType)try{if("string"==a.typeOf(e.playlist))return!0;for(var b=e.playlist[0].sources,c=0;c<b.length;c++){var g;var k=b[c].file,j=b[c].type;if(null!==navigator.userAgent.match(/BlackBerry/i)||a.isAndroid()&&("m3u"==a.extension(k)||"m3u8"==a.extension(k))||a.isRtmp(k,j))g=!1;else{var l=h[j?j:a.extension(k)],m;if(!l||l.flash&&
1465!l.html5)m=!1;else{var n=l.html5,q=d.vid;if(n)try{m=q.canPlayType(n)?!0:!1}catch(z){m=!1}else m=!0}g=m}if(g)return!0}}catch(A){}return!1}}}(jwplayer),function(d){var a=d.embed,h=d.utils,g=h.extend(function(c){var b=h.repo(),e=c.config,g=e.plugins,l=e.analytics,m=b+"jwpsrv.js",n=b+"sharing.js",q=b+"related.js",j=b+"gapro.js",f=(new d.utils.key(d.key)).edition(),g=g?g:{};"ads"==f&&e.advertising&&(e.advertising.client.match(".js$|.swf$")?g[e.advertising.client]=e.advertising:g[b+e.advertising.client+
1466("flash"==e.primary?".swf":".js")]=e.advertising);delete e.advertising;e.key=d.key;e.analytics&&(e.analytics.client&&e.analytics.client.match(".js$|.swf$"))&&(m=e.analytics.client);delete e.analytics;if("free"==f||!l||!1!==l.enabled)g[m]=l?l:{};delete g.sharing;delete g.related;if("premium"==f||"ads"==f)e.sharing&&(e.sharing.client&&e.sharing.client.match(".js$|.swf$")&&(n=e.sharing.client),g[n]=e.sharing),e.related&&(e.related.client&&e.related.client.match(".js$|.swf$")&&(q=e.related.client),g[q]=
1467e.related),e.ga&&(e.ga.client&&e.ga.client.match(".js$|.swf$")&&(j=e.ga.client),g[j]=e.ga),e.skin&&(e.skin=e.skin.replace(/^(beelden|bekle|five|glow|modieus|roundster|stormtrooper|vapor)$/i,h.repo()+"skins/$1.xml").toLowerCase());e.plugins=g;return new a(c)},a);d.embed=g}(jwplayer),function(d){var a=[],h=d.utils,g=d.events,c=g.state,b=document,e=d.api=function(a){function l(a,b){return function(c){return b(a,c)}}function m(a,b){p[a]||(p[a]=[],q(g.JWPLAYER_PLAYER_STATE,function(b){var c=b.newstate;
1468b=b.oldstate;if(c==a){var e=p[c];if(e)for(var d=0;d<e.length;d++)"function"==typeof e[d]&&e[d].call(this,{oldstate:b,newstate:c})}}));p[a].push(b);return f}function n(a,b){try{a.jwAddEventListener(b,'function(dat) { jwplayer("'+f.id+'").dispatchEvent("'+b+'", dat); }')}catch(c){h.log("Could not add internal listener")}}function q(a,b){r[a]||(r[a]=[],s&&u&&n(s,a));r[a].push(b);return f}function j(){if(u){for(var a=arguments[0],b=[],c=1;c<arguments.length;c++)b.push(arguments[c]);if("undefined"!=typeof s&&
1469"function"==typeof s[a])switch(b.length){case 4:return s[a](b[0],b[1],b[2],b[3]);case 3:return s[a](b[0],b[1],b[2]);case 2:return s[a](b[0],b[1]);case 1:return s[a](b[0]);default:return s[a]()}return null}t.push(arguments)}var f=this,r={},p={},s=void 0,u=!1,t=[],w=void 0,x={},y={};f.container=a;f.id=a.id;f.getBuffer=function(){return j("jwGetBuffer")};f.getContainer=function(){return f.container};f.addButton=function(a,b,c,e){try{y[e]=c,j("jwDockAddButton",a,b,"jwplayer('"+f.id+"').callback('"+e+
1470"')",e)}catch(d){h.log("Could not add dock button"+d.message)}};f.removeButton=function(a){j("jwDockRemoveButton",a)};f.callback=function(a){if(y[a])y[a]()};f.forceState=function(a){j("jwForceState",a);return f};f.releaseState=function(){return j("jwReleaseState")};f.getDuration=function(){return j("jwGetDuration")};f.getFullscreen=function(){return j("jwGetFullscreen")};f.getStretching=function(){return j("jwGetStretching")};f.getHeight=function(){return j("jwGetHeight")};f.getLockState=function(){return j("jwGetLockState")};
1471f.getMeta=function(){return f.getItemMeta()};f.getMute=function(){return j("jwGetMute")};f.getPlaylist=function(){var a=j("jwGetPlaylist");"flash"==f.renderingMode&&h.deepReplaceKeyName(a,["__dot__","__spc__","__dsh__","__default__"],["."," ","-","default"]);return a};f.getPlaylistItem=function(a){h.exists(a)||(a=f.getCurrentItem());return f.getPlaylist()[a]};f.getPosition=function(){return j("jwGetPosition")};f.getRenderingMode=function(){return f.renderingMode};f.getState=function(){return j("jwGetState")};
1472f.getVolume=function(){return j("jwGetVolume")};f.getWidth=function(){return j("jwGetWidth")};f.setFullscreen=function(a){h.exists(a)?j("jwSetFullscreen",a):j("jwSetFullscreen",!j("jwGetFullscreen"));return f};f.setStretching=function(a){j("jwSetStretching",a);return f};f.setMute=function(a){h.exists(a)?j("jwSetMute",a):j("jwSetMute",!j("jwGetMute"));return f};f.lock=function(){return f};f.unlock=function(){return f};f.load=function(a){j("jwLoad",a);return f};f.playlistItem=function(a){j("jwPlaylistItem",
1473parseInt(a));return f};f.playlistPrev=function(){j("jwPlaylistPrev");return f};f.playlistNext=function(){j("jwPlaylistNext");return f};f.resize=function(a,c){if("flash"!=f.renderingMode)j("jwResize",a,c);else{var e=b.getElementById(f.id+"_wrapper");e&&(e.style.width=h.styleDimension(a),e.style.height=h.styleDimension(c))}return f};f.play=function(a){"undefined"==typeof a?(a=f.getState(),a==c.PLAYING||a==c.BUFFERING?j("jwPause"):j("jwPlay")):j("jwPlay",a);return f};f.pause=function(a){"undefined"==
1474typeof a?(a=f.getState(),a==c.PLAYING||a==c.BUFFERING?j("jwPause"):j("jwPlay")):j("jwPause",a);return f};f.stop=function(){j("jwStop");return f};f.seek=function(a){j("jwSeek",a);return f};f.setVolume=function(a){j("jwSetVolume",a);return f};
1474f.loadInstream=function(a,b){return w=new e.instream(this,s,a,b)};f.getQualityLevels=function(){return j("jwGetQualityLevels")};f.getCurrentQuality=function(){return j("jwGetCurrentQuality")};f.setCurrentQuality=function(a){j("jwSetCurrentQuality",a)};f.getCaptionsList=
1475function(){return j("jwGetCaptionsList")};f.getCurrentCaptions=function(){return j("jwGetCurrentCaptions")};f.setCurrentCaptions=function(a){j("jwSetCurrentCaptions",a)};f.getControls=function(){return j("jwGetControls")};f.getSafeRegion=function(){return j("jwGetSafeRegion")};f.setControls=function(a){j("jwSetControls",a)};f.destroyPlayer=function(){j("jwPlayerDestroy")};var z={onBufferChange:g.JWPLAYER_MEDIA_BUFFER,onBufferFull:g.JWPLAYER_MEDIA_BUFFER_FULL,onError:g.JWPLAYER_ERROR,onFullscreen:g.JWPLAYER_FULLSCREEN,
1476onMeta:g.JWPLAYER_MEDIA_META,onMute:g.JWPLAYER_MEDIA_MUTE,onPlaylist:g.JWPLAYER_PLAYLIST_LOADED,onPlaylistItem:g.JWPLAYER_PLAYLIST_ITEM,onPlaylistComplete:g.JWPLAYER_PLAYLIST_COMPLETE,onReady:g.API_READY,onResize:g.JWPLAYER_RESIZE,onComplete:g.JWPLAYER_MEDIA_COMPLETE,onSeek:g.JWPLAYER_MEDIA_SEEK,onTime:g.JWPLAYER_MEDIA_TIME,onVolume:g.JWPLAYER_MEDIA_VOLUME,onBeforePlay:g.JWPLAYER_MEDIA_BEFOREPLAY,onBeforeComplete:g.JWPLAYER_MEDIA_BEFORECOMPLETE,onDisplayClick:g.JWPLAYER_DISPLAY_CLICK,onControls:g.JWPLAYER_CONTROLS,
1477onQualityLevels:g.JWPLAYER_MEDIA_LEVELS,onQualityChange:g.JWPLAYER_MEDIA_LEVEL_CHANGED,onCaptionsList:g.JWPLAYER_CAPTIONS_LIST,onCaptionsChange:g.JWPLAYER_CAPTIONS_CHANGED};h.foreach(z,function(a){f[a]=l(z[a],q)});var A={onBuffer:c.BUFFERING,onPause:c.PAUSED,onPlay:c.PLAYING,onIdle:c.IDLE};h.foreach(A,function(a){f[a]=l(A[a],m)});f.remove=function(){if(!u)throw"Cannot call remove() before player is ready";t=[];e.destroyPlayer(this.id)};f.setup=function(a){if(d.embed){var c=b.getElementById(f.id);
1478c&&(a.fallbackDiv=c);c=f;t=[];e.destroyPlayer(c.id);c=d(f.id);c.config=a;return new d.embed(c)}return f};f.registerPlugin=function(a,b,c,e){d.plugins.registerPlugin(a,b,c,e)};f.setPlayer=function(a,b){s=a;f.renderingMode=b};f.detachMedia=function(){if("html5"==f.renderingMode)return j("jwDetachMedia")};f.attachMedia=function(a){if("html5"==f.renderingMode)return j("jwAttachMedia",a)};f.dispatchEvent=function(a,b){if(r[a])for(var c=h.translateEventResponse(a,b),e=0;e<r[a].length;e++)if("function"==
1479typeof r[a][e])try{r[a][e].call(this,c)}catch(d){h.log("There was an error calling back an event handler")}};f.dispatchInstreamEvent=function(a){w&&w.dispatchEvent(a,arguments)};f.callInternal=j;f.playerReady=function(a){u=!0;s||f.setPlayer(b.getElementById(a.id));f.container=b.getElementById(f.id);h.foreach(r,function(a){n(s,a)});q(g.JWPLAYER_PLAYLIST_ITEM,function(){x={}});q(g.JWPLAYER_MEDIA_META,function(a){h.extend(x,a.metadata)});for(f.dispatchEvent(g.API_READY);0<t.length;)j.apply(this,t.shift())};
1480f.getItemMeta=function(){return x};f.getCurrentItem=function(){return j("jwGetPlaylistIndex")};return f};e.selectPlayer=function(c){var d;h.exists(c)||(c=0);c.nodeType?d=c:"string"==typeof c&&(d=b.getElementById(c));return d?(c=e.playerById(d.id))?c:e.addPlayer(new e(d)):"number"==typeof c?a[c]:null};e.playerById=function(b){for(var c=0;c<a.length;c++)if(a[c].id==b)return a[c];return null};e.addPlayer=function(b){for(var c=0;c<a.length;c++)if(a[c]==b)return b;a.push(b);return b};e.destroyPlayer=function(c){for(var e=
1481-1,d,g=0;g<a.length;g++)a[g].id==c&&(e=g,d=a[g]);0<=e&&(c=d.id,g=b.getElementById(c+("flash"==d.renderingMode?"_wrapper":"")),h.clearCss&&h.clearCss("#"+c),g&&("html5"==d.renderingMode&&d.destroyPlayer(),d=b.createElement("div"),d.id=c,g.parentNode.replaceChild(d,g)),a.splice(e,1));return null};d.playerReady=function(a){var b=d.api.playerById(a.id);b?b.playerReady(a):d.api.selectPlayer(a.id).playerReady(a)}}(jwplayer),function(d){d.api.instream=function(a,d,g,c){this.play=function(a){d.jwInstreamPlay(a)};
1482this.pause=function(a){d.jwInstreamPause(a)};this.destroy=function(){d.jwInstreamDestroy()};a.callInternal("jwLoadInstream",g,c?c:{})}}(jwplayer),function(d){var a=d.api,h=a.selectPlayer;a.selectPlayer=function(a){return(a=h(a))?a:{registerPlugin:function(a,b,e){d.plugins.registerPlugin(a,b,e)}}}}(jwplayer));
vendor: 6,612 bytes, lines 1483-1663
1483
1484jwplayer.key="3s82hx6pB7a4AGyYKjNXbsJ83P6XflV5sTCa/g==";
1485
1486
1487
1488/*
1489 * Lazy Load - jQuery plugin for lazy loading images
1490 *
1491 * Copyright (c) 2007-2013 Mika Tuupola
1492 *
1493 * Licensed under the MIT license:
1494 *   http://www.opensource.org/licenses/mit-license.php
1495 *
1496 * Project home:
1497 *   http://www.appelsiini.net/projects/lazyload
1498 *
1499 * Version:  1.9.0
1500 *
1501 */
1502 
1503(function($, window, document, undefined) {
1504    var $window = $(window);
1505
1506    $.fn.lazyload = function(options) {
1507        var elements = this;
1508        var $container;
1509        var settings = {
1510            threshold       : 0,
1511            failure_limit   : 0,
1512            event           : "scroll",
1513            effect          : "show",
1514            container       : window,
1515            data_attribute  : "data-original",
1516            skip_invisible  : true,
1517            appear          : null,
1518            load            : null,
1519            placeholder     : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"
1520        };
1521
1522        function update() {
1523            var counter = 0;
1524      
1525            elements.each(function() {
1526                var $this = $(this);
1527                if (settings.skip_invisible && !$this.is(":visible")) {
1528					
1529                    return;
1530                }
1531                if ($.abovethetop(this, settings) || $.leftofbegin(this, settings)) {
1532                        /* Nothing - except load before visible */
1533						
1534						if(!settings.skip_invisible && settings.load) {
1535							$this.trigger("appear");
1536							counter = 0;
1537						}
1538                } else if (!$.belowthefold(this, settings) &&
1539                    !$.rightoffold(this, settings)) {
1540                        $this.trigger("appear");
1541						
1542                        /* if we found an image we'll load, reset the counter */
1543                        counter = 0;
1544                } else {
1545                    if (++counter > settings.failure_limit) {
1546						
1547                        return false;
1548                    }
1549                }
1550            });
1551
1552        }
1553
1554        if(options) {
1555            /* Maintain BC for a couple of versions. */
1556            if (undefined !== options.failurelimit) {
1557                options.failure_limit = options.failurelimit;
1558                delete options.failurelimit;
1559            }
1560            if (undefined !== options.effectspeed) {
1561                options.effect_speed = options.effectspeed;
1562                delete options.effectspeed;
1563            }
1564
1565            $.extend(settings, options);
1566        }
1567
1568        /* Cache container as jQuery as object. */
1569        $container = (settings.container === undefined ||
1570                      settings.container === window) ? $window : $(settings.container);
1571
1572        /* Fire one scroll event per scroll. Not one scroll event per image. */
1573        if (0 === settings.event.indexOf("scroll")) {
1574            $container.bind(settings.event, function() {
1575                return update();
1576            });
1577        }
1578
1579        this.each(function() {
1580            var self = this;
1581            var $self = $(self);
1582
1583            self.loaded = false;
1584
1585            /* If no src attribute given use data:uri. */
1586            if ($self.attr("src") === undefined || $self.attr("src") === false) {
1587                $self.attr("src", settings.placeholder);
1588            }
1589            
1590            /* When appear is triggered load original image. */
1591            $self.one("appear", function() {
1592                if (!this.loaded) {
1593                    if (settings.appear) {
1594                        var elements_left = elements.length;
1595                        settings.appear.call(self, elements_left, settings);
1596                    }
1597                    $("<img />")
1598                        .bind("load", function() {
1599                            var original = $self.attr(settings.data_attribute);
1600                            $self.hide();
1601                            if ($self.is("img")) {
1602                                $self.attr("src", original);
1603                            } else {
1604                                $self.css("background-image", "url('" + original + "')");
1605                            }
1606                            $self[settings.effect](settings.effect_speed);
1607                            
1608                            self.loaded = true;
1609
1610                            /* Remove image from array so it is not looped next time. */
1611                            var temp = $.grep(elements, function(element) {
1612                                return !element.loaded;
1613                            });
1614                            elements = $(temp);
1615
1616                            if (settings.load) {
1617							
1618                                var elements_left = elements.length;
1619                                settings.load.call(self, elements_left, settings);
1620                            }
1621                        })
1622                        .attr("src", $self.attr(settings.data_attribute));
1623                } 
1624            });
1625
1626            /* When wanted event is triggered load original image */
1627            /* by triggering appear.                              */
1628            if (0 !== settings.event.indexOf("scroll")) {
1629                $self.bind(settings.event, function() {
1630                    if (!self.loaded) {
1631                        $self.trigger("appear");
1632                    }
1633                });
1634            }
1635        });
1636
1637        /* Check if something appears when window is resized. */
1638        $window.bind("resize", function() {
1639            update();
1640        });
1641              
1642        /* With IOS5 force loading images when navigating with back button. */
1643        /* Non optimal workaround. */
1644        if ((/iphone|ipod|ipad.*os 5/gi).test(navigator.appVersion)) {
1645            $window.bind("pageshow", function(event) {
1646                if (event.originalEvent && event.originalEvent.persisted) {
1647                    elements.each(function() {
1648                        $(this).trigger("appear");
1649                    });
1650                }
1651            });
1652        }
1653
1654        /* Force initial check if images should appear. */
1655        $(document).ready(function() {
1656            update();
1657        });
1658        
1659        return this;
1660    };
1661
1662    /* Convenience methods in jQuery namespace.           */
1663    /* Use as  $.belowthefold(element, {threshold : 100, container : window}
1663) */
1664
1665    $.belowthefold = function(element, settings) {
1666        var fold;
1667        
1668        if (settings.container === undefined || settings.container === window) {
1669            fold = (window.innerHeight ? window.innerHeight : $window.height()) + $window.scrollTop();
1670        } else {
1671            fold = $(settings.container).offset().top + $(settings.container).height();
1672        }
1673
1674        return fold <= $(element).offset().top - settings.threshold;
1675    };
1676    
1677    $.rightoffold = function(element, settings) {
1678        var fold;
1679
1680        if (settings.container === undefined || settings.container === window) {
1681            fold = $window.width() + $window.scrollLeft();
1682        } else {
1683            fold = $(settings.container).offset().left + $(settings.container).width();
1684        }
1685
1686        return fold <= $(element).offset().left - settings.threshold;
1687    };
1688        
1689    $.abovethetop = function(element, settings) {
1690        var fold;
1691        
1692        if (settings.container === undefined || settings.container === window) {
1693            fold = $window.scrollTop();
1694        } else {
1695            fold = $(settings.container).offset().top;
1696        }
1697
1698        return fold >= $(element).offset().top + settings.threshold  + $(element).height();
1699    };
1700    
1701    $.leftofbegin = function(element, settings) {
1702        var fold;
1703        
1704        if (settings.container === undefined || settings.container === window) {
1705            fold = $window.scrollLeft();
1706        } else {
1707            fold = $(settings.container).offset().left;
1708        }
1709
1710        return fold >= $(element).offset().left + settings.threshold + $(element).width();
1711    };
1712
1713    $.inviewport = function(element, settings) {
1714         return !$.rightoffold(element, settings) && !$.leftofbegin(element, settings) &&
1715                !$.belowthefold(element, settings) && !$.abovethetop(element, settings);
1716     };
1717
1718    /* Custom selectors for your convenience.   */
1719    /* Use as $("img:below-the-fold").something() or */
1720    /* $("img").filter(":below-the-fold").something() which is faster */
1721
1722    $.extend($.expr[":"], {
1723        "below-the-fold" : function(a) { return $.belowthefold(a, {threshold : 0}); },
1724        "above-the-top"  : function(a) { return !$.belowthefold(a, {threshold : 0}); },
1725        "right-of-screen": function(a) { return $.rightoffold(a, {threshold : 0}); },
1726        "left-of-screen" : function(a) { return !$.rightoffold(a, {threshold : 0}); },
1727        "in-viewport"    : function(a) { return $.inviewport(a, {threshold : 0}); },
1728        /* Maintain BC for couple of versions. */
1729        "above-the-fold" : function(a) { return !$.belowthefold(a, {threshold : 0}); },
1730        "right-of-fold"  : function(a) { return $.rightoffold(a, {threshold : 0}); },
1731        "left-of-fold"   : function(a) { return !$.rightoffold(a, {threshold : 0}); }
1732    });
1733
1734})(jQuery, window, document);
1735
1736/*!
1737 * tn3 v1.4.0.93
1738 * http://tn3gallery.com/
1739 *
1740 * License
1741 * http://tn3gallery.com/license
1742 *
1743 * Date: 15 Feb, 2013 13:23:03 +0200
1744
1745 */
1746(function(g){function b(h){var l=h.skinDir+"/"+h.skin,k=f[l];if(k)k.loaded?a.call(this,h,k.html):k.queue.push({c:this,s:h});else{f[l]={loaded:false,queue:[{c:this,s:h}]};g.ajax({url:l+".html",dataType:"text",success:function(p){var u=f[l];u.loaded=true;u.html=p;for(p=0;p<u.queue.length;p++)a.call(u.queue[p].c,u.queue[p].s,u.html)},dataFilter:function(p){return p=p.substring(p.indexOf("<body>")+6,p.lastIndexOf("</body>"))},error:function(){if(h.error){var p=g.Event("tn3_error");p.description="tn3 skin load error";
1747h.error(p)}}})}return this}function a(h,l){this.each(function(){for(var k=g(this),p,u,v=l.indexOf("<img src=");v!=-1;){v+=10;u=l.indexOf('"',v);p=h.skinDir+"/"+l.substring(v,u);l=l.substr(0,v)+p+l.substr(u);v=l.indexOf("<img src=",v)}k.append(l);k.data("tn3").init(k,h.fullOnly)})}function c(h){var l=[],k=h.children(".tn3.album"),p,u;if(k.length>0)k.each(function(v){p=g(this);l[v]={title:p.find(":header").html()};g.extend(l[v],d(p));if(u=e(p)){l[v].imgs=u;if(!l[v].thumb)l[v].thumb=l[v].imgs[0].thumb}});
1748else if(u=e(h))l[0]={imgs:u};return l}function e(h){var l=[],k,p;k=h.children("ol,ul").children("li");if(k.length>0)k.each(function(u){p=g(this);$firsta=p.find("a:not(.tn3 > a)").filter(":first");l[u]={title:p.find(":header").filter(":first").html()};if($firsta.length>0){l[u].img=$firsta.attr("href");l[u].thumb=$firsta.find("img").attr("src")}else l[u].img=p.find("img").filter(":first").attr("src");g.extend(l[u],d(p));l[u].alt=p.find("img").filter(":first").attr("alt")||l[u].title});else{k=h.find("img");
1749k.each(function(u){p=g(this);$at=p.parent("a");l[u]=$at.length==0?{title:p.attr("title"),img:p.attr("src")}:{title:p.attr("title"),img:$at.attr("href"),thumb:p.attr("src")};l[u].alt=p.attr("alt")||l[u].title})}if(l.length==0)return null;return l}function d(h){var l={};h=h.children(".tn3");var k;g.each(h,function(){k=g(this);l[k.attr("class").substr(4)]=k.html()});return l}function i(h){g('a[href^="#tn3-'+h+'"]').click(function(l){var k=m[h];l=g(l.currentTarget).attr("href");l=l.substr(l.indexOf("-",
17505)+1);l=l.split("-");switch(l[0]){case "next":k.cAlbum!=null&&k.show("next",l[1]=="fs");break;case "prev":k.cAlbum!=null&&k.show("prev",l[1]=="fs");break;default:k.cAlbum!=parseInt(l[0])?k.showAlbum(parseInt(l[0]),parseInt(l[1]),l[2]=="fs"):k.show(parseInt(l[1]),l[2]=="fs")}})}function j(){if(m.length==0){var h=g(".tn3gallery");h.length>0&&h.tn3({})}}if(/1\.(0|1|2|3|4)\.(0|1)/.test(g.fn.jquery)||/^1.1/.test(g.fn.jquery)||/^1.2/.test(g.fn.jquery)||/^1.3/.test(g.fn.jquery))alert("tn3gallery requires jQuery v1.4.2 or later!  You are using v"+
1751g.fn.jquery);else{var f={},m=[];g.fn.tn3=function(h){h=g.extend(true,{},g.fn.tn3.config,h);if(h.skin!=null)if(typeof h.skin=="object"){h.skinDir+="/"+h.skin[0];if(h.cssID==null)h.cssID=h.skin[0];h.skin=h.skin[1]}else h.skinDir+="/"+h.skin;else{h.skin="tn3";h.skinDir+="/tn3";g.fn.tn3.dontLoad=true}if(h.cssID==null)h.cssID=h.skin==null?"tn3":h.skin;this.each(function(){var l=g(this);h.fullOnly?l.hide():l.css("visibility","hidden");var k=h.data?h.data:c(l);k=m.push(new g.fn.tn3.Gallery(k,h))-1;l.data("tn3",
1752m[k]);for(var p=0;p<g.fn.tn3.plugins.length;p++)g.fn.tn3.plugins[p].init(l,h,m[k]);l.empty();i(k)});g.fn.tn3.dontLoad?a.call(this,h,h.skinDefault):b.call(this,h);return this};g.fn.tn3.plugins=[];g.fn.tn3.plugIn=function(h,l){g.fn.tn3.plugins.push({id:h,init:l})};g.fn.tn3.version="1.4.0.93";g.fn.tn3.config={data:null,skin:null,skinDir:"skins",skinDefault:'<div class="tn3
1752-gallery"><div class="tn3-image"><div class="tn3-text-bg"><div class="tn3-image-title"></div><div class="tn3-image-description"></div></div><div class="tn3-next tn3_v tn3_o"></div><div class="tn3-prev tn3_v tn3_o"></div><div class="tn3-preloader tn3_h tn3_v"><img src="preload.gif"/></div><div class="tn3-timer"></div></div><div class="tn3-controls-bg tn3_rh"><div class="tn3-sep1"></div><div class="tn3-sep2"></div><div class="tn3-sep3"></div></div><div class="tn3-thumbs"></div><div class="tn3-fullscreen"></div><div class="tn3-show-albums"></div><div class="tn3-next-page"></div><div class="tn3-prev-page"></div><div class="tn3-play"></div><div class="tn3-count"></div><div class="tn3-albums"><div class="tn3-inalbums"><div class="tn3-album"></div></div><div class="tn3-albums-next"></div><div class="tn3-albums-prev"></div><div class="tn3-albums-close"></div></div></div>',
1753cssID:null};g.fn.tn3.translations={};g.fn.tn3.translate=function(h,l){if(l)g.fn.tn3.translations[h]=l;else{var k=g.fn.tn3.translations[h];return k?k:h}};g(function(){setTimeout(j,1)})}})(jQuery);
1754(function(g){g.fn.tn3utils=U={};U.shuffle=function(b){var a,c,e=b.length;if(e)for(;--e;){c=Math.floor(Math.random()*(e+1));a=b[c];b[c]=b[e];b[e]=a}};g.extend(g.easing,{def:"easeOutQuad",swing:function(b,a,c,e,d){return g.easing[g.easing.def](b,a,c,e,d)},linear:function(b,a,c,e,d){return e*a/d+c},easeInQuad:function(b,a,c,e,d){return e*(a/=d)*a+c},easeOutQuad:function(b,a,c,e,d){return-e*(a/=d)*(a-2)+c},easeInOutQuad:function(b,a,c,e,d){if((a/=d/2)<1)return e/2*a*a+c;return-e/2*(--a*(a-2)-1)+c},easeInCubic:function(b,
1755a,c,e,d){return e*(a/=d)*a*a+c},easeOutCubic:function(b,a,c,e,d){return e*((a=a/d-1)*a*a+1)+c},easeInOutCubic:function(b,a,c,e,d){if((a/=d/2)<1)return e/2*a*a*a+c;return e/2*((a-=2)*a*a+2)+c},easeInQuart:function(b,a,c,e,d){return e*(a/=d)*a*a*a+c},easeOutQuart:function(b,a,c,e,d){return-e*((a=a/d-1)*a*a*a-1)+c},easeInOutQuart:function(b,a,c,e,d){if((a/=d/2)<1)return e/2*a*a*a*a+c;return-e/2*((a-=2)*a*a*a-2)+c},easeInQuint:function(b,a,c,e,d){return e*(a/=d)*a*a*a*a+c},easeOutQuint:function(b,a,c,
1756e,d){return e*((a=a/d-1)*a*a*a*a+1)+c},easeInOutQuint:function(b,a,c,e,d){if((a/=d/2)<1)return e/2*a*a*a*a*a+c;return e/2*((a-=2)*a*a*a*a+2)+c},easeInSine:function(b,a,c,e,d){return-e*Math.cos(a/d*(Math.PI/2))+e+c},easeOutSine:function(b,a,c,e,d){return e*Math.sin(a/d*(Math.PI/2))+c},easeInOutSine:function(b,a,c,e,d){return-e/2*(Math.cos(Math.PI*a/d)-1)+c},easeInExpo:function(b,a,c,e,d){return a==0?c:e*Math.pow(2,10*(a/d-1))+c},easeOutExpo:function(b,a,c,e,d){return a==d?c+e:e*(-Math.pow(2,-10*a/
1757d)+1)+c},easeInOutExpo:function(b,a,c,e,d){if(a==0)return c;if(a==d)return c+e;if((a/=d/2)<1)return e/2*Math.pow(2,10*(a-1))+c;return e/2*(-Math.pow(2,-10*--a)+2)+c},easeInCirc:function(b,a,c,e,d){return-e*(Math.sqrt(1-(a/=d)*a)-1)+c},easeOutCirc:function(b,a,c,e,d){return e*Math.sqrt(1-(a=a/d-1)*a)+c},easeInOutCirc:function(b,a,c,e,d){if((a/=d/2)<1)return-e/2*(Math.sqrt(1-a*a)-1)+c;return e/2*(Math.sqrt(1-(a-=2)*a)+1)+c},easeInElastic:function(b,a,c,e,d){b=1.70158;var i=0,j=e;if(a==0)return c;if((a/=
1758d)==1)return c+e;i||(i=d*0.3);if(j<Math.abs(e)){j=e;b=i/4}else b=i/(2*Math.PI)*Math.asin(e/j);return-(j*Math.pow(2,10*(a-=1))*Math.sin((a*d-b)*2*Math.PI/i))+c},easeOutElastic:function(b,a,c,e,d){b=1.70158;var i=0,j=e;if(a==0)return c;if((a/=d)==1)return c+e;i||(i=d*0.3);if(j<Math.abs(e)){j=e;b=i/4}else b=i/(2*Math.PI)*Math.asin(e/j);return j*Math.pow(2,-10*a)*Math.sin((a*d-b)*2*Math.PI/i)+e+c},easeInOutElastic:function(b,a,c,e,d){b=1.70158;var i=0,j=e;if(a==0)return c;if((a/=d/2)==2)return c+e;i||
1759(i=d*0.3*1.5);if(j<Math.abs(e)){j=e;b=i/4}else b=i/(2*Math.PI)*Math.asin(e/j);if(a<1)return-0.5*j*Math.pow(2,10*(a-=1))*Math.sin((a*d-b)*2*Math.PI/i)+c;return j*Math.pow(2,-10*(a-=1))*Math.sin((a*d-b)*2*Math.PI/i)*0.5+e+c},easeInBack:function(b,a,c,e,d,i){if(i==undefined)i=1.70158;return e*(a/=d)*a*((i+1)*a-i)+c},easeOutBack:function(b,a,c,e,d,i){if(i==undefined)i=1.70158;return e*((a=a/d-1)*a*((i+1)*a+i)+1)+c},easeInOutBack:function(b,a,c,e,d,i){if(i==undefined)i=1.70158;if((a/=d/2)<1)return e/2*
1760a*a*(((i*=1.525)+1)*a-i)+c;return e/2*((a-=2)*a*(((i*=1.525)+1)*a+i)+2)+c}
1760,easeInBounce:function(b,a,c,e,d){return e-g.easing.easeOutBounce(b,d-a,0,e,d)+c},easeOutBounce:function(b,a,c,e,d){return(a/=d)<1/2.75?e*7.5625*a*a+c:a<2/2.75?e*(7.5625*(a-=1.5/2.75)*a+0.75)+c:a<2.5/2.75?e*(7.5625*(a-=2.25/2.75)*a+0.9375)+c:e*(7.5625*(a-=2.625/2.75)*a+0.984375)+c},easeInOutBounce:function(b,a,c,e,d){if(a<d/2)return g.easing.easeInBounce(b,a*2,0,e,d)*0.5+c;return g.easing.easeOutBounce(b,a*2-d,0,e,d)*0.5+e*
17610.5+c}})})(jQuery);
1762(function(g){g.fn.tn3.Gallery=function(d,i){this.data=d;this.config=g.extend(true,{},g.fn.tn3.Gallery.config,i);this.initialized=false;this.t=g.fn.tn3.translate;this.loader=new g.fn.tn3.External(i.external,this)};g.fn.tn3.Gallery.config={cssID:"tn3",active:[],inactive:[],iniAlbum:0,iniImage:0,imageClick:"next",startWithAlbums:false,autoplay:false,delay:7E3,timerMode:"bar",timerSteps:300,timerStepChar:"&#8226;",isFullScreen:false,fullOnly:false,width:null,height:null,mouseWheel:true,keyNavigation:"fullscreen",
1763timerOverStop:true,responsive:false,useNativeFullScreen:true,autohideControls:false,autohideOver:true,overFadeDuration:300,spinjs:null,image:{},thumbnailer:{},touch:{}};g.fn.tn3.Gallery.prototype={config:null,$c:null,$tn3:null,data:null,thumbnailer:null,imager:null,cAlbum:null,timer:null,items:null,initialized:null,n:null,albums:null,loader:null,fso:null,timerSize:null,special:null,areHidden:false,$inImage:null,isPlaying:false,cparent:null,spinner:null,showInit:false,init:function(d,i){this.$c=d;
1764if(!(this.loader.reqs>0||this.data.length==0||i)){this.trigger("init_start");this.config.useNativeFullScreen=this.config.useNativeFullScreen&&b.supportsFullScreen;this.config.fullOnly&&this.$c.show();this.$c.css("visibility","visible");this.$tn3=this.$c.find("."+this.config.cssID+"-gallery");var j=this.config.initValues={width:this.$tn3.width(),height:this.$tn3.height()};this.$tn3.css("float","left");j.wDif=this.$tn3.outerWidth(true)-j.width;j.hDif=this.$tn3.outerHeight(true)-j.height;this.config.mouseWheel&&
1765this.initMouseWheel();var f=this;this.timer=new g.fn.tn3.Timer(this.$c,this.config.delay,this.config.timerSteps);this.$c.bind("tn3_timer_end",function(){f.show("next")});this.special={rv:[],rh:[],v:[],h:[],vi:[],hi:[],o:[],x:{}};this.parseLayout();this.center();g.each(this.items,function(m,h){switch(m){case "next":h.click(function(k){f.show("next");k.stopPropagation()});h.attr("title",f.t("Next Image"));break;case "prev":h.click(function(k){f.show("prev");k.stopPropagation()});h.attr("title",f.t("Previous Image"));
1766break;case "next-page":h.click(function(){f.items.thumbs&&f.thumbnailer.next(true)});h.attr("title",f.t("Next Page"));break;case "prev-page":h.click(function(){f.items.thumbs&&f.thumbnailer.prev(true)});h.attr("title",f.t("Previous Page"));break;case "thumbs":f.config.thumbnailer.cssID=f.config.cssID;f.config.thumbnailer.initValues={width:h.width(),height:h.height()};f.config.thumbnailer.initValues.vertical=h.width()<=h.height();h.bind("tn_click",function(k){f.show(k.n)}).bind("tn_over",function(){f.timer.pause(true)}).bind("tn_out",
1767function(){f.timer.pause(false)}).bind("tn_error",function(k){f.trigger("error",k)});break;case "image":f.config.image.cssID=f.config.cssID;f.config.image.initValues={width:h.width(),height:h.height()};h.bind("img_click",function(k){switch(f.config.imageClick){case "next":f.show("next");break;case "fullscreen":f.fullscreen(true);break;case "url":if(k=f.data[f.cAlbum].imgs[k.n].url.replace(/&amp;/g,"&"))window.location=k}}).bind("img_load_start",function(){f.displayPreloader(true)}).bind("img_load_end",
1768function(k){f.n=k.n;f.displayPreloader(false);f.items.timer&&f.items.timer.hide();f.$inImage&&f.$inImage.hide()}).bind("img_transition",function(k){f.setTextValues(false,"image");f.items.thumbs&&f.thumbnailer.thumbClick(f.n);f.$inImage&&f.imager.cached[k.n].isImage&&f.$inImage.fadeIn(300);f.items.count&&f.items.count.text(f.n+1+"/"+f.data[f.cAlbum].imgs.length);f.isPlaying&&f.timer.start();f.special.o.length>0&&f.config.autohideOver&&f.hideElements();if(f.config.autohideControls){if(f.items.prev)f.items.prev[k.n==
17690?"hide":"show"]();if(f.items.next)f.items.next[k.n==f.imager.data.length-1?"hide":"show"]()}}).bind("img_enter",function(){f.imageEnter()}).bind("img_leave",function(){f.imageLeave()}).bind("img_resize",function(k){if(f.$inImage){f.$inImage.width(k.w).height(k.h).css("left",k.left).css("top",k.top);f.center();f.imager.bindMouseEvents(f.$inImage)}}).bind("img_error",function(k){f.trigger("error",k)});break;case "preloader":f.config.spinjs&&h.find("img").remove();f.displayPreloader(false);break;case "timer":var l=
1770h.width()>h.height()?"width":"height";f.$c.bind("timer_tick",function(k){if(f.config.timerMode=="char"){for(var p=f.config.timerStepChar;--k.tick;)p+=f.config.timerStepChar;f.items.timer.html(p)}else f.items.timer[l](f.timerSize/k.totalTicks*k.tick);
1770f.trigger(k.type,k)}).bind("timer_start",function(k){f.timerSize=f.$inImage[l]();f.items.timer.fadeIn(300);f.items.play&&f.items.play.addClass(f.config.cssID+"-play-active");f.trigger(k.type,k)}).bind("timer_end timer_stop",function(k){f.items.timer.hide();
1771f.trigger(k.type,k)});h.hide();break;case "play":h.click(function(k){var p={id:"play",execute:true};f.trigger("control",p);if(f.isPlaying){if(p.execute){f.timer.stop();h.removeClass(f.config.cssID+"-play-active");h.attr("title",f.t("Start Slideshow"))}f.isPlaying=false}else{if(p.execute){f.timer.start();h.addClass(f.config.cssID+"-play-active");h.attr("title",f.t("Stop Slideshow"))}f.isPlaying=true}k.stopPropagation()});h.attr("title",f.t("Start Slideshow"));break;case "count":break;case "albums":f.albums=
1772new g.fn.tn3.Albums(f.data,h,f.config.cssID);h.hide();h.bind("albums_binit",function(k){f.trigger(k.type,k)}).bind("albums_click",function(k){f.showAlbum(k.n);f.trigger(k.type,k)}).bind("albums_init",function(k){f.timer.pause(true);f.trigger(k.type,k)}).bind("albums_error",function(k){f.trigger("error",k)}).bind("albums_close",function(){f.timer.pause(false)});break;case "album":break;case "albums-next":f.albums&&f.albums.setControl("next",h);h.attr("title",f.t("Next Album Page"));break;case "albums-prev":f.albums&&
1773f.albums.setControl("prev",h);h.attr("title",f.t("Previous Album Page"));break;case "albums-close":f.albums&&f.albums.setControl("close",h);h.attr("title",f.t("Close"));break;case "show-albums":h.click(function(k){f.items.albums&&f.albums.show(0,f.cAlbum,false,true);k.stopPropagation()});h.attr("title",f.t("Album List"));break;case "fullscreen":h.click(function(k){var p={id:"fullscreen",execute:true};f.trigger("control",p);p.execute&&f.fullscreen(true);k.stopPropagation()});h.attr("title",f.t("Maximize"));
1774break;default:f.special.x[m]&&h.click(function(k){var p=!f.items[f.special.x[m]].is(":visible"),u={id:m,execute:true,active:p};f.trigger("control",u);if(u.execute){p?h.addClass(f.config.cssID+"-"+m+"-active"):h.removeClass(f.config.cssID+"-"+m+"-active");f.items[f.special.x[m]].toggle()}k.stopPropagation()})}});if(this.config.width!==null||this.config.height!==null){if(this.config.width==null)this.config.width=this.config.initValues.width;if(this.config.height==null)this.config.height=this.config.initValues.height;
1775this.resize(this.config.width,this.config.height)}j=Math.min(this.config.iniAlbum,this.data.length-1);this.config.responsive!==false&&this.initResponsive(this.config.responsive);this.initialized=true;this.config.startWithAlbums&&this.data.length>1&&this.items.albums?this.albums.show():this.showAlbum(j,this.config.iniImage);this.config.isFullScreen&&this.onFullResize();this.config.keyNavigation=="always"&&g(document).bind("keyup",g.proxy(this.listenKeys,this));if(this.config.autoplay)this.items.play?
1776this.items.play.click():this.timer.start();this.trigger("init")}},parseLayout:function(){var d=this.items={},i=this.config,j=i.active,f=i.inactive,m=i.cssID.length+1,h=this,l=/MSIE/.test(navigator.userAgent),k,p;this.$c.find("div[class^='"+i.cssID+"-']").each(function(){k=g(this);p=k.attr("class").split(" ")[0].substr(m);if(g.inArray(p,f)!=-1)k.remove();else if(j.length==0||g.inArray(p,j)!=-1)d[p]=k;else p!="gallery"&&k.remove();if(k.parent().hasClass(i.cssID+"-image")){if(!h.$inImage){h.$inImage=
1777g('<div class="tn3-in-image"></div>');k.parent().append(h.$inImage);if(l){var u=g("<div />");u.css("background-color","#fff").css("opacity",0).css("width","100%").css("height","100%");u.appendTo(h.$inImage)}h.$inImage.css("position","absolute").width(d.image.width()).height(d.image.height())}k.appendTo(h.$inImage)}this.className.indexOf("tn3_")!=-1&&h.addSpecial(p,this.className)})},addSpecial:function(d,i){for(var j=i.split(" "),f,m=0;m<j.length;m++){f=j[m].split("_");if(f[0]=="tn3")if(f[1]=="x")this.special.x[d]=
1778
1779
1780f[2];else{this.special[f[1]].push(d);if(f[1]=="rh"||f[1]=="rv")this.config.initValues[d]={w:this.items[d].width(),h:this.items[d].height()}}}},initHover:function(d,i){var j=this;d.hover(function(){d.addClass(j.config.cssID+"-"+i+"-over")},function(){d.removeClass(j.config.cssID+"-"+i+"-over")})},setTextValues:function(d,i){var j,f,m,h=i+"-";for(m in this.items)if(m.indexOf(h)==0){j=m.substr(h.length);if(j!="info"&&j!="prev"&&j!="next"){f=i=="image"?this.data[this.cAlbum].imgs[this.n]:this.data[this.cAlbum];
1781if(!f||f[j]==undefined){f={};f[j]=""}else f[j]=g.trim(f[j]);j={field:j,text:f[j],data:f};this.trigger("set_text",j);if(d||j.text==undefined||j.text.length==0){this.items[m].html("");this.items[m].hide()}else{this.items[m].html(j.text);this.items[m].show()}}}},show:function(d,i){this.timer.stop();this.showInit=true;this.imager&&this.imager.show(d);i&&this.fullscreen()},setAlbumData:function(d,i){if(i)this.trigger("error",{description:i});else{for(var j=0,f=d.length;j<f;j++)this.data.push(d[j]);this.$c&&
1782this.init(this.$c,this.config.fullOnly)}},setImageData:function(d,i,j){if(j)this.trigger("error",{description:j});else{this.displayPreloader(false);d={data:d};this.trigger("image_data",d);this.data[i].imgs=d.data;if(this.cAlbum==i)this.rebuild(d.data,this.showInit?0:this.config.iniImage)}},showAlbum:function(d,i,j){if(this.initialized){if(d>this.data.length)return;this.timer.stop();this.cAlbum=d;this.albums&&this.albums.hide();
1782if(this.data[this.cAlbum].imgs===undefined)if(this.loader){this.loader.getImages(this.data[this.cAlbum].adata,
1783this.cAlbum);this.displayPreloader(true)}else this.trigger("error",{description:"Wrong album id"});else this.rebuild(this.data[this.cAlbum].imgs,i)}else{this.config.iniAlbum=d;this.config.iniImage=i;this.init(this.$c,false)}j&&this.fullscreen()},rebuild:function(d,i){if(this.items.thumbs)if(this.thumbnailer)this.thumbnailer.rebuild(d);else this.thumbnailer=new g.fn.tn3.Thumbnailer(this.items.thumbs,d,this.config.thumbnailer);if(this.items.image)if(this.imager)this.imager.rebuild(d);else this.imager=
1784new g.fn.tn3.Imager(this.items.image,d,this.config.image);this.setTextValues(true,"image");this.setTextValues(false,"album");this.trigger("rebuild",{album:this.cAlbum});this.show(i==null?0:i)},showElements:function(d){if(this.areHidden){var i=this,j;g.each(this.special.o,function(f,m){j=i.items[m];j.show();if(d&&g.support.opacity){j.stop(true);j.css("opacity",0);j.animate({opacity:1},{duration:d,queue:false})}});this.areHidden=false}},hideElements:function(d){if(!this.areHidden){var i=this,j;g.each(this.special.o,
1785function(f,m){j=i.items[m];if(d&&g.support.opacity){j.stop(true);j.animate({opacity:0}
1785,{duration:d,complete:function(){j.hide()},queue:false})}else j.hide()});this.areHidden=true}},setData:function(d){if(this.items.thumbs)this.thumbnailer.data=d;if(this.items.imager)this.imager.data=d},exitFullScreen:function(){!b.isFullScreen()&&this.config.isFullScreen&&this.fullscreen()},nativeFS:false,fullscreen:function(d){if(this.config.isFullScreen){if(this.config.useNativeFullScreen&&this.nativeFS){b.cancelFullScreen(this.$c[0]);
1786document.removeEventListener(b.fullScreenEventName,g.proxy(this.exitFullScreen,this))}else{g(window).unbind("resize",this.onFullResize);g.tn3unblock()}if(this.config.responsive!==false)this.initResponsive(this.config.responsive);else this.config.width!==null||this.config.height!==null?this.resize(this.config.width,this.config.height):this.resize(this.config.initValues.width,this.config.initValues.height);if(this.items.fullscreen){this.items.fullscreen.removeClass(this.config.cssID+"-fullscreen-active");
1787this.items.fullscreen.attr("title",this.t("Maximize"))}this.config.fullOnly&&this.$c.hide();this.config.isFullScreen=false;this.trigger("fullscreen",{fullscreen:false});this.config.keyNavigation=="fullscreen"&&g(document).unbind("keyup",this.listenKeys)}else{if(this.config.useNativeFullScreen&&d){document.addEventListener(b.fullScreenEventName,g.proxy(this.exitFullScreen,this),true);b.requestFullScreen(this.$c[0]);this.nativeFS=true}else{g.tn3block({message:this.$tn3,cssID:this.config.cssID});g(window).bind("resize",
1788g.proxy(this.onFullResize,this));this.nativeFS=false}this.config.fullOnly&&this.$c.show();this.config.isFullScreen=true;if(this.items.fullscreen){this.items.fullscreen.addClass(this.config.cssID+"-fullscreen-active");this.items.fullscreen.attr("title",this.t("Minimize"))}this.onFullResize();this.config.keyNavigation=="fullscreen"&&g(document).bind("keyup",g.proxy(this.listenKeys,this));this.trigger("fullscreen",{fullscreen:true})}},listenKeys:function(d){if(d.keyCode==70)this.items.fullscreen.click();
1789else if(this.items.albums&&this.albums.enabled){var i=0;switch(d.keyCode){case 27:this.albums.hide();break;case 39:i="r";break;case 37:i="l";break;case 38:i="u";break;case 40:i="d";break;case 32:i="p"}i&&this.albums.select(i)}else switch(d.keyCode){case 27:this.config.isFullScreen&&this.fullscreen(true);break;case 39:this.show("next");break;case 37:this.show("prev");break;case 38:this.items.albums&&this.albums.show(0,this.cAlbum,false,true);break;case 32:this.items.play.click()}},onFullResize:function(){if(this.config.useNativeFullScreen&&
1790this.nativeFS)this.resize(window.screen.width,window.screen.height);else{var d=g(window),i=d.width();d=d.height();i-=this.config.initValues.wDif;d-=this.config.initValues.hDif;this.resize(i,d)}},resize:function(d,i){this.$tn3.width(d).height(i);var j=d-this.config.initValues.width,f=i-this.config.initValues.height,m,h,l=this;if(this.items.image){m=this.config.image.initValues.width+j;h=this.config.image.initValues.height+f;if(this.imager)this.imager.setSize(m,h);else{this.items.image.width(m).height(h);
1791this.$inImage.width(m).height(h)}}if(this.items.thumbs){m=this.config.thumbnailer.initValues.width+j;h=this.config.thumbnailer.initValues.height+f;if(this.thumbnailer)this.thumbnailer.setSize(m,h);else this.config.thumbnailer.initValues.vertical?this.items.thumbs.height(h):this.items.thumbs.width(m)}if(this.items.albums){m=this.albums.initValues.width+j;h=this.albums.initValues.height+f;this.albums.changeSize(j,f)}g.each(this.special.rh,function(k,p){l.items[p].width(l.config.initValues[p].w+j)});
1792g.each(this.special.rv,function(k,p){l.items[p].height(l.config.initValues[p].h+f)});this.center()},center:function(){var d,i=this,j=i.items.image.position();g.each(this.special.v,function(f,m){d=i.items[m];d.css("top",(d.parent().height()-d.height())/2)});g.each(this.special.h,function(f,m){d=i.items[m];d.css("left",(d.parent().width()-d.width())/2)});g.each(this.special.vi,function(f,m){d=i.items[m];d.css("top",j.top+(i.items.image.height()-d.height())/2)});g.each(this.special.hi,function(f,m){d=
1793i.items[m];d.css("left",j.left+(i.items.image.width()-d.width())/2)});if(this.spinner){this.displayPreloader(true);this.displayPreloader(false)}},trigger:function(d,i){var j=g.Event("tn3_"+d),f;for(f in i)j[f]=i[f];if(i&&i.type!=undefined)j.type="tn3_"+d;j.source=this;this.$c.trigger(j);
1793this.config[d]&&this.config[d].call(this,j);for(f in i)i[f]=j[f];d=="timer_end"&&this.n==0&&this.trigger("autoplay_finish")},initMouseWheel:function(){var d=this,i=function(j){d.show((j.originalEvent.detail?-j.originalEvent.detail:
1794j.originalEvent.wheelDelta)>0?"prev":"next");j.preventDefault()};this.$tn3.bind("mousewheel",i);this.$tn3.bind("DOMMouseScroll",i)},initResponsive:function(d){var i;if(typeof d=="number"){var j=g(window);i=function(){var u=j.width(),v=j.height();this.resize(u*d/100,v*d/100)}}else if(g.isFunction(d))i=d;else if(d!==false){var f=this.$c.parent(),m=(this.config.width==null?this.config.initValues.width:this.config.width)/(this.config.height==null?this.config.initValues.height:this.config.height),h=f.width(),
1795l=f.height();i=d=="enabled"?function(){h=f.width();l=f.height();this.resize(h,l)}:d=="height"?function(){l=f.height();h=l*m;this.resize(h,l)}:function(){h=f.width();l=h/m;this.resize(h,l)}}var k=this,p=function(){if(k.config.useNativeFullScreen)k.config.isFullScreen||g.proxy(i,k)();else g.proxy(i,k)()};g(window).bind("resize",p);p()},replaceMenu:function(d,i){var j='<div style="position:absolute;background-color:#fff;color: #000;padding:0px 4px 0px 4px;z-index:1010;font-family:sans-serif;font-size:12px;">&copy; <a href="'+
1796i+'">'+d+"</a></div>";this.$tn3.bind("contextmenu",function(f){f.preventDefault()}).bind("mousedown",function(f){if(f.which==3){var m=g(j);g("body").append(m);m.css("left",f.pageX).css("top",f.pageY);m.find("a").mouseup(function(h){window.location=i;m.unbind(h)});g("body").mouseup(function(h){m.remove();g("body").unbind(h)})}})},imageEnter:function(){this.config.timerOverStop&&this.timer.pause(true);this.special.o.length>0&&this.showElements(this.config.overFadeDuration)},imageLeave:function(){this.config.timerOverStop&&
1797this.timer.pause(false);this.special.o.length>0&&this.hideElements(this.config.overFadeDuration)},displayPreloader:function(d){if(this.items.preloader)if(d){this.items.preloader.show();if(this.config.spinjs)if(this.spinner)this.spinner.spin(this.items.preloader[0]);else this.spinner=(new Spinner(this.config.spinjs)).spin(this.items.preloader[0])}else{this.spinner&&this.spinner.stop();this.items.preloader.hide()}}};
1797var b={supportsFullScreen:false,isFullScreen:function(){return false},requestFullScreen:function(){},
1798cancelFullScreen:function(){},fullScreenEventName:"",prefix:""},a="webkit moz o ms khtml".split(" ");if(typeof document.cancelFullScreen!="undefined")b.supportsFullScreen=true;else for(var c=0,e=a.length;c<e;c++){b.prefix=a[c];if(typeof document[b.prefix+"CancelFullScreen"]!="undefined"){b.supportsFullScreen=true;break}}if(b.supportsFullScreen){b.fullScreenEventName=b.prefix+"fullscreenchange";b.isFullScreen=function(){switch(this.prefix){case "":return document.fullScreen;case "webkit":return document.webkitIsFullScreen;
1799default:return document[this.prefix+"FullScreen"]}};b.requestFullScreen=function(d){return this.prefix===""?d.requestFullScreen():d[this.prefix+"RequestFullScreen"]()};b.cancelFullScreen=function(){return this.prefix===""?document.cancelFullScreen():document[this.prefix+"CancelFullScreen"]()}}})(jQuery);
1800(function(g,b,a){function c(r,q){var s=b.createElement(r||"div"),t;for(t in q)s[t]=q[t];return s}function e(r){for(var q=1,s=arguments.length;q<s;q++)r.appendChild(arguments[q]);return r}function d(r,q,s,t){var w=["opacity",q,~~(r*100),s,t].join("-");s=0.01+s/t*100;t=Math.max(1-(1-r)/q*(100-s),r);var x=k.substring(0,k.indexOf("Animation")).toLowerCase();x=x&&"-"+x+"-"||"";return l[w]||(p.insertRule("@"+x+"keyframes "+w+"{0%{opacity:"+t+"}"+s+"%{opacity:"+r+"}"+(s+0.01)+"%{opacity:1}"+(s+q)%100+"%{opacity:"+
1801r+"}100%{opacity:"+t+"}}",p.cssRules.length),l[w]=1),w}function i(r,q){var s=r.style,t,w;if(s[q]!==a)return q;q=q.charAt(0).toUpperCase()+q.slice(1);for(w=0;w<h.length;w++){t=h[w]+q;if(s[t]!==a)return t}}function j(r,q){for(var s in q)r.style[i(r,s)||s]=q[s];return r}function f(r){for(var q=1;q<arguments.length;q++){var s=arguments[q],t;for(t in s)r[t]===a&&(r[t]=s[t])}return r}function m(r){for(var q={x:r.offsetLeft,y:r.offsetTop};r=r.offsetParent;){q.x+=r.offsetLeft;q.y+=r.offsetTop}return q}var h=
1802["webkit","Moz","ms","O"],l={},k,p=function(){var r=c("style",{type:"text/css"});return e(b.getElementsByTagName("head")[0],r),r.sheet||r.styleSheet}(),u={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",speed:1,trail:100,opacity:0.25,fps:20,zIndex:2E9,className:"spinner",top:"auto",left:"auto"},v=function r(q){if(!this.spin)return new r(q);this.opts=f(q||{},r.defaults,u)};v.defaults={};f(v.prototype,{spin:function(r){this.stop();var q=this,s=q.opts,t=q.el=j(c(0,{className:s.className}),
1803{position:"relative",width:0,zIndex:s.zIndex}),w=s.radius+s.length+s.width,x,z;r&&(r.insertBefore(t,r.firstChild||null),z=m(r),x=m(t),j(t,{left:(s.left=="auto"?z.x-x.x+(r.offsetWidth>>1):parseInt(s.left,10)+w)+"px",top:(s.top=="auto"?z.y-x.y+(r.offsetHeight>>1):parseInt(s.top,10)+w)+"px"}));t.setAttribute("aria-role","progressbar");
1803q.lines(t,q.opts);if(!k){var A=0,y=s.fps,B=y/s.speed,D=(1-s.opacity)/(B*s.trail/100),E=B/s.lines;(function F(){A++;for(var C=s.lines;C;C--)q.opacity(t,s.lines-C,Math.max(1-
1804(A+C*E)%B*D,s.opacity),s);q.timeout=q.el&&setTimeout(F,~~(1E3/y))})()}return q},stop:function(){var r=this.el;return r&&(clearTimeout(this.timeout),r.parentNode&&r.parentNode.removeChild(r),this.el=a),this},lines:function(r,q){function s(x,z){return j(c(),{position:"absolute",width:q.length+q.width+"px",height:q.width+"px",background:x,boxShadow:z,transformOrigin:"left",transform:"rotate("+~~(360/q.lines*t+q.rotate)+"deg) translate("+q.radius+"px,0)",borderRadius:(q.corners*q.width>>1)+"px"})}for(var t=
18050,w;t<q.lines;t++){w=j(c(),{position:"absolute",top:1+~(q.width/2)+"px",transform:q.hwaccel?"translate3d(0,0,0)":"",opacity:q.opacity,animation:k&&d(q.opacity,q.trail,t,q.lines)+" "+1/q.speed+"s linear infinite"});q.shadow&&e(w,j(s("#000","0 0 4px #000"),{top:"2px"}));e(r,e(w,s(q.color,"0 0 1px rgba(0,0,0,.1)")))}return r},opacity:function(r,q,s){q<r.childNodes.length&&(r.childNodes[q].style.opacity=s)}});(function(){function r(s,t){return c("<"+s+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',
1806t)}var q=j(c("group"),{behavior:"url(#default#VML)"});!i(q,"transform")&&q.adj?(p.addRule(".spin-vml","behavior:url(#default#VML)"),v.prototype.lines=function(s,t){function w(){return j(r("group",{coordsize:A+" "+A,coordorigin:-z+" "+-z}),{width:A,height:A})}function x(D,E,F){e(B,e(j(w(),{rotation:360/t.lines*D+"deg",left:~~E}),e(j(r("roundrect",{arcsize:t.corners}),{width:z,height:t.width,left:t.radius,top:-t.width>>1,filter:F}),r("fill",{color:t.color,opacity:t.opacity}),r("stroke",{opacity:0}))))}
1807var z=t.length+t.width,A=2*z,y=-(t.width+t.length)*2+"px",B=j(w(),{position:"absolute",top:y,left:y});if(t.shadow)for(y=1;y<=t.lines;y++)x(y,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(y=1;y<=t.lines;y++)x(y);return e(s,B)},v.prototype.opacity=function(s,t,w,x){s=s.firstChild;x=x.shadow&&x.lines||0;s&&t+x<s.childNodes.length&&(s=s&&s.firstChild,s&&(s.opacity=w))}):k=i(q,"animation")})();typeof define=="function"&&define.amd?define(function(){return v}):
1808g.Spinner=v})(window,document);
1809(function(g){g.fn.tn3.Imager=function(b,a,c){this.$c=b;this.data=a;this.config=g.extend(true,{},g.fn.tn3.Imager.config,c);this.init()};g.fn.tn3.Imager.config={transitions:null,defaultTransition:{type:"slide"},random:false,cssID:"tn3",maxZoom:1.4,crop:false,clickEvent:"click",idleDelay:3E3,stretch:true,dif:0};g.fn.tn3.Imager.prototype={config:null,$c:false,$ins:null,data:false,cached:null,active:-1,$active:false,$buffer:false,isInTransition:false,ts:null,cDim:null,qid:null,currentlyLoading:null,side:null,
1810$ic:null,$binder:null,infoID:null,lastEnter:false,mouseCoor:{x:0,y:0},mouseIsOver:false,init:function(){this.$c.css("overflow","hidden");this.$c.css("position","relative");this.$ins=g('<div class="'+this.config.cssID+'-image-ins" style="position:absolute;width:100%;height:100%;"></div>');this.$c.prepend(this.$ins);this.bindMouseEvents(this.$c);this.cached=[];this.ts=new g.fn.tn3.Transitions(this.config.transitions,this.config.defaultTransition,this.config.random,this,"onTransitionEnd")},bindMouseEvents:function(b){this.unbindMouseEvents();
1811var a=this;b.hover(function(){a.mouseIsOver=true;a.enterLeave("enter");a.startIdle();g(document).mousemove(g.proxy(a.onMouseMove,a))},function(){a.mouseIsOver=false;a.enterLeave("leave");a.stopIdle();g(document).unbind("mousemove",a.onMouseMove)});b[this.config.clickEvent](function(c){a.active==-1||a.isInTransition||c.target.tagName.toUpperCase()!="A"&&a.trigger("click",{n:a.active})});this.$binder=b},unbindMouseEvents:function(){this.$binder&&this.$binder.unbind("mouseenter mouseleave "+this.config.clickEvent);
1812g(document).unbind("mousemove",this.onMouseMove);this.stopIdle()},startIdle:function(){this.stopIdle();var b=this;if(this.config.idleDelay>0)this.infoID=setTimeout(function(){b.enterLeave("leave");b.stopIdle()},this.config.idleDelay)},onMouseMove:function(b){this.mouseCoor={x:b.pageX,y:b.pageY};if(!this.isInTransition){this.infoID||this.enterLeave("enter");this.startIdle()}},stopIdle:function(){clearTimeout(this.infoID);this.infoID=null},enterLeave:function(b){this.lastEnter!=b&&this.trigger(b);this.lastEnter=
1813b},show:function(b){if(this.isInTransition)this.qid=b;else{this.qid=null;if(b=="next"){b=this.active+1<this.data.length?this.active+1:0;this.side="left"}else if(b=="prev"){b=this.active>0?this.active-1:this.data.length-1;this.side="right"}else this.side=this.active>b?"right":"left";if(this.data[b]){this.trigger("load_start",{n:b});this.$buffer=g('<div class="'+this.config.cssID+'-image-in" style="position:absolute;overflow:hidden;"></div>');this.$buffer.css("visibility","hidden");this.$ins.prepend(this.$buffer);
1814if(this.cached[this.currentlyLoading]!=undefined)this.cached[this.currentlyLoading].init=false;if(this.cached[b]!=undefined)if(this.cached[b].status=="loaded")this.initImage(b);else{this.cached[b].init=true;this.currentlyLoading=b}else this.startLoading(b,true)}}},startLoading:function(b,a){var c=typeof b=="number"?b:b=="next"?this.active+1:this.active-1;if(!(this.cached[c]!=undefined&&this.cached[c].status=="loaded"||this.data[c]==undefined)){this.cached[c]={isImage:true,status:"loading",init:a};
1815this.currentlyLoading=c;if(this.data[c].content!=undefined){this.cached[c].isImage=false;
1815this.onCacheLoad(g(g.trim(this.data[c].content)),c)}else this.cached[c].loader=new g.fn.tn3.ImageLoader(this.data[c].img,this,this.onCacheLoad,[c])}},onCacheLoad:function(b,a,c){this.cached[a].status="loaded";this.cached[a].isImage&&b.attr("alt",this.data[a].alt);this.cached[a].$content=b;c&&this.trigger("error",{description:c,n:a});this.cached[a].init&&this.initImage(a)},initImage:function(b){var a=this.cached[b].$content;
1816this.currentlyLoading=null;this.active=b;if(!this.cDim)this.cDim={w:this.$c.width(),h:this.$c.height()};this.$buffer.width(this.cDim.w).height(this.cDim.h);var c=g('<div class="'+this.config.cssID+'-full-image" style="position:absolute"></div>');a.appendTo(c);this.$buffer.append(c);this.$buffer.data("ic",c);this.$buffer.data("img",a);this.resize(this.$buffer);c=[true];this.trigger("load_end",{n:b,content:a,isImage:this.cached[b].isImage,doTransition:c});c[0]&&this.initTransition()},initTransition:function(){this.$buffer.css("visibility",
1817"visible");if(this.$active!=false){this.isInTransition=true;this.unbindMouseEvents();if(this.mouseIsOver)g(document).mousemove(g.proxy(this.onMouseMove,this));else this.mouseCoor={x:0,y:0};this.lastEnter="leave";this.ts.start(this.$active,this.$buffer,this.side)}else{this.$active=this.$buffer;this.trigger("transition",{n:this.active})}this.startLoading(this.side=="right"?"prev":"next",false)},setSize:function(b,a){this.isInTransition&&this.ts.stop(this.$active,this.$buffer,this.ts.config);this.$c.width(b).height(a);
1818this.cDim={w:this.$c.width(),h:this.$c.height()};if(this.$active){this.$active.width(b).height(a);this.resize(this.$active)}},resize:function(b){if(b.data("img")==undefined)this.trigger("resize",{w:this.cDim.w,h:this.cDim.h,left:0,top:0});else this.cached[this.active].isImage?this.resizeImage(b):this.resizeContent(b)},resizeImage:function(b){$img=b.data("img");$ic=b.data("ic");$img.width("auto").height("auto");b.data("scaled",false);var a=$img.width(),c=$img.height(),e=0,d=0,i={w:a,h:c,left:0,top:0};
1819$img.attr("width",a).attr("height",c);if($img.get(0).tagName.toUpperCase()=="IMG"&&(a!=this.cDim.w||c!=this.cDim.h)){e=this.cDim.w/a;d=this.cDim.h/c;e=this.config.crop?Math.max(e,d):Math.min(e,d);e=Math.min(this.config.maxZoom,e);a=i.w=Math.round(a*e)-this.config.dif;c=i.h=Math.round(c*e)-this.config.dif;if(this.cDim.w>=a)e=i.left=(this.cDim.w-a)/2;else{e=-(a-this.cDim.w)*0.5;i.w=this.cDim.w}if(this.cDim.h>c)d=i.top=(this.cDim.h-c)/2;else{d=-(c-this.cDim.h)*0.5;i.h=this.cDim.h}$img.width(a).height(c);
1820$img.attr("width",a).attr("height",c);$ic.width(a).height(c);b.data("scaled",true)}$ic.css("left",e).css("top",d);this.bindMouseEvents($ic);this.trigger("resize",i)},resizeContent:function(b){$ic=b.data("ic");$img=b.data("img");b.data("scaled",false);var a=$img.width(),c=$img.height(),e={w:a,h:c,left:0,top:0};if(this.config.stretch){$ic.width(this.cDim.w).height(this.cDim.h);$img.width(this.cDim.w).height(this.cDim.h);b.data("scaled",true)}else{e.left=(this.cDim.w-a)*0.5;e.top=(this.cDim.h-c)*0.5;
1821$ic.css("left",e.left).css("top",e.top)}this.bindMouseEvents($ic);this.trigger("resize",e)},onTransitionEnd:function(){this.$active.remove();this.$active=this.$buffer;this.$active.css("width","+=1");this.isInTransition=false;this.trigger("transition",{n:this.active});this.bindMouseEvents(this.$binder);var b=this.$binder.offset();this.mouseIsOver=false;if(this.mouseCoor.x>=b.left&&this.mouseCoor.x<=b.left+this.$binder.width())if(this.mouseCoor.y>=b.top&&this.mouseCoor.y<=b.top+this.$binder.height()){this.lastEnter=
1822"leave";this.enterLeave("enter");this.startIdle();this.mouseIsOver=true;g(document).mousemove(g.proxy(this.onMouseMove,this))}this.qid!=null&&this.show(this.qid)},trigger:function(b,a){var c=g.Event("img_"+b),e;for(e in a)c[e]=a[e];c.source=this;this.$c.trigger(c);this.config[b]&&this.config[b].call(this,c)},destroy:function(){this.isInTransition&&this.ts.stop(this.$active,this.$buffer);this.$active&&this.$active.remove();this.$buffer.remove()},rebuild:function(b){this.quid=null;this.isInTransition&&
1823this.ts.stop(this.$active,this.$buffer);this.$buffer&&this.$buffer.remove();this.cached=[];this.data=b;this.loader&&this.loader.cancel()}}})(jQuery);
1824(function(g){g.fn.tn3.Thumbnailer=function(b,a,c){this.$c=b;this.data=a;this.config=g.extend({},g.fn.tn3.Thumbnailer.config,c);g(window).resize(g.proxy(this.onWinResize,this));this.init()};g.fn.tn3.Thumbnailer.config={overMove:true,buffer:20,speed:8,slowdown:50,shaderColor:"#000000",shaderOpacity:0.5,shaderDuration:300,shaderOut:300,useTitle:false,seqLoad:true,align:1,mode:"thumbs",cssID:"tn3"};g.fn.tn3.Thumbnailer.prototype={config:null,$c:null,$oc:null,$ul:null,data:null,active:-1,listSize:0,containerSize:0,
1825containerPadding:0,noBufSize:0,containerOffset:0,mcoor:"mouseX",edge:"left",size:"width",outerSize:"outerWidth",mouseX:0,mouseY:0,intID:false,pos:0,difference:0,cnt:1,thumbCount:-1,initialized:false,clickWhenReady:-1,loaders:null,lis:null,isVertical:null,marginDif:0,nloaded:0,firstToLoad:0,isTouch:false,init:function(){this.$c.css("position","absolute").css("cursor","progress");this.lis=[];this.loaders=[];this.initialized=false;this.$oc=g("<div />");this.$ul=g("<ul />");this.$oc.appendTo(this.$c);
1826this.$oc.css("position","absolute").css("overflow","hidden").width(this.$c.width()).height(this.$c.height());this.$ul.appendTo(this.$oc);this.$ul.css("position","relative").css("margin","0px").css("padding","0p
1826x").css("border-width","0px").css("width","12000px").css("list-style","none");if(this.isVertical==null){if(this.isVertical=this.$c.width()<this.$c.height()){this.mcoor="mouseY";this.edge="top";this.size="height";this.outerSize="outerHeight"}else{this.mcoor="mouseX";this.edge="left";this.size=
1827"width";this.outerSize="outerWidth"}this.containerSize=this.$oc[this.size]();this.noBufSize=this.containerSize-2*this.config.buffer;this.containerOffset=this.$oc.offset()[this.edge];this.containerPadding=parseInt(this.$c.css("padding-"+this.edge))}this.listSize=0;if(navigator.userAgent.indexOf("MSIE")!=-1)this.config.seqLoad=false;this.data.length>0&&this.loadNextThumb()},loadNextThumb:function(){this.thumbCount++;var b=g("<li></li>");this.$ul.append(b);if(this.config.mode=="thumbs"){var a=this.data[this.thumbCount].thumb;
1828if(a){this.loaders.push(new g.fn.tn3.ImageLoader(a,this,this.onLoadThumb,[b,this.thumbCount]));!this.config.seqLoad&&this.thumbCount<this.data.length-1&&this.loadNextThumb();return}else this.config.mode="bullets"}this.config.mode=="numbers"&&b.text(this.thumbCount+1);this.onLoadThumb(null,b,this.thumbCount)},onLoadThumb:function(b,a,c,e){this.lis[c]={li:a};a.addClass(this.config.cssID+"-thumb");a.css("float",this.isVertical?"none":"left");if(b){var d=this.lis[c].thumb=g(b);a.append(d);this.lis[c].pos=
1829a.position()[this.edge]}this.config.useTitle&&this.data[c].title&&a.attr("title",this.data[c].title.replace(/\&amp;/g,"&"));if(this.config.mode=="thumbs"&&this.config.shaderOpacity>0){this.lis[c].shade=g("<div/>");a.prepend(this.lis[c].shade);this.lis[c].shade.css("background-color",this.config.shaderColor).css("width",d.width()).css("height",d.height()).css("position","absolute")}this.initThumb(c);a.css("opacity",0);a.animate({opacity:1},1E3);this.listSize+=a[this.outerSize](true);if(!this.initialized){this.firstToLoad=
1830c;this.initialized=true;this.initMouse(true)}e&&this.trigger("error",{description:e,n:c});this.trigger("thumbLoad",{n:c});this.nloaded++;if(this.nloaded<this.data.length){if(this.config.seqLoad||this.config.mode!="thumbs")this.loadNextThumb()}else{if(b)this.loaders=null;if(!this.config.seqLoad)for(b=0;b<this.lis.length;b++)this.lis[b].pos=this.lis[b].li.position()[this.edge];this.thumbsLoaded()}if(this.clickWhenReady==c){this.clickWhenReady=-1;this.thumbClick(c)}},initThumb:function(b){var a=this.lis[b];
1831if(a.li){a.li.removeClass().addClass(this.config.cssID+"-thumb");if(a.shade){a.shade.stop();a.shade.css("opacity",this.config.shaderOpacity)}var c=this;a.li.click(function(){c.thumbClick(b);c.trigger("click",{n:b});return false});this.config.mode!="thumbs"&&a.li.hover(function(){c.mouseOver(b)},function(){c.mouseOver(-1)})}},lastOver:-1,mouseOver:function(b){if(b!=this.lastOver){if(this.lastOver!=-1&&this.lastOver!=this.active){a=this.lis[this.lastOver];a.li.removeClass(this.config.cssID+"-thumb-over");
1832if(a.shade){a.shade.stop();a.shade.animate({opacity:this.config.shaderOpacity},{duration:this.config.shaderOut,easing:"easeOutCubic",queue:false})}this.trigger("thumbOut",{n:b})}this.lastOver=b;if(!(b==-1||b==this.active)){var a=this.lis[b];a.li.addClass(this.config.cssID+"-thumb-over");if(a.shade){a.shade.stop();a.shade.animate({opacity:0}
1832,{duration:this.config.shaderDuration,easing:"easeOutCubic",queue:false})}this.trigger("thumbOver",{n:b})}}},next:function(b){if(b)this.listSize>this.containerSize&&
1833this.move(this.$ul.position()[this.edge]-this.containerSize);else{b=this.active+1;if(this.active==-1||this.active+1==this.data.length)b=0;this.thumbClick(b)}},prev:function(b){if(b)this.listSize>this.containerSize&&this.move(this.$ul.position()[this.edge]+this.containerSize);else{b=this.active-1;if(this.active==-1||this.active==0)b=this.data.length-1;this.thumbClick(b)}},move:function(b){var a={};a[this.edge]=Math.min(0,Math.max(b,-(this.listSize-this.containerSize)));this.$ul.stop();this.$ul.animate(a,
1834300)},thumbClick:function(b){if(this.active==-1){if(this.thumbCount<b||b>this.lis.length-1||this.lis[b]==null){this.clickWhenReady=b;return}}else if(b==this.active)return;else this.initThumb(this.active);if(b=="next")b=this.active+1<this.data.length?this.active+1:0;else if(b=="prev")b=this.active>0?this.active-1:this.data.length-1;if(this.lis[b]){var a=this.lis[b];a.li.addClass(this.config.cssID+"-thumb-selected").unbind("click mouseenter mouseleave");a.shade&&a.shade.animate({opacity:0}
1834,this.config.shaderDuration);
1835this.active=b;this.centerActive()}},centerActive:function(b){if(this.active!=-1){var a=this.lis[this.active].li,c=this.$ul.position()[this.edge]+a.position()[this.edge],e=a[this.outerSize]()/2;if(c+e>this.containerSize||c+e<0){a=10-a.position()[this.edge]+this.containerSize/2-e;a=Math.min(0,a);a=Math.max(a,-this.listSize+this.containerSize);c={};c[this.edge]=a;if(this.isTouch)this.$oc["scroll"+this.edge.substring(0,1).toUpperCase()+this.edge.substring(1)](-a);else b?this.$ul.css(c):this.$ul.animate(c,
1836200)}}},thumbsLoaded:function(){this.$c.css("cursor","auto");this.$ul.css("width",this.listSize+"px");this.centerList();this.trigger("load")},centerList:function(b){if(this.listSize<this.containerSize){var a={};a[this.edge]=this.config.align?this.config.align==1?(this.containerSize-this.listSize)/2:this.containerSize-this.listSize:0;b||this.config.mode!="thumbs"?this.$ul.css(a):this.$ul.animate(a,300)}else{this.centerActive(b);if(this.$ul.position()[this.edge]>0)this.$ul.css(this.edge,0);else this.$ul.position()[this.edge]+
1837this.listSize<this.containerSize&&this.$ul.css(this.edge,-(this.listSize-this.containerSize))}},initMouse:function(b){if(this.config.mode=="thumbs"){b=b?"bind":"unbind";this.$oc[b]("mouseenter",g.proxy(this.mouseenter,this));this.$oc[b]("mouseleave",g.proxy(this.mouseleave,this))}},mouseenter:function(){this.trigger("over");clearInterval(this.intID);var b=this;this.$ul.stop();this.$c.mousemove(this.mcoor=="mouseX"?function(a){b.mouseX=a.pageX-b.containerOffset}:function(a){b.mouseY=a.pageY-b.containerOffset});
1838this.marginDif=parseInt(this.lis[this.firstToLoad].li.css("margin-"+this.edge));if(isNaN(this.marginDif))this.marginDif=0;b.intID=this.listSize>this.containerSize&&this.config.overMove?setInterval(function(){b.slide.call(b)},10):setInterval(function(){b.mouseTrack.call(b)},10)},mouseleave:function(){this.trigger("out");this.$c.unbind("mousemove");clearInterval(this.intID);var b=this;this.intID=setInterval(function(){b.slideOut.call(b)},10);this.mouseOver(-1)},slide:function(){this.cnt=1;var b=this[this.mcoor];
1839if(b<=this.config.buffer)this.pos=0;else if(b>=this.containerSize-this.config.buffer)this.pos=this.containerSize-this.listSize-1;else{var a=this.containerSize*(b-this.config.buffer);a/=this.noBufSize;this.pos=a*(1-this.listSize/this.containerSize)}for(a=this.lis.length-1;a>-1;a--){var c=b-this.prevdx;if(c>=this.lis[a].pos&&c<this.lis[a].pos+this.lis[a].li[this.size]()){this.mouseOver(a);break}}b=this.prevdx-this.marginDif;this.difference=b-this.pos;b=Math.round(b-this.difference/this.config.speed);
1840if(this.prevdx!=b){this.$ul.css(this.edge,b);this.prevdx=b}},prevdx:0,mouseTrack:function(){for(var b=this[this.mcoor],a=this.lis.length-1;a>-1;a--){var c=b-this.$ul.position()[this.edge];if(c>=this.lis[a].pos&&c<this.lis[a].pos+this.lis[a].li[this.size]()){this.mouseOver(a);break}}},clickOn:function(b){b=b[this.edge]-this.$ul.position()[this.edge]-this.$c.offset()[this.edge];for(var a=0;a<this.lis.length;a++){lpos=this.lis[a].li.position()[this.edge];if(b>=lpos&&b<lpos+this.lis[a].li[this.size]()){this.lis[a].li.click();
1841break}}},slideOut:function(){if(this.config.slowdown!=0&&this.difference!=0){var b=this.$ul.position()[this.edge];this.difference=b-this.pos;this.$ul.css(this.edge,b-this.difference/(this.config.speed*this.cnt));this.cnt*=1+4/this.config.slowdown;if(this.cnt>=40){this.difference=0;this.cnt=1}}else{clearInterval(this.intID);this.intID=null}},trigger:function(b,a){var c=g.Event("tn_"+b),e;for(e in a)c[e]=a[e];c.source=this;this.$c.trigger(c);this.config[b]&&this.config[b].call(this,c)},destroy:function(){clearInterval(this.intID);
1842this.$c.empty()},rebuild:function(b){clearInterval(this.intID);this.$c.empty();this.data=b;this.active=this.thumbCount=-1;this.nloaded=0;this.initMouse(false);this.loaders!==null&&g.each(this.loaders,function(a,c){c.cancel()});this.init()},setSize:function(b,a){if(this.config.mode=="thumbs"){this.isVertical?this.$c.height(a):this.$c.width(b);this.$oc.width(this.$c.width()).height(this.$c.height());this.containerSize=this.$oc[this.size]();this.noBufSize=this.containerSize-2*this.config.buffer;this.containerOffset=
1843this.$oc.offset()[this.edge];this.initMouse(true);this.loaders===null&&this.centerList(true)}},onWinResize:function(){this.containerOffset=this.$oc.offset()[this.edge]}}})(jQuery);
1844
1845(function(g){g.fn.tn3.altLink=null;g.fn.tn3.ImageLoader=function(b,a,c,e){this.$img=g(new Image);e.unshift(this.$img);this.altLink=g.fn.tn3.altLink;a={url:b,context:a,callback:c,args:e};
1845this.$img.bind("load",a,this.load);this.$img.bind("error",a,g.proxy(this.error,this));this.$img.attr("src",b)};g.fn.tn3.ImageLoader.prototype={$img:null,altLink:null,load:function(b){b.data.callback.apply(b.data.context,b.data.args);b.data.args[0].unbind("load").unbind("error")},error:function(b){if(this.altLink){this.altLink=
1846null;this.$img.attr("src",g.fn.tn3.altLink+b.data.url)}else{b.data.args.push("image loading error: "+b.data.url);b.data.callback.apply(b.data.context,b.data.args);this.$img.unbind("load").unbind("error")}},cancel:function(){this.$img.unbind("load").unbind("error")}}})(jQuery);
1847(function(g){g.fn.tn3.Timer=function(b,a,c){this.$target=b;this.duration=a;this.tickint=c};g.fn.tn3.Timer.prototype={$target:null,duration:null,id:null,runs:false,counter:null,countDuration:null,tickid:null,ticks:null,tickint:500,start:function(){if(!this.runs){this.runs=true;this.startCount(this.duration);this.trigger("timer_start")}},startCount:function(b){this.clean();this.countDuration=b;this.counter=+new Date;var a=this;this.id=setTimeout(function(){a.clean.call(a);a.runs=false;a.trigger.call(a,
1848"timer_end")},b);var c=this.duration/this.tickint;this.ticks=Math.round(b/c);this.tickid=setInterval(function(){a.ticks=Math.ceil((b-new Date+a.counter)/c);a.ticks>0&&a.trigger.call(a,"timer_tick",{tick:a.ticks,totalTicks:a.tickint})},c);this.trigger("timer_start");this.trigger("timer_tick",{tick:this.ticks,totalTicks:this.tickint})},stop:function(){this.clean();this.runs=false;this.trigger("timer_stop")},clean:function(){clearTimeout(this.id);this.id=null;clearInterval(this.tickid);this.elapsed=
1849this.tickid=null},elapsed:null,pause:function(b){if(this.runs){if(b){this.clean();var a=this.duration/this.tickint;this.elapsed=Math.floor((+new Date-this.counter)/a)*a}else{if(this.elapsed==null)return;this.startCount(this.countDuration-this.elapsed);this.elapsed=null}this.trigger("timer_pause",{pause:b})}},trigger:function(b,a){var c=g.Event(b),e;for(e in a)c[e]=a[e];this.$target.trigger(c)}}})(jQuery);
1850(function(g){g.fn.tn3.Albums=function(b,a,c){this.data=b;this.$c=a;this.$in=a.find("."+c+"-inalbums");this.cssID=c;this.$a=this.$in.find("."+this.cssID+"-album");this.n=0;this.initValues={width:a.width(),height:a.height(),aw:this.$a.width(),ah:this.$a.height(),inw:this.$in.width(),inh:this.$in.height()};this.pad=parseInt(this.$in.css("padding-left"))};g.fn.tn3.Albums.prototype={data:null,$c:null,$in:null,$a:null,initValues:null,p:null,aw:null,ah:null,cssID:null,coors:null,ctrl_next:null,ctrl_prev:null,
1851n:null,selected:null,pad:null,enabled:false,space:null,isTouch:false,btnar:null,albh:0,lastac:null,getButtons:function(){this.$in.empty();this.btnar=[];$cur=this.$a.clone();$cur.appendTo(this.$in);this.space=this.space===null?this.pad:this.space;var b=this.aw=this.$in.width(),a=this.$in.height(),c=1;c=this.data.length;if(!this.isTouch){b-=2*this.pad;a-=2*this.pad;c=Math.max(1,Math.floor(b/this.initValues.aw));this.aw=Math.floor((b-(c-1)*this.space)/c);c=Math.floor(a/this.initValues.ah)}this.ah=this.initValues.ah;
1852a=b=this.pad;if(this.isTouch){this.$c.css("overflow","hidden");for(var e=0;e<c;e++){this.btnar.push($cur);$cur.css("left",b).css("top",a);$cur.css("width","100%").height(this.ah);$cur.hide();$cur=this.$a.clone();$cur.appendTo(this.$in);a+=this.ah+this.space}}else for(;a+this.ah<this.$in.height();){for(;b+this.aw<this.$in.width();){this.btnar.push($cur);$cur.css("left",b).css("top",a);$cur.width(this.aw).height(this.ah);$cur.hide();$cur=this.$a.clone();$cur.appendTo(this.$in);b+=this.aw+this.space}a+=
1853this.ah+this.space;b=this.pad}this.albh=a;$cur.remove();return this.btnar},show:function(b,a,c,e){this.$c.show();this.enabled=true;if(this.isTouch&&this.btnar){if(a!=undefined){this.btnar[this.selected].removeClass(this.cssID+"-album-selected");this.selected=a;for(b=0;b<this.data.length;b++)if(b==this.selected){this.btnar[b].addClass(this.cssID+"-album-selected");this.$in.scrollTop(this.btnar[b].position().top-this.btnar[b].height()*1.5);break}}}else{if(b==undefined)b=0;else if(b=="next")b=this.n+
18541<this.data.length?this.n+1:0;else if(b=="prev")b=this.n>0?this.n-1:this.data.length-1;if(a!=undefined)this.selected=a;var d,i,j=this.getButtons();if(e&&a!==null)for(;j.length*(b+1)<a;)b++;var f=this;a=b*j.length;e=Math.min(this.data.length,(b+1)*j.length);this.trigger("init");for(var m=a;m<e;m++){var h=this.data[m];if(!h.title)h.title="Unknown";d=j[m-a];i='<div class="'+this.cssID+'-album-image"></div>';i+='<div class="'+this.cssID+'-album-title">'+h.title+"</div>";if(h.description)i+='<div class="'+
1855this.cssID+'-album-description">'+h.description+"</div>";d.html(i);new g.fn.tn3.ImageLoader(h.thumb,this,this.onThumbLoad,[d.find("."+this.cssID+"-album-image")]);d.data("tn3",m);this.trigger("binit",{$a:d});
1855d.click(function(){var k=g(this).data("tn3");if(k==f.selected){f.$c.hide();f.trigger("close")}else f.trigger("click",{n:k})}).hover(function(){g(this).addClass(f.cssID+"-album-over")},function(){g(this).removeClass(f.cssID+"-album-over")});m==this.selected&&d.addClass(this.cssID+"-album-selected")}this.lastac=
1856d;d=m%j.length;if(d!=0)for(i=j.length-1;i>=d;i--)j.splice(i,1);this.n=b;if(c)g.each(j,function(k){j[k].show()});else{var l=800/j.length;this.$c.slideDown(b==0?300:0,function(){g.each(j,function(k){j[k].delay(k*l).fadeIn(150)})})}this.ctrl_prev&&this.enablePageControl("prev",a>0);this.ctrl_next&&this.enablePageControl("next",e<this.data.length);if(this.ctrl_close)this.ctrl_close.css("display",this.selected===null?"none":"inline")}},onThumbLoad:function(b,a,c){c&&this.trigger("error",{description:c});
1857a.prepend(b)},hide:function(){this.$c.hide();this.enabled=false},enablePageControl:function(b,a){var c=this["ctrl_"+b];if(a){if(!c.data("active")){var e=this;c.click(function(d){e.show(b);d.stopPropagation()}).hover(function(){g(this).addClass(e.cssID+"-albums-"+b+"-over")},function(){g(this).removeClass(e.cssID+"-albums-"+b+"-over")});c.data("active",true)}}else{c.removeClass(this.cssID+"-albums-"+b+"-over");c.unbind();c.data("active",false)}},setControl:function(b,a){if(b=="close"){var c=this;a.click(function(e){c.$c.hide();
1858c.trigger("close");e.stopPropagation()})}this["ctrl_"+b]=a},trigger:function(b,a){var c=g.Event("albums_"+b),e;for(e in a)c[e]=a[e];c.source=this;this.$c.trigger(c)},clickOn:function(b){var a=-(this.$in.position().top+this.pad),c=this.btnar[0].height()+this.pad;this.trigger("click",{n:Math.floor((a+b.top)/c)})},changeSize:function(b,a){this.$c.width(this.initValues.width+b).height(this.initValues.height+a);this.isTouch?this.$in.width(this.initValues.inw+b):this.$in.width(this.initValues.inw+b).height(this.initValues.inh+
1859a);this.$c.css("display")!="none"&&this.show(undefined,undefined,true)},select:function(){}}})(jQuery);
1860(function(g){var b=g.fn.tn3.Transitions=function(c,e,d,i,j){this.ts=c;this.def=g.extend(true,{},this[e.type+"Config"],e);if(!c)this.ts=[this.def];for(var f in this.ts)this.ts[f]=g.extend(true,{},this[this.ts[f].type+"Config"],this.ts[f]);this.random=d;this.end=g.proxy(i,j)},a=b.prototype={ts:null,def:{type:"slide"},random:false,gs:[],end:null,ct:null,counter:-1,setTransition:function(){if(this.ts.length==1)this.ct=this.ts[0];else{this.counter++;if(this.counter==this.ts.length)this.counter=0;this.random&&
1861this.counter==0&&g.fn.tn3utils.shuffle(this.ts);this.ct=this.ts[this.counter]}},start:function(c,e,d){this.setTransition();if(this[this.ct.type+"Condition"]!==undefined&&!this[this.ct.type+"Condition"](c,e,this.ct))this.ct=this.def;this[this.ct.type](c,e,this.ct,d)},stop:function(c,e){this[this.ct.type+"Stop"](c,e,this.ct)},makeGrid:function(c,e,d){var i=c.width(),j=Math.round(i/e);i=i-j*e;var f=c.height(),m=Math.round(f/d);f=f-m*d;var h,l,k,p,u,v=0,r=0,q="url("+c.find("img").attr("src")+") no-repeat scroll -";
1862for(h=0;h<e;h++){this.gs[h]=[];p=i>h?j+1:j;for(l=0;l<d;l++){k=c.append("<div></div>").find(":last");u=f>l?m+1:m;k.width(p).height(u).css("background",q+v+"px -"+r+"px").css("left",v).css("top",r).css("position","absolute");this.gs[h].push(k);r+=u}v+=p;r=0}c.find("img").remove()},stopGrid:function(){for(var c=0;c<this.gs.length;c++)for(var e=0;e<this.gs[c].length;e++){this.gs[c][e].clearQueue();this.gs[c][e].remove()}this.gs=[]},flatSort:function(c){for(var e=[],d=0;d<this.gs.length;d++)for(var i=
18630;i<this.gs[d].length;i++)e.push(this.gs[d][i]);c&&e.reverse();return e},randomSort:function(){var c=this.flatSort();g.fn.tn3utils.shuffle(c);return c},diagonalSort:function(c,e){for(var d=[],i=c>0?this.gs.length-1:0,j=e>0?0:this.gs[0].length-1;this.gs[i];){d.push(this.addDiagonal([],i,j,c,e));i-=c}i+=c;for(j+=e;this.gs[i][j];){d.push(this.addDiagonal([],i,j,c,e));j+=e}return d},addDiagonal:function(c,e,d,i,j){c.push(this.gs[e][d]);return this.gs[e+i]&&this.gs[e+i][d+j]?this.addDiagonal(c,e+i,d+j,
1864i,j):c},circleSort:function(c){var e=[],d=this.gs.length,i=this.gs[0].length,j=[Math.floor(d/2),Math.floor(i/2)];d=d*i;i=[[1,0],[0,1],[-1,0],[0,-1]];var f=0,m=0,h;for(e.push(this.gs[j[0]][j[1]]);e.length<d;){for(h=0;h<=f;h++)this.addGridPiece(e,j,i[m]);if(m==i.length-1)m=0;else m++;f+=0.5}c&&e.reverse();return e},addGridPiece:function(c,e,d){e[0]+=d[0];e[1]+=d[1];this.gs[e[0]]&&this.gs[e[0]][e[1]]&&c.push(this.gs[e[0]][e[1]])},getSlidePositions:function(c,e){var d={dir:e};
1864switch(e){case "left":d.pos=
1865c.outerWidth(true);break;case "right":d.pos=-c.outerWidth(true);d.dir="left";break;case "top":d.pos=-c.outerHeight(true);break;case "bottom":d.pos=c.outerHeight(true);d.dir="top"}return d},animateGrid:function(c,e,d,i,j,f,m){var h={duration:i,easing:d,complete:function(){g(this).remove()}};for(d=0;d<c.length;d++){i=g.easing[j](0,d,0,f,c.length);if(d==c.length-1){var l=this;h.complete=function(){g(this).remove();m.call(l)}}if(g.isArray(c[d]))for(var k in c[d])c[d][k].delay(i).animate(e[d],h);else c[d].delay(i).animate(e[d],
1866h)}},getValueArray:function(c,e,d){var i=[],j=g.isArray(e),f=g.isArray(d),m;for(m=0;m<c;m++){o={};o[j?e[m%e.length]:e]=f?d[m%d.length]:d;i.push(o)}return i}};b.defined=[];b.define=function(c){for(var e in c)switch(e){case "type":b.defined.push(c.type);break;case "config":a[c.type+"Config"]=c.config;break;case "f":a[c.type]=c.f;break;case "stop":a[c.type+"Stop"]=c.stop;break;case "condition":a[c.type+"Condition"]=c.condition;break;default:a[e]=c[e]}};b.define({type:"none",config:{},f:function(){this.end()},
1867stop:function(){this.end()}});b.define({type:"fade",config:{duration:300,easing:"easeInQuad"},f:function(c,e,d){var i=this;c.animate({opacity:0}
1867,d.duration,d.easing,function(){i.end()})},stop:function(c){c.stop();this.end()}});b.define({type:"slide",config:{duration:300,direction:"auto",easing:"easeInOutCirc"},f:function(c,e,d,i){i=this.getSlidePositions(e,d.direction=="auto"?i:d.direction);var j={},f={};e.css(i.dir,i.pos);j[i.dir]=0;e.animate(j,d.duration,d.easing,this.end);f[i.dir]=-i.pos;c.animate(f,
1868d.duration,d.easing)},stop:function(c,e){e.stop();c.stop();c.css("left",0).css("top",0);e.css("left",0).css("top",0);this.end()}});b.define({type:"blinds",config:{duration:240,easing:"easeInQuad",direction:"vertical",parts:12,partDuration:100,partEasing:"easeInQuad",method:"fade",partDirection:"auto",cross:true},f:function(c,e,d,i){d.direction=="horizontal"?this.makeGrid(c,1,d.parts):this.makeGrid(c,d.parts,1);i=d.partDirection=="auto"?i:d.partDirection;c=this.flatSort(i=="left"||i=="top");var j;
1869switch(d.method){case "fade":j=this.getValueArray(c.length,"opacity",0);break;case "scale":j=this.getValueArray(c.length,i=="left"?"width":"height","1px");break;case "slide":e=this.getSlidePositions(e,i);j=this.getValueArray(c.length,e.dir,d.cross?[e.pos,-e.pos]:e.pos)}this.animateGrid(c,j,d.partEasing,d.partDuration,d.easing,d.duration,this.blindsStop)},stop:function(){this.stopGrid();this.end()},condition:function(c,e){return!c.data("scaled")||!e.data("scaled")}});b.define({type:"grid",config:{duration:260,
1870easing:"easeInQuad",gridX:7,gridY:5,sort:"diagonal",sortReverse:false,diagonalStart:"bl",method:"fade",partDuration:300,partEasing:"easeOutSine",partDirection:"left"},f:function(c,e,d,i){this.makeGrid(c,d.gridX,d.gridY);c=d.partDirection=="auto"?i:d.partDirection;var j,f;if(d.sort=="diagonal")switch(d.diagonalStart){case "tr":j=this.diagonalSort(1,1);break;case "tl":j=this.diagonalSort(-1,1);break;case "br":j=this.diagonalSort(1,-1);break;case "bl":j=this.diagonalSort(-1,-1)}else j=this[d.sort+"Sort"](d.sortReverse);
1871switch(d.method){case "fade":f=this.getValueArray(j.length,"opacity",0);break;case "scale":f=this.getValueArray(j.length,c=="left"?"width":"height","1px")}this.animateGrid(j,f,d.partEasing,d.partDuration,d.easing,d.duration,this.gridStop)},stop:function(){this.stopGrid();this.end()},condition:function(c,e){return!c.data("scaled")||!e.data("scaled")}})})(jQuery);
1872(function(g){function b(h){var l=h&&h.message!==undefined?h.message:undefined;h=g.extend({},g.tn3block.defaults,h||{});l=l===undefined?h.message:l;m&&a({});var k=h.baseZ,p=i||h.forceIframe?g('<iframe class="blockUI" style="z-index:'+k++ +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+h.iframeSrc+'"></iframe>'):g('<div class="blockUI" style="display:none"></div>'),u=g('<div class="blockUI '+h.cssID+'-overlay" style="z-index:'+k++ +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');
1873k=g('<div class="blockUI '+h.blockMsgClass+' blockPage" style="z-index:'+k+';display:none;position:fixed"></div>');k.css("left","0px").css("top","0px");u.css(h.overlayCSS);u.css("position","fixed");if(i||h.forceIframe)p.css("opacity",0);var v=[p,u,k],r=g("body");g.each(v,function(){this.appendTo(r)});v=f&&(!g.boxModel||g("object,embed",null).length>0);if(j||v){h.allowBodyStretch&&g.boxModel&&g("html,body").css("height","100%");g.each([p,u,k],function(q,s){var t=s[0].style;t.position="absolute";if(q<
18742){t.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight)- (jQuery.boxModel?0:"+h.quirksmodeOffsetHack+') + "px"');t.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"')}else if(h.centerY){t.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2- (this.offsetHeight / 2)+ (blah = document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop)+ "px"');
1875t.marginTop=0}else h.centerY||t.setExpression("top",'(document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')})}if(l){l.data("blockUI.parent",l.parent());k.append(l);if(l.jquery||l.nodeType)g(l).show()}if((i||h.forceIframe)&&h.showOverlay)p.show();h.showOverlay&&u.show();l&&k.show();h.onBlock&&h.onBlock();e(1,h);m=l}function a(h){h=g.extend({},g.tn3block.defaults,h||{});e(0,h);var l=g("body").children().filter(".blockUI").add("body > .blockUI");
1876c(l,h)}function c(h,l){h.each(function(){this.parentNode&&this.parentNode.removeChild(this)});m.data("blockUI.parent").append(m);m=null;typeof l.onUnblock=="function"&&l.onUnblock.call(l.con)}function e(h,l){if(h||m)!l.bindEvents||h&&!l.showOverlay||(h?g(document).bind("mousedown mouseup keydown keypress",l,d):g(document).unbind("mousedown mouseup keydown keypress",d))}function d(h){var l=h.data;if(g(h.target).parents("div."+l.blockMsgClass).length>0)return true;return g(h.target).parents().children().filter("div.blockUI").length==
18770}var i=/MSIE/.test(navigator.userAgent),j=/MSIE 6.0/.test(navigator.userAgent),f=g.isFunction(document.createElement("div").style.setExpression);g.tn3block=function(h){b(h)};g.tn3unblock=function(h){a(h)};var m=undefined;g.tn3block.defaults={message:"<h1>Please wait...</h1>",overlayCSS:{},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:false,baseZ:2147483647,allowBodyStretch:true,bindEvents:true,showOverlay:true,applyPlatformOpacityRules:true,onBlock:null,
1878onUnblock:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",cssID:"tn3"}})(jQuery);
1879(function(g){(g.fn.tn3.External=function(b,a){if(b){this.context=a;this.reqs=b.length;for(var c=0;c<b.length;c++)this.plugs[b[c].origin]=new g.fn.tn3.External[b[c].origin](b[c],this)}}).prototype={context:null,reqs:0,plugs:{},getImages:function(b,a){this.plugs[b.origin].getImages(b,a)},setAlbumData:function(b,a){this.reqs--;this.context.setAlbumData.call(this.context,b,a)},setImageData:function(b,a,c){this.context.setImageData.call(this.context,b,a,c)},getAlbumData:function(b){return this.context.data[b]}}})(jQuery);
1880(function(g){var b=g.fn.tn3.External;b.xml=function(a,c){this.extcon=c;this.config=g.extend(true,{},b.xml.config,a);this.init()};b.xml.config={url:"",thumb_size:1,image_size:0};b.xml.prototype={config:null,extcon:null,getImages:function(){},init:function(){this.request()},request:function(){g.ajax({url:this.config.url,cache:false,context:this,success:function(a){this.extcon.setAlbumData(this.parseXML(a))},error:function(){this.extcon.setAlbumData([],"XML loading failed")}})},parseXML:function(a){try{var c=
1881[],e=this,d,i,j;g(a).find(":first").children().each(function(m,h){d=g(this);c[m]={};c[m].adata={id:m,origin:"xml"};i=d.find("file_root").text();e.setProps(h,c[m],i);c[m].imgs=[];delete c[m].images;d.find("images > image").each(function(l,k){j=c[m].imgs[l]={};e.setProps(k,j,i)})})}catch(f){this.extcon.setAlbumData([],"XML parsing error")}return c},setProps:function(a,c,e){var d;g(a).children().each(function(i,j){if(j.firstChild){d=j.firstChild.nodeValue;n=j.tagName;if(n.substring(n.length-3)=="src"){d=
1882e+d;if(n=="image_src")n="img";else if(n=="thumb_src")n="thumb"}c[n]=d}});if(!c.thumb)c.thumb=this.getThumb(c.img,this.config.thumb_size);if(this.config.image_size>0)c.img=this.getThumb(c.img,this.config.image_size)},getThumb:function(a,c){if(!(!a||a=="")){if(c==undefined)c=1;else if(c==0)return a;var e=a.split("/"),d=e.pop().split("."),i=d.pop().toString();i=d.join(".")+"_"+c+"."+i.toLowerCase();return a=e.join("/")+"/thumbs/"+i}}}})(jQuery);
1883
1884/**
1885
1886*    Chained Selects for jQuery 
1887*    Copyright (C) 2008 Ziadin Givan www.CodeAssembly.com  
1888*
1889*    This program is free software: you can redistribute it and/or modify
1890*    it under the terms of the GNU General Public License as published by
1891*    the Free Software Foundation, either version 3 of the License, or
1892*    (at your option) any later version.
1893*
1894*    This program is distributed in the hope that it will be useful,
1895*    but WITHOUT ANY WARRANTY; without even the implied warranty of
1896*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1897*    GNU General Public License for more details.
1898*
1899*    You should have received a copy of the GNU General Public License
1900*    along with this program.  If not, see http://www.gnu.org/licenses/
1901*    
1902*   settings = { usePost : true, before:function() {}, after: function() {}, default: null, parameters : { parameter1 : 'value1', parameter2 : 'value2'} }	
1903*   if usePost is true, then the form will use POST to pass the parameters to the target, otherwise will use GET
1904*   "before" function is called before the ajax request and "after" function is called after the ajax request.
1905*   If defaultValue is not null then the specified option will be selected.
1906*   You can specify additional parameters to be sent to the the server in settings.parameters.
1907*
1908*/ 
1909jQuery.fn.chainSelect = function( target, url, settings) 
1910{
1911  return this.each( function()
1912  {
1913	  $(this).change(function( )
1914	  {
1915		settings = jQuery.extend(
1916		{
1917			after : null,
1918			before : null,
1919			usePost : false,
1920			defaultValue : null,
1921			parameters : {'_id' : $(this).attr('id'), '_name' : $(this).attr('name')}
1922        } , settings);
1923
1924		settings.parameters._value =  $(this).val();
1925		
1926		if (settings.before != null) 
1927		{
1928			settings.before( target );
1929		}
1930
1931		ajaxCallback = function(data, textStatus) 
1932		{
1933			$(target).html("");//clear old options
1934			data = eval(data);//get json array
1935			if(data) { 
1936				for (i = 0; i < data.length; i++)//iterate over all options
1937
1938				{
1939				  for ( key in data[i] )//get key => value
1940
1941				  {	
1942						$(target).get(0).add(new Option(data[i][key],[key]), document.all ? i : null);
1943
1944				  }
1945				}
1946			}
1947
1948			if (settings.defaultValue != null)
1949			{
1950				$(target).val(settings.defaultValue);//select default value
1951			} else
1952			{
1953				$("option:first", target).attr( "selected", "selected" );//select first option
1954			}
1955
1956			if (settings.after != null) 
1957			{
1958				settings.after(target);
1959			}
1960
1961			$(target).change();//call next chain
1962		};
1963
1964		
1965		if (settings.usePost == true)
1966		{
1967			$.post( url, settings.parameters, ajaxCallback );
1968		} else
1969		{
1970			$.get( url, settings.parameters, ajaxCallback );
1971		}
1972	});
1973  });
1974};
1975
1976
1977
1978
1979jQuery.fn.chainSelectreload = function( target, url, lco, defVal, defText, cb) 
1980{
1981	ajaxCallback = function(data, textStatus) {
1982		$(target).html("");   //clear old options
1983		data = eval(data);    //get json array
1984		if(!data) {
1985			if(cb) {
1986				cb.call(this,$(target));
1987			}
1988			return;
1989		}
1990		$(target).get(0).add(new Option(defVal, defText), document.all ? 0 : null);
1991		for (i = 0; i < data.length; i++)//iterate over all options
1992		{
1993			for ( key in data[i] )//get key => value
1994			{
1995				$(target).get(0).add(new Option(data[i][key],[key]), document.all ? i+1 : null);
1996			}
1997		}
1998		$(target).val((lco==null) ? defVal : lco);
1999		if(cb) {
2000			cb.call(this,$(target));
2001		}
2002	};		 		 
2003	$.get( url, '', ajaxCallback );
2004}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.