$(function() {         
    // initialize scrollable  
    $("div.scrollable").scrollable({ 
        vertical:true,  
        size: 1 
         
    // use mousewheel plugin 
    }).mousewheel();     
}); 

$(function() {
	$('a.lightbox').lightBox(); // Select all links with lightbox class
});

$(function () {
	$.each(
	$('.loading'),
		function( intIndex, objValue ){
			var img = new Image();
			$(img).load(function () {
				$(this).hide();
				$(objValue).removeClass('loading').append(this);
				$(this).fadeIn();
			}).error(function () {
			}).attr('src', $(this).attr('load'));
		}
	);
});

