// JavaScript Document
function doPhoto (imgurl,bsize) {
	var tmp = new Image();
	tmp.src=imgurl;
	
	//alert(tmp.width+' | '+tmp.height+'|'+tmp+'::'+tmp.src);
	//if (!tmp.complete) {
	//	alert('cannot load image "'+tmp.src+'" !');
	//	return false;
	//	}
		
	var x=tmp.width;
	var y=tmp.height;
			
	var basewidth=18;
	
	var width=Math.round(basewidth/100*bsize);
	var ratio=26/12;
	var bheight=Math.round(width*ratio);
	
	var code='<!--<table border=0 cellpadding=0 cellspacing=0><tr>';
	code+='<td><img src="/i/FormalShadow_01.png"  style="width: '+width+'px; height: '+width+'px; padding: 0 0 0 0; margin: 0 0 0 0;"></td>';
	code+='<td><img src="/i/FormalShadow_02.png"  style="width: '+x+'px; height: '+width+'px; padding: 0 0 0 0; margin: 0 0 0 0;"></td>';
	code+='<td><img src="/i/FormalShadow_03.png"  style="width: '+width+'px; height: '+width+'px; padding: 0 0 0 0; margin: 0 0 0 0;"></td>';
	code+='</tr><tr>';
	code+='<td><img src="/i/FormalShadow_04.png"  style="width: '+width+'px; height: '+y+'px; padding: 0 0 0 0; margin: 0 0 0 0;"></td>';
	code+='<td><img src="'+imgurl+'"  astyle="width: '+x+'px; height: '+y+'px; padding: 0 0 0 0; margin: 0 0 0 0;"></td>';
	code+='<td><img src="/i/FormalShadow_06.png" style="width: '+width+'px; height: '+y+'px; padding: 0 0 0 0; margin: 0 0 0 0;"></td>';
	code+='</tr><tr>';
	code+='<td><img src="/i/FormalShadow_10.png"  style="width: '+width+'px; height: '+bheight+'px; padding: 0 0 0 0; margin: 0 0 0 0;"></td>';
	code+='<td><img src="/i/FormalShadow_11.png"  style="width: '+x+'px; height: '+bheight+'px; padding: 0 0 0 0; margin: 0 0 0 0;"></td>';
	code+='<td><img src="/i/FormalShadow_12.png"  style="width: '+width+'px; height: '+bheight+'px; padding: 0 0 0 0; margin: 0 0 0 0;"></td>';
	code+='</tr></table>-->'+imgurl;
	document.write(code);
	
	}