if (jQuery) {
	( function(A) {
		A.fn.slider = function(B) {
			var C = arguments.callee.support;
			new C(this[0].id, B);
			return this
		};
		A.fn.slider.support = function(B, C) {
			this.init(B, C)
		};
		A.fn.slider.support.prototype = function() {
			return {
				init : function(B, C) {
					this.options = A.extend( {
						duration :250,
						prev_img_src : "/img/prev-active.png.gif",
						prev_disabled_img_src : "/img/prev-inactive.png",
						next_img_src : "/img/next-active.png",
						next_disabled_img_src : "/img/next-inactive.png"
					}, C || {});
					this.slider_id = B;
					this.slider_sel = "#" + B;
					this._resize_timer = null;
					var D = this;
					A(window).unload( function() {
						return D.onUnload()
					});
					A(window).resize( function() {
						return D.onResize()
					});
					A(document).ready( function() {
						return D.onReady()
					})
				},
				onReady : function() {
					this.items = A(this.slider_sel + " .item");
					this.item_idx = 0;
					var B = this;
					A(this.slider_sel + " .controls .prev").click( function(C) {
						return B.onClickPrev(C)
					});
					A(this.slider_sel + " .controls .next").click( function(C) {
						return B.onClickNext(C)
					});
					this.onResize()
				},
				onUnload : function() {
					delete this.items
				},
				onResize : function() {
					var B = this;
					if (this._resize_timer) {
						clearTimeout(this._resize_timer)
					}
					this._resize_timer = window.setTimeout( function() {
						B._doResize()
					}, 50)
				},
				_doResize : function() {
					var C = A(this.slider_sel);
					var B = C.select(".viewport")[0];
					//A(this.slider_sel + " .addon").width(B.offsetWidth - 260);
					this.revealSelectedItem(15)
				},
				onClickPrev : function(B) {
					if ((this.item_idx - 1) < 0) {
						return false
					}
					this.item_idx--;
					return this.changeSelectedItem()
				},
				onClickNext : function(B) {
					if ((this.item_idx + 1) >= this.items.length) {
						return false
					}
					this.item_idx++;
					return this.changeSelectedItem()
				},
				changeSelectedItem : function() {
					this.updateItemNumber();
					this.updateButtonStates();
					this.revealSelectedItem();
					return false
				},
				updateItemNumber : function() {
					A(this.slider_sel + " .controls .index").text(
							this.item_idx + 1)
				},
				updateButtonStates : function() {
					var B = A(this.slider_sel + " .controls .prev img")[0];
					if (this.item_idx == 0) {
						B.src = this.options.prev_disabled_img_src
					} else {
						B.src = this.options.prev_img_src
					}
					var C = A(this.slider_sel + " .controls .next img")[0];
					if (this.item_idx == this.items.length - 1) {
						C.src = this.options.next_disabled_img_src
					} else {
						C.src = this.options.next_img_src
					}
				},
				revealSelectedItem : function(B) {
					if (!B) {
						B = this.options.slide_duration
					}
					A(this.slider_sel + " .viewport").animate( {
						scrollLeft :this.items[this.item_idx].offsetLeft
					}, B)
				},
				EOF :null
			}
		}()
	})(jQuery)
}

function installButtonAttachUrchin(A) {
	if ($(A).attr("isEULAPageLink")) {

		return false
	}
	$(A).mousedown( function(B) {
		if ($(this).attr("frozen") == "true") {
			return false
		}
		urchinDownloadTrackingEvent($(this).attr("href"))
	})
}
function installButtonAttachInstallMethod(A) {
	var B = $(A).attr("jsInstallMethod");
	$(A).click(
			function(C) {
				if ($(this).attr("frozen") == "true") {
					return false
				}
				if (B == "browser_app_addon_install") {
					return install(C, $(this).attr("addonName"), $(this).attr(
							"addonIcon"), $(this).attr("addonHash"))
				} else {
					if (B == "search_engine_install") {
						return addEngine($(this).attr("engineURL"))
					}
				}
			})
};