// JavaScript Document
function get_photogal(photo, href) {
	//gall = document.getElementsByName('gal');
	gall = getElementsByName_iefix('span', 'gal')
	
	//alert(gall.length);
	for (var i=0; i<gall.length; i++) {
		id = this.gall[i].id;
		if (id == photo) {
			document.getElementById(id).style.background = '#92C82E';
			document.getElementById(id).style.color = '#FFFFFF';
			document.images['bann_pr'].src = "/"+href;
		}
		else {
			document.getElementById(id).style.background = 'none';
			document.getElementById(id).style.color = '#6B5F49';
		}
	}
	
}

function getElementsByName_iefix(tag, name) {
     
     var elem = document.getElementsByTagName(tag);
     var arr = new Array();
     for(i = 0,iarr = 0; i < elem.length; i++) {
          att = elem[i].getAttribute("name");
          if(att == name) {
               arr[iarr] = elem[i];
               iarr++;
          }
     }
     return arr;
}
