jQuery(document).ready(function() {
	jQuery(".scrollable").scrollable({ vertical: true });
});

RBW = {

};

RBW.Tools = {

};

RBW.Tools.Reference = {
    references: {},
	addReference: function(id, images) {
		RBW.Tools.Reference.references[id] = { 'images': images };
	},
	showReference: function(id) {
		jQuery('.browserWrapper').hide();
		jQuery('.scrollable').hide();
		jQuery('.floatingDivDescription').show();

		for(i=0; i < 3; i++) {
			try {
				jQuery('.floatingDivDescription > a > img')[i].src = RBW.Tools.Reference.references[id].images[i+1];
			} catch(e) {
			}
		}

		jQuery('.floatingDivDescription > .description > .text').html(jQuery('#' + id + '_text').html());
	}
};
