jQuery(document).ready(function($){

//Larger thumbnail preview 

$('ul.tableless li').hover(function() {
    var $img = $(this).css({
        'z-index': '10'
    }).find('img').addClass("hover").stop(),
        origSize = $img.data('orig-size'),
        size = origSize || {height: $img.height(), width: $img.width()};
    
    if (!origSize) $img.data('orig-size', size);
    
    $img.animate({
        marginTop: '-26px',
        marginLeft: '-32px',
        width: size.width*1.3,
        height: size.height*1.3,
		paddingTop: '8',
		paddingRight: '8',
		paddingBottom: '8',
		paddingLeft: '8'
    }, 250);
}, function() {
    var $img = $(this).css({
        'z-index': '0'
    }).find('img').removeClass("hover").stop(),
        
        size = $img.data('orig-size');
    
    $img.animate({
        marginTop: '0',
        marginLeft: '0',
        width: size.width,
        height: size.height,
		paddingTop: '0',
		paddingRight: '0',
		paddingBottom: '0',
		paddingLeft: '0'
    }, 500)
});





//Swap Image on Click
/*	$(".ce_gallery ul li a").click(function() {
		
		var mainImage = $(this).attr("href"); //Find Image Name
		$("#main_view img").attr({ src: mainImage });
		return false;		
	});
 */
});
