function getPhotoArrayHTML(b){var a="",e,c,i,f,g,j,m,n,o,d,k,l,p,h=0;c=propertyDB[b].theStreetAddress;i=propertyDB[b].theCondoName;f=propertyDB[b].theTown;g=propertyDB[b].theCity;j=propertyDB[b].thePostalCode;m=propertyDB[b].thePrice;n=propertyDB[b].thePriceTrend;o=propertyDB[b].theMLSnumber;d=propertyDB[b].theSoldDate;k=propertyDB[b].thePriceOld;l=propertyDB[b].thePictureCount;p=propertyDB[b].thePictureList.split(" ");b=propertyDB[b].thePictureBigList.split(" ");e=f;g!==""&&g!=f&&(e+=" ("+g+")");
j!=""&&(e+=" <span style='font-size: smaller;'>("+j+")</span>");a+="<html>";a+="<head>";a+="<title>"+c+" ("+f+") Photo Gallery</title>";a+="</head>";a+="<body>";a+="<table width='100%' style='font-family: Arial, sans-serif; background-color: yellow; font-size: 10pt; border: 2px solid black;'><tr>";a+="<td align=left>";a+="<span style='font-size: 16pt; font-weight: bold; color: black;'>"+c+"</span>";i!=""&&(a+=" <i>("+i+")</i>");a+="<br>";a+=e;a+="<td align=right>";d!=""?(a+="<span style='color: red; font-weight: bold;'>",
a+="Sold "+kMonthNames[d.getMonth()]+" "+d.getDate()+", "+d.getFullYear(),a+=" </span>"):k!=0&&(a+="<span style='color: red; text-decoration: line-through;'>"+formatPrice(k)+"</span> ");a+="<span style='font-size: 16pt; font-weight: bold; color: green;'>"+formatPrice(m)+n+"</span>";a+="<br>";a+=o;a+="</table>";a+="<div style='height: 8px;'></div>";if(l>0){a+="<center>";a+="<table cellpadding=5 border=0><tr>";a+="<td align=center valign=top>";h++;for(c=0;c<10&&c<l;)a+="<img src='"+p[c]+'\' height=75 style=\'border: 2px solid white;\' onMouseOver=\'this.style.border="2px solid red"; document.getElementById("photo").src="'+
b[c]+"\";' onMouseOut='this.style.border=\"2px solid white\";'><br style='margin-bottom: 4px;'>",c++,c==5&&(a+="<td align=center valign=top>",h++);a+="<td align=center valign=top width=530>";h++;a+="<img src='"+b[0]+"' id='photo' height=411>";a+="<tr align=center><td colspan="+h+">";a+="<hr><span style='font-size: 10pt; font-style: italic;'>Move the mouse over a thumbnail image to view a different picture.</span>";a+="</table>";a+="</center>"}a+="</body>";a+="</html>";return a}
function showPhotoArray(b){var a;a=window.open("","","left=0,top=0,width=830,height=625,scrollbars=1,resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0");a.document.write(getPhotoArrayHTML(b));a.document.close()};
