/**
 * jQuery.ScrollTo - Easy element scrolling using jQuery.
 * Copyright (c) 2007 Ariel Flesler - aflesler(at)gmail(dot)com
 * Licensed under GPL license (http://www.opensource.org/licenses/gpl-license.php).
 * Date: 10/24/2007
 * @author Ariel Flesler
 * @version 1.1
 * Compatible with jQuery 1.2.1, tested on Firefox 2.0.0.7, and IE 6, both on Windows.
 **/
(function($){$.fn.scrollTo=function(a,b){b=b||{};var c={},pos=b.horizontal?'left':'top',key='scroll'+pos.charAt(0).toUpperCase()+pos.substring(1),parts;return this.each(function(){switch(typeof a){case'string':if(parts=/^([+-])?(=)?\d+(px)?$/.exec(a)){if(!b.speed&&(parts[1]||parts[2]||parts[3]))b.speed=1;break}a=$(a,this);case'object':a=$(a).offset()[pos]+this[key];if(!$(this).is('html,body'))a-=$(this).offset()[pos]}if(b.speed){c[key]=a;$(this).animate(c,b.speed,b.easing,b.callback)}else{this[key]=a;if(b.callback)b.callback.call(this)}})};$.scrollTo=function(a,b){return $('html,body').scrollTo(a,b)}})(jQuery);
