
window.addEvent('domready', function() {

	/*
	if($('thirdnavmousemove')) {
		
		if(($('thirdnavmousemove').scrollHeight - $('thirdnavmousemove').clientHeight) != 0) {	
			$('thirdnavmousemove').setProperty('class','scrollTop');			
		}		
				
		var navscroll = new Scroller('thirdnavmousemove', {area: 30, velocity: 1});
		$('thirdnavmousemove').addEvent('mouseover', navscroll.start.bind(navscroll));
		$('thirdnavmousemove').addEvent('mouseout', navscroll.stop.bind(navscroll));		

		$('thirdnavmousemove').addEvent('mousemove', function() {
			var top = $('thirdnavmousemove').scrollTop;
			var bottom = $('thirdnavmousemove').scrollHeight - (top + $('thirdnavmousemove').clientHeight);						
															
			if(top == 0) {
				$('thirdnavmousemove').setProperty('class','scrollTop');
			}
			
			if(bottom == 0) {
				$('thirdnavmousemove').setProperty('class','scrollBottom');
			}
			
			if(bottom != 0 && top != 0) {
				$('thirdnavmousemove').setProperty('class','scrollMiddle');
			}
			
		})		

	}
	*/
	
	/*
	if($('mainImage')) {

			var thumbs = $$('.swapper');	
			var oldimage = $('mainImage').title;			
			var hiding;
					
			thumbs.each(function(element) {		
				element.setStyle('cursor','pointer');
				
				element.addEvent('mouseover', function() {					
					hiding = $clear(hiding);										
					$('mainImage').setStyle('background-image','url(/products/e_' + this.alt + '.jpg)');									
					$('mainImage').title = this.alt;										
				})
					
				element.addEvent('mouseout', function() {						
					hiding = (function(){ 
						$('mainImage').setStyle('background-image','url(/products/e_' + oldimage + '.jpg)');							
						$('mainImage').title = oldimage;
						}).delay(300);	
				})
			})

			if($$('.images_slideshow').length > 1) {
				$$('.images_slideshow').setStyle('display','block');
				$$('.images_slideshow').setStyle('position','absolute');
	
				$$('.images_slideshow').fade('hide');
				$$('.images_slideshow')[0].fade('show');
				
				var currentIndex = 1;
				
				var nextImage = function(){	
	
					if(currentIndex == $$('.images_slideshow').length) {
						currentIndex = 0;
					}
	
					$$('.images_slideshow').fade('hide');
					$$('.images_slideshow')[currentIndex].fade('in');
				
					currentIndex++;
				};
				
				nextImage.periodical(5000);
			}
	}	
	*/		
});