// JavaScript Document

jQuery.jQueryRandom = 0;
jQuery.extend(jQuery.expr[":"],
{
    random: function(a, i, m, r) {
        if (i == 0) {
            jQuery.jQueryRandom = Math.floor(Math.random() * r.length);
        };
        return i == jQuery.jQueryRandom;
    }
});

$(document).ready(function(){
	$('.big_block_image').hide();
	$('.image_blocks li img').hide();
	$('.big_block_image').fadeIn(400);
		count=1;
		image_load=setInterval(function() {
			count++;
			$('.image_blocks img:random').fadeIn(400);
			if(count == 100) {
			clearInterval(image_load);
			}
		}, 50);
	});
$(document).ready(function(){
		
//Larger thumbnail preview 

$("ul.image_blocks li").hover(function() {
	$(this).css({'z-index' : '10'});
	$(this).find('img.zoomer')
		.animate({ 
			marginTop: '-10px',
			marginLeft: '-9px',
			width: '145px', 
			height: '125px'
		}, 200);
	
	} , function() {
	$(this).css({'z-index' : '0'});
	$(this).find('img.zoomer')
		.animate({
			marginTop: '0',
			marginLeft: '0',
			width: '125px', 
			height: '108px'
		}, 200);
});
});