Gallery = function(elm,updateElm) {
this.init(elm,updateElm);
}
$.extend(Gallery.prototype, {

init:function(elm,updateElm){
		this.elm = '#'+elm;
		this.updateElm = '#'+updateElm;
		//console.log(this.updateElm)
		//console.log($('#detail_image').src);
	  $(this.elm + " a").bind("click", function(e){
		$(this).find("img").each(function(i) {
			source = this.src.replace('tn','detail');
		   });
$('#detail_image').attr('src',source);
return false;
	
	   });



}
});

