$(document).ready( function( ){
	/*$("#form-contact").submit(function(){
		var fields = {};
		$("#form-contact [@id^=input]").each(function(){
//			console.log( $(this).attr( "name" ) );
			fields[$(this).attr( "name" )] = $(this).val( );
		});
//		console.log( fields );
		$.post( $("#form-contact").attr( "action" ),
		  fields,
		  function(msg){
//		  	console.log( msg );
		  	$.blockUI({ message: msg }); 
		  	setTimeout( function(){ $.unblockUI();  }, 1500 );
		  }
		);
		return false;
	});
	*/
	
	jQuery.fn.fancybox.defaults.path = assets_url + 'images/fancybox/';
	$(".zoomable").click(function(){

		orig_src = this.src.replace( "thumb_", "" );
		msg = '<img style="cursor: url( \'../images/zoomout.cur\' ), pointer;"  onclick="$.unblockUI( );" src="'+ orig_src +'" />';

		$.blockUI({ 
			message: msg,
			
			css: {  
			    top: 20,
			    width: 'auto',
			    height: 'auto',
//			    left: $(window).width( )/2-426,
			    backgroundColor: '#000',
			    cursor: 'default',
			    position: 'absolute'
			}
		});
	});



				$('.blockUI').click(function(){
					$.unblockUI( );
				});
});