FlashImageViewer = Class.create();
FlashImageViewer.prototype = {
	initialize: function() {
		this.hookClickables('more_views');
		
		if($('attribute76') != undefined )
			Event.observe('attribute76', 'change', this.colorChange);
	},
	
	testFct: function(element){
		var image = element.target;
		var movie = document["EInterface"];
		
		movie.sendToActionScript(image.getAttribute("largesrc"), image.getAttribute("thumbsrc"));
		Event.stop(element);
		
	},
	
	thisMovie: function(movieName){
		return document[movieName];
	},
	
	hookClickables: function(parent){
		parent = $(parent);
	    if (parent)
	    {
	        parent.select('.image-thumb').invoke('observe', 'click', this.testFct.bind(this));
	    }
	}
	
}
