/* Change image border

show_border() {

	//this.style.borderWidth='1';
	//this.style.borderColor='red';
	//this.style.borderStyle='solid';
	//alert('ddd');

}
*/

/* Show and hide wall */

function add_wall() {

	if(document.getElementById('wall').style.display == 'block') {

		document.getElementById('wall').style.display = 'none';
	}

	else {

		document.getElementById('wall').style.display = 'block';
	}
}


var v=0;

function Show(objId, hBlock) {

	var obj = document.getElementById(objId);

	if(v==0) {

		obj.style.display='block';

		if (obj.offsetHeight < hBlock) {

		  obj.style.height = (obj.offsetHeight + 10) + "px";
	      setTimeout (function(){Show(objId, hBlock)}, 15);
		}

		else {

			v=1;
		}

	}

	else {

		if (obj.offsetHeight > 10) {

			obj.style.height = (obj.offsetHeight - 10) + "px";
			setTimeout (function(){Show(objId, hBlock)}, 15);
		}

		else {

			v=0;
			obj.style.height='0px';
			obj.style.display='none';
	   }
	}
}