function zPad(n) {
	var sw='0'+(n+1)+'x'; 
	return sw.substr(sw.length-3,2);
}

function wDetail(t,n,m) {
	if (images[n].substr(0,1)=='P')	
		return ('photo_pop.html?type='+t+'&pic='+n+'&type='+t+'&max='+m);
	else
		return ('photo_popl.html?type='+t+'&pic='+n+'&type='+t+'&max='+m);
 }
