jQuery(function(){
	var link = jQuery("#this_link");
	if( link.size() > 0 ){
		jQuery("#left .item").each(function(){
			var item = jQuery(this);
			var find = false;
			item.find("a").each(function(){
				var href = jQuery(this).attr("href");
				var reg = re=/(.*)\-tit(\d+)(\.\w+)$/g;
				var old_url = jQuery(this).find("img").attr("src");
				var new_url = jQuery(this).find("img").attr("src").replace(reg, "$1-tit0$2$3");
				if( link.val() == jQuery(this).attr("href") ){
					jQuery(this).find("img").attr("src", new_url);
					item.removeClass("hidden");
					find = true;
				}
				else{
					jQuery(this).find("img").mouseover(function(){
						jQuery(this).attr("src", new_url);
					}).mouseout(function(){
						jQuery(this).attr("src", old_url);
					});
				}
			});
			if( find )
				return false;
		});
	}
});
