
		var windowWidth = "?";
		var windowHeight = "?";
		
		function getWindowSize() {
		  var myWidth = 0, myHeight = 0;
		  if( typeof( window.innerWidth ) == 'number' ) {
			//Non-IE
			myWidth = window.innerWidth;
			myHeight = window.innerHeight;
		  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			//IE 4 compatible
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
		  }
		  
		  windowWidth = myWidth;
		  windowHeight = myHeight;
		}
		
		
		
		
		var mouseX = null;
		var mouseY = null;
		
		function getXY(e) {
  			mouseX = (window.Event) ? e.pageX : event.clientX;
  			mouseY = (window.Event) ? e.pageY : event.clientY;
		}
		
		function alertCoord(e) {
		  var xcoord, ycoord;
		  if( !e ) { e = window.event; }
		  if( !e ) { return; }
		  if( typeof( e.pageX ) == 'number' ) {
			xcoord = e.pageX;
			ycoord = e.pageY;
		  } else if( typeof( e.clientX ) == 'number' ) {
			xcoord = e.clientX;
			ycoord = e.clientY;
			
			if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
			  xcoord += document.body.scrollLeft;
			  ycoord += document.body.scrollTop;
			} else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
			  xcoord += document.documentElement.scrollLeft;
			  ycoord += document.documentElement.scrollTop;
			}
			
		  } else { return; }
		  //window.alert('Mouse coordinates are ('+xcoord+','+ycoord+')');
		  mouseX = xcoord;
		  mouseY = ycoord;
		 
		 
		}
		
		function slide() {
			new Effect.Move('content-box', { x: 0, y: 0, mode: 'absolute' });
		}
		
		function frontproductScrollSlow() {
			
			var contentX = 1*document.getElementById("content-box").style.left.replace(/px/, "");
			var stepFreeArea = 200; //Math.round(windowWidth/2);
			var stepArea = Math.round((windowWidth-stepFreeArea)/2);
					
			var nextContentX = 0;
			var step = 0;
			var speed = 1;
			var topSpeed = 50;
			var startX = 0;	
			
			if(mouseX>windowWidth) {
				mouseX = windowWidth;
			}
			
			if	(mouseX<Math.round(stepArea)) {
				speed = Math.ceil(topSpeed*(1/(1+mouseX)));
				
			} else if (mouseX>Math.round(windowWidth-(stepArea))) {
				speed = Math.ceil(topSpeed*(1/(1+(windowWidth-mouseX))));
			}
			
			if (mouseX<stepArea) {
				step = speed;
				
			} else if (mouseX>stepArea+stepFreeArea) {
				step = -speed;
			}
				
			nextContentX = contentX+step ;
			
			if (nextContentX>=startX) {
				document.getElementById("content-box").style.left = startX+"px";
			
			} else if (nextContentX<=-slideWidth+windowWidth) {
				document.getElementById("content-box").style.left = -slideWidth+windowWidth+"px";
				
			} else if (nextContentX<=startX && nextContentX>=-slideWidth+windowWidth) {
				document.getElementById("content-box").style.left = Math.round(nextContentX)+"px";
			}
			
			setTimeout( "frontproductScrollSlow()", 15 );
		}
		
		function moveContent() {
			var contentX = 1*document.getElementById("content-box").style.left.replace(/px/, "");
			var stepFreeArea = 0;
			var stepArea = Math.round((windowWidth-stepFreeArea)/2);
			
			if (mouseX<stepArea) {
				if (contentX<-windowWidth) {
					new Effect.Move('content-box', { x: windowWidth-100, y: 0, mode: 'relative' });	
				} else {
					new Effect.Move('content-box', { x: 0, y: 0, mode: 'absolute' });	
				}
			} else if (mouseX>stepArea+stepFreeArea) {
				if (contentX>-slideWidth+windowWidth+windowWidth) {
					new Effect.Move('content-box', { x: -windowWidth, y: 0, mode: 'relative' });	
				} else {
					new Effect.Move('content-box', { x: -slideWidth+windowWidth, y: 0, mode: 'absolute' });	
				}
			}
		}
		
		
		function moveBack() {
			new Effect.Move('content-box', { x: 0, y: 0, mode: 'absolute' });
			setTimeout ( "frontproductScrollSlow()", 25 );
		}
		
		
