<!--

function repl(s,t,r) {
for(i=s.indexOf(t);i!=-1;i=s.indexOf(t)){s=s.substring(0,i)+r+(i+t.length<s.length?s.substring(i+t.length,s.length):"");}return s;}

function openSizedPopup(file,cred){
	//preload image files
	preImage = new Image();
	fullFile = "/_img/inside/news/large/" + file;
	preImage.onload = function(){
	// open image in popup window
	targWidth=this.width+30;
	targHeight=this.height+30;
   popupWindow=window.open(fullFile,'newWin','toolbar=no,width='+targWidth+',height='+targHeight);

   popupWindow.document.write('<html><head><title>Photo credit: ' + cred + '<\/title><\/head><body><a href="/" onclick="window.close();return false;" title="Click to Close"><img src="/_img/inside/news/large/"' + fullFile + '" alt="' + cred + '" /></a><\/body><\/html>');
    				 popupWindow.resizeBy(targWidth-popupWindow.document.body.clientWidth,targHeight-popupWindow.document.body.clientHeight);
 	popupWindow.focus();
 	}
	preImage.src = fullFile;
} 



function lrgr(oo,ii,nn,ww,hh){
var u, n, s;
u="/inside-tbb/news/popup.asp?i="+ii+"&"+"n="+nn;
n="_"+repl(ii,"-","_")+"_";

s="toolbar=no,location=no,directories=no,menubar=no,resizable=yes,scrollbars=yes";
w=ww+15;x=parseInt((screen.width-w)/2);h=hh+15;y=parseInt((screen.height-h)/2);
if(navigator.appName.indexOf("Microsoft")>=0){
	s=s+",left="+x;s=s+",top="+y;
}else{
	s=s+",screenx="+x;s=s+",screeny="+y;
}
if (w > 1000) w = 1000;
if (y > 700) y = 700;
s=s+",width="+w;
s=s+",height="+h;
win=window.open(u,'largerimg',s);
win=window.open(u,n,s);
win.focus();oo.blur();
}

//-->