var notimooManager;

function classExists(c) {
  return typeof(c) == "function" && typeof(c.prototype) == "object" ? true : false;
}

window.addEvent('domready', function() {
	if ($('slideshow') != null) {
		mySlideShow = new SlideShow('slideshow', {
			delay : 6000,
			transition : 'pushLeft',
			duration : 500,
			autoplay : true
		});
		var navs = $$('ul#navs li');
		navs.each(function(el, index) {
			el.addEvent('click', function() {
				mySlideShow.show(index, {
					transition : 'fadeThroughBackground',
					duration : 1000
				});
				mySlideShow.pause();
			});
		});
		mySlideShow.addEvent('show', function(slideData) {
			navs[slideData.previous.index].removeClass('activeSlide');
			navs[slideData.next.index].addClass('activeSlide');
		});
	}
	SqueezeBox.initialize( {
		size : {
			x : 1000,
			y : 450
		}
	});
	SqueezeBox.assign($$('a[rel=box]'));

	try{ 
			notimooManager = new Notimoo({opacityTransitionTime:300,height:20});
	}catch (e) { }

});



