$(function() {
	$("img.reflect").reflect();
	$(".bandlist a img").reflect();
	$(".bandlist a img").each(function(index, element) {
		var $t = $(element);
		if ($t.attr("src").indexOf("-gray.") != -1) {
			element._originalSource = $t.attr("src");
			element._colorSource = element._originalSource.replace("-gray", "");				 
			$t.mouseover(function(e) {
				if ($(this).attr("class") == "reflected") {
					this.onload = null;
				}
				this.src = this._colorSource;
			});	
			$t.mouseout(function(e) {
				if ($(this).attr("class") == "reflected") {
					this.onload = null;
				}
				this.src = this._originalSource;
			});	
		}
	});
});

