/*
 * I started this in an attempt to refactor some of the painting code out of PathwayDiagramPane but
 * didn't have time to finish it. 
 * 
 * gokelly 16 March 2010
 */

SpeciesComparator = function(){

	this.init = function(){
		YAHOO.util.Event.addListener($("speciesclose"), "mousedown", this.onClose, this, true);
	};
	this.onClose = function(){
		console.log("Closing species comparison");
		pba.pathwayDiagramPane.displayComparison = 0;
		$("canvasoverlay").getElementsBySelector(
		'div.comparetips').invoke('remove');
		$("speciescomparisonpanel").style.display = "none";
		
	};
}
