function eventSlideImage(e) {
	var totalWidth = e.target.getStyle('width').toInt(); 
	var totalHeight = e.target.getStyle('height').toInt();
	var displayWidth =  e.target.getParent().getStyle('width').toInt();
	var displayHeight =  e.target.getParent().getStyle('height').toInt();
	var cursorPosition = getCursorPosition(e);
	var elementPosition = getElementPosition(e.target.getParent()); 
	var cursorLeft = cursorPosition.x - elementPosition.x; 
	var cursorTop = cursorPosition.y - elementPosition.y;
	//alert(totalWidth);
	var newTop = - Math.max(Math.min(Math.min(1,(cursorTop / displayHeight)) * (totalHeight - displayHeight), totalHeight),0);
	var newLeft = - Math.max(Math.min(Math.min(1,cursorLeft.toFloat() / displayWidth.toFloat()) * (totalWidth.toFloat() - displayWidth.toFloat()), totalWidth.toFloat()),0).toInt();
//	$('debug').innerHTML = cursorLeft.toFloat() / displayWidth.toFloat();
//	this.imageSlideFx.pause();

	var oldTop =  e.target.getStyle('top').toInt();
	var oldLeft =  e.target.getStyle('left').toInt();

//	this.imageSlideFx.options.duration = (Math.abs(oldTop - newTop) + Math.abs(oldLeft - newLeft)) * 5;
//	this.imageSlideFx.start({
//		    '0': {
//		        'top': newTop,
//		        'left': newLeft
//		        //'opacity' : 0
//		    }
//		});
				
	e.target.setStyles({top: newTop, left: newLeft});

}