﻿/*
 * Site
 */
var Site = {
	init: function(){
		Site.FancyZoom.init();
		Site.Carousel.init();
	}
};


/*
 * Site.FancyZoom
 */

Site.Carousel = {
	init: function(){
		if ($("carousel1"))
			carousel1 = new UI.Carousel("carousel1", { previousButton:".prev", nextButton:".next", container:".wrapper", overButtonSuffix:"-hover", disabledButtonSuffix:"-disabled" });
		if ($("carousel2"))
			carousel1 = new UI.Carousel("carousel2", { previousButton:".prev", nextButton:".next", container:".wrapper", overButtonSuffix:"-hover", disabledButtonSuffix:"-disabled" });
		if ($("carousel3"))
			carousel1 = new UI.Carousel("carousel3", { previousButton:".prev", nextButton:".next", container:".wrapper", overButtonSuffix:"-hover", disabledButtonSuffix:"-disabled" });
		if ($("carousel4"))
			carousel1 = new UI.Carousel("carousel4", { previousButton:".prev", nextButton:".next", container:".wrapper", overButtonSuffix:"-hover", disabledButtonSuffix:"-disabled" });
		if ($("carousel5"))
			carousel1 = new UI.Carousel("carousel5", { previousButton:".prev", nextButton:".next", container:".wrapper", overButtonSuffix:"-hover", disabledButtonSuffix:"-disabled" });
		if ($("carousel6"))
			carousel1 = new UI.Carousel("carousel6", { previousButton:".prev", nextButton:".next", container:".wrapper", overButtonSuffix:"-hover", disabledButtonSuffix:"-disabled" });
		if ($("carousel7"))
			carousel1 = new UI.Carousel("carousel7", { previousButton:".prev", nextButton:".next", container:".wrapper", overButtonSuffix:"-hover", disabledButtonSuffix:"-disabled" });
		if ($("carousel8"))
			carousel1 = new UI.Carousel("carousel8", { previousButton:".prev", nextButton:".next", container:".wrapper", overButtonSuffix:"-hover", disabledButtonSuffix:"-disabled" });
	}
};


/*
 * Site.FancyZoom
 */
Site.FancyZoom = {
	init: function(){
		//$$("div.carousel-v li a").each(function(el) { new FancyZoom(el, { edgy:true }); });
		$$("div.carousel-v li a").each(function(el) { new FancyZoom(el, { edgy:(Prototype.Browser.WebKit ? true : false) }); });
	}
};

document.observe('dom:loaded', function() { Site.init(); });
