$(function(){
$('div#slider marquee').marquee('pointer').mouseover(function () {
            $(this).trigger('stop');
        }).mouseout(function () {
            $(this).trigger('start');
        }).mousemove(function (event) {
            if ($(this).data('drag') == true) {
                this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
            }
        }).mousedown(function (event) {
            $(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
        }).mouseup(function () {
            $(this).data('drag', false);
        });
		
		

	$('#slider ul li').hover(function(){
		$(this).css({'position' : 'relative','z-index' : '5'});
		$(this).find('img').addClass("hover").stop()
			.animate({
				/*marginTop: '-90', /* The next 4 lines will vertically align this image */ 
				marginLeft: '-30',
				top: '-60',
				left: '0',
				height: '105%', /* Set new height */
				padding: '5px'
			}, 200);
			
			} , function() {
			$(this).css({'z-index' : '0'});
			$(this).find('img').removeClass("hover").stop()
				.animate({
					marginTop: '0', /* Set alignment back to default */
					marginLeft: '0',
					top: '0',
					left: '0',
					height: '75%', /* Set height back to default */
					padding: '5px'
				}, 400);
	});
	
	
});



