function template() {
	var di,im,width,height,j,perc;
	di = document.getElementById("main");
	im = di.getElementsByTagName("img");
	for ( j = 0; j < im.length; j++ ) {
		width = im[j].getAttribute("width");
		height = im[j].getAttribute("height");
		if (width > 460) {
			perc = 460/width;
			im[j].width = 460;
			im[j].height = Math.round(height * perc);
			im[j].style.width = 460;
			im[j].style.height = Math.round(height * perc);
		}
	}
}


