/*! Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
 * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
 *
 * Version: 3.0.2
 * 
 * Requires: 1.2.2+
 */

(function($) {

var types = ['DOMMouseScroll', 'mousewheel'];

$.event.special.mousewheel = {
	setup: function() {
		if ( this.addEventListener )
			for ( var i=types.length; i; )
				this.addEventListener( types[--i], handler, false );
		else
			this.onmousewheel = handler;
	},
	
	teardown: function() {
		if ( this.removeEventListener )
			for ( var i=types.length; i; )
				this.removeEventListener( types[--i], handler, false );
		else
			this.onmousewheel = null;
	}
};

$.fn.extend({
	mousewheel: function(fn) {
		return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel");
	},
	
	unmousewheel: function(fn) {
		return this.unbind("mousewheel", fn);
	}
});


function handler(event) {
	var args = [].slice.call( arguments, 1 ), delta = 0, returnValue = true;
	
	event = $.event.fix(event || window.event);
	event.type = "mousewheel";
	
	if ( event.wheelDelta ) delta = event.wheelDelta/120;
	if ( event.detail     ) delta = -event.detail/3;
	
	// Add events and delta to the front of the arguments
	args.unshift(event, Math.round(delta));

	return $.event.handle.apply(this, args);
}

})(jQuery);

/**
 * jQuery.timers - Timer abstractions for jQuery
 * Written by Blair Mitchelmore (blair DOT mitchelmore AT gmail DOT com)
 * Licensed under the WTFPL (http://sam.zoy.org/wtfpl/).
 * Date: 2009/02/08
 *
 * @author Blair Mitchelmore
 * @version 1.1.2
 *
 **/
jQuery.fn.extend({
	everyTime: function(interval, label, fn, times, belay) {
		return this.each(function() {
			jQuery.timer.add(this, interval, label, fn, times, belay);
		});
	},
	oneTime: function(interval, label, fn) {
		return this.each(function() {
			jQuery.timer.add(this, interval, label, fn, 1);
		});
	},
	stopTime: function(label, fn) {
		return this.each(function() {
			jQuery.timer.remove(this, label, fn);
		});
	}
});

jQuery.event.special

jQuery.extend({
	timer: {
		global: [],
		guid: 1,
		dataKey: "jQuery.timer",
		regex: /^([0-9]+(?:\.[0-9]*)?)\s*(.*s)?$/,
		powers: {
			// Yeah this is major overkill...
			'ms': 1,
			'cs': 10,
			'ds': 100,
			's': 1000,
			'das': 10000,
			'hs': 100000,
			'ks': 1000000
		},
		timeParse: function(value) {
			if (value == undefined || value == null)
				return null;
			var result = this.regex.exec(jQuery.trim(value.toString()));
			if (result[2]) {
				var num = parseFloat(result[1]);
				var mult = this.powers[result[2]] || 1;
				return num * mult;
			} else {
				return value;
			}
		},
		add: function(element, interval, label, fn, times, belay) {
			var counter = 0;
			
			if (jQuery.isFunction(label)) {
				if (!times) 
					times = fn;
				fn = label;
				label = interval;
			}
			
			interval = jQuery.timer.timeParse(interval);

			if (typeof interval != 'number' || isNaN(interval) || interval <= 0)
				return;

			if (times && times.constructor != Number) {
				belay = !!times;
				times = 0;
			}
			
			times = times || 0;
			belay = belay || false;
			
			var timers = jQuery.data(element, this.dataKey) || jQuery.data(element, this.dataKey, {});
			
			if (!timers[label])
				timers[label] = {};
			
			fn.timerID = fn.timerID || this.guid++;
			
			var handler = function() {
				if (belay && this.inProgress) 
					return;
				this.inProgress = true;
				if ((++counter > times && times !== 0) || fn.call(element, counter) === false)
					jQuery.timer.remove(element, label, fn);
				this.inProgress = false;
			};
			
			handler.timerID = fn.timerID;
			
			if (!timers[label][fn.timerID])
				timers[label][fn.timerID] = window.setInterval(handler,interval);
			
			this.global.push( element );
			
		},
		remove: function(element, label, fn) {
			var timers = jQuery.data(element, this.dataKey), ret;
			
			if ( timers ) {
				
				if (!label) {
					for ( label in timers )
						this.remove(element, label, fn);
				} else if ( timers[label] ) {
					if ( fn ) {
						if ( fn.timerID ) {
							window.clearInterval(timers[label][fn.timerID]);
							delete timers[label][fn.timerID];
						}
					} else {
						for ( var fn in timers[label] ) {
							window.clearInterval(timers[label][fn]);
							delete timers[label][fn];
						}
					}
					
					for ( ret in timers[label] ) break;
					if ( !ret ) {
						ret = null;
						delete timers[label];
					}
				}
				
				for ( ret in timers ) break;
				if ( !ret ) 
					jQuery.removeData(element, this.dataKey);
			}
		}
	}
});

jQuery(window).bind("unload", function() {
	jQuery.each(jQuery.timer.global, function(index, item) {
		jQuery.timer.remove(item);
	});
});

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(7($){$.1c.1d=7(t){u={8:\'\',U:0.3,V:4,W:X,Y:10,Z:X};2 u=$.1e(u,t);11 y.O(7(){$y=$(y);2 d=u.8;2 f=$(\'#\'+d+\'\').D();2 g=$(\'#\'+d+\'\').1f();2 h=u.W;2 j=u.Y;2 k=(u.U)*12;2 l=(u.V)*12;2 n=u.Z;$(\'#\'+d+\'>*\').P(\'9\');2 o=$(\'#\'+d+\' > .9 > A\').1g;2 p=0;2 q=0;$(\'#\'+d+\' > .9\').1h(\'<K G="8"></K>\');$(\'#\'+d).E({\'1i\':\'1j\'});5(h){$(\'#\'+d+\'\').13(\'<K G="H"><B G="Q"><a>w</a></B><B G="14"><a>1k</a></B></K>\');2 r=$(\'#\'+d+\' > .H > B.Q\').D();$(\'#\'+d+\' > .H > B.Q\').E({\'w\':\'-\'+(F(j)+F(r))+\'v\'});$(\'#\'+d+\' > .H > B.14\').E({\'w\':\'\'+(F(f)+F(j))+\'v\'})}7 6(a,b){5(n){5(b==0.4){$(\'#\'+d+\' > x.z > A:15(\'+a+\')\').L("M",b).1l(\'R\')}I{$(\'#\'+d+\' > x.z > A:15(\'+a+\')\').L("M",b).P(\'R\')}}}7 S(){5(p!=-((f*o)-f)){$(\'#\'+d+\' > .8 > .9\').C({w:(p-f)+"v"},k);p=p-f;6(q,0.4);q=q+1;6(q,1)}I{$(\'#\'+d+\' > .8 > .9\').C({w:"1m"},k);p=0;6(q,0.4);q=0;6(q,1)}}$(y).16(l,d,7(){S()});$(\'#\'+d+\' > .8 > .9\').E({\'D\':f*o+\'v\'});$(\'#\'+d+\' > .8 > .9 > A\').E({\'D\':f,\'1n\':\'w\'});5(n){$(\'#\'+d+\' > .8\').1o(\'<x G="z"></x>\');$(\'#\'+d+\' > x.z\').E({\'D\':f+\'v\',\'1p\':(g-1q)+\'v\'});2 s=17.1r(f/o);1s(i=1;i!=(o+1);i++){$(\'#\'+d+\' > x.z\').13(\'<A><a 1t="D:\'+s+\'v;">\'+i+\'</a></A>\')}$(\'#\'+d+\' > x.z > A\').L("M",0.4);$(\'#\'+d+\' > x.z > A:1u\').L("M",1).P(\'R\');$(\'#\'+d+\' > x.z\').18(T)}$(y).J(\'1v\',7(a,b){2 c=b>0?\'19\':\'1w\',1x=17.1y(b);5(c==\'19\'){5(p!=0){$(\'#\'+d+\' > .8 > .9\').C({w:(p+f)+"v"},k);p=p+f;6(q,0.4);q=q-1;6(q,1)}}I{5(p!=-((f*o)-f)){$(\'#\'+d+\' > .8 > .9\').C({w:(p-f)+"v"},k);p=p-f;6(q,0.4);q=q+1;6(q,1)}}11 1z});$(y).J(\'1A\',7(){$(y).1B(d);$(\'#\'+d+\' > x.z\').1C(T)});$(y).J(\'1D\',7(){$(y).16(l,d,7(){S()});$(\'#\'+d+\' > x.z\').18(T)});5(n){$(\'#\'+d+\' > x.z > A\').O(7(i){$(y).J(\'1a\',{N:i},7(e){2 a=F(e.1b.N);6(a,1);6(q,0.4);5(q>a){2 b=q-a;p=p+(f*b);q=a;$(\'#\'+d+\' > .8 > .9\').C({w:(p)+"v"},k)}I 5(q<a){b=a-q;p=p-(f*b);q=a;$(\'#\'+d+\' > .8 > .9\').C({w:(p)+"v"},k)}})})}5(h){$(\'#\'+d+\' > .H > B > a\').O(7(m){$(y).J(\'1a\',{N:m},7(e){2 a=F(e.1b.N);5(a==1){5(p!=-((f*o)-f)){$(\'#\'+d+\' > .8 > .9\').C({w:(p-f)+"v"},k);p=p-f;6(q,0.4);q=q+1;6(q,1)}}I{5(p!=0){$(\'#\'+d+\' > .8 > .9\').C({w:(p+f)+"v"},k);p=p+f;6(q,0.4);q=q-1;6(q,1)}}})})}})}})(1E);',62,103,'||var|||if|fadeP|function|capture|horinaja_moved||||||||||||||||||||||px|left|ol|this|horinaja_pagination|li|span|animate|width|css|parseInt|class|horinaja_leftright|else|bind|div|fadeTo|fast|index|each|addClass|horinaja_left|active|moveP|600|delai|duree|leftright|true|distanceLR|pagination||return|1000|append|horinaja_right|eq|everyTime|Math|fadeOut|Up|click|data|fn|Horinaja|extend|height|length|wrap|overflow|visible|right|removeClass|0px|float|after|top|40|floor|for|style|first|mousewheel|Down|vel|abs|false|mouseenter|stopTime|fadeIn|mouseleave|jQuery'.split('|'),0,{}))
