var Site = {
		
	start: function(){
		
		Site.fixExplorer();
	
		$$('.unclick').addEvent('click', function(e){ e.preventDefault(); });
		
		if( $$('.external') ) {
			Site.setExternals($$('.external'));
		}
		
		if( $('navigation')) {
			var myMenu = new MenuMatic({
				id: 'navigation'
			});	
		}
		
		if( $('goto_product')) {
			
			$$('#goto_product select').addEvent('change', function() {
				$('goto_product').submit();
			});
		}
		
		if( $('slide')) {
			
			new SlideItMoo({
				overallContainer: 'SlideItMoo_outer',
				elementScrolled: 'SlideItMoo_inner',
				thumbsContainer: 'SlideItMoo_items',		
				itemsVisible:3,
				elemsSlide:3,
				duration:300,
				itemsSelector: '.SlideItMoo_element',
				itemWidth: 200,
				showControls:1,
				onChange: function(index){
					
				}
			});
		}
	},
		
	setExternals: function(els){
		els.addEvent('click', function(ev){ window.open(this.href); new Event(ev).stop(); return; });
	},

	fixExplorer: function() {
		$$('input[type=radio]', 'input[type=checkbox]').setStyle('border', '0');
		$$('textarea', 'select').addEvents({
			'focus': function(){ this.addClass('highlight');},
			'blur': function(){ this.removeClass('highlight');}
		});
	}
};

window.addEvent('domready', Site.start );
