aa=navigator;ab=document;ba="";if (location.search.toLowerCase().indexOf("mode=album")>0||location.search.toLowerCase().indexOf("mode=options")>0){ba="Album"}else if (location.search.toLowerCase().indexOf("mode=pda")>0){ba="PDA"}else if (location.search.toLowerCase().indexOf("mode=basic")>0){ba="Basic"}else{if (aa.appVersion.indexOf("MSIE 5.5")>0||aa.appVersion.indexOf("MSIE 6.0")>0){ba="Album"}else if (aa.appVersion.indexOf("Windows CE")>0){ba="PDA"}else{ba="Basic"}}switch (ba){case "Album":ab.location.replace(albumPageMain+location.search+location.hash);break;case "PDA":km();break;case "Basic":kl();break;default:}function kl(){ab.write("<head>");ab.write("<title>"+albumTitle+"</title>");ab.write("<link rel=stylesheet type=text/css href=\""+escape(albumPathEngine+albumStylesheet)+"\">");ab.write("</head>");ab.write("<body>");ab.write("<center>");ab.write("<p id=PBasicTitle>"+albumTitle+"</p>");ab.write("<p id=PBasicSiteLink>"+albumSiteLink+"</p>");ab.write("<p id=PBasicDescription>"+albumDescription+"</p>");ab.write("<p id=PBasicLink><a class=Album href=\"javascript:alert('"+albumBasicMessage+"')\">"+albumBasicLabel+"</a></p>");kn=albumIndexThumbWidth;ko=albumIndexThumbHeight;hp=albumBasicColumns;kp=Math.ceil(albumPageCount/hp);ab.write("<table id=BasicThumbnails>");for (row=1; row<=kp; row++){ab.write("<tr>");for (col=1; col<=hp; col++){gw=(row-1)*hp+col;if (gw<=albumPageCount){ab.write("<td class=BasicCaption>");ab.write("&nbsp");ab.write("</td>")}}ab.write("</tr>");ab.write("<tr>");for (col=1; col<=hp; col++){gw=(row-1)*hp+col;if (gw<=albumPageCount){ab.write("<td class=BasicThumbnail>");if ((albumImageWidth[gw][albumIndexVariant]/albumImageHeight[gw][albumIndexVariant])>(kn/ko)){go=kn;gp=Math.round(albumImageHeight[gw][albumIndexVariant]*go/albumImageWidth[gw][albumIndexVariant])}else{gp=ko;go=Math.round(albumImageWidth[gw][albumIndexVariant]*gp/albumImageHeight[gw][albumIndexVariant])}ab.write("<a href=\""+escape(((typeof albumMediaFile[gw]=="undefined"||albumMediaFile[gw]=="")?(ih(gw, albumPageVariant)):(albumPathMedia+albumMediaFile[gw])))+"\">");ab.write("<img class=BasicThumbnail src=\""+escape(ih(gw, albumIndexVariant))+"\" width="+go+" height="+gp+" title=\""+((typeof albumMediaFile[gw]=="undefined"||albumMediaFile[gw]=="")?ii(gw, albumPageVariant):albumMediaFile[gw])+"\">");ab.write("</a>");ab.write("</td>")}}ab.write("</tr>");ab.write("<tr>");for (col=1; col<=hp; col++){gw=(row-1)*hp+col;if (gw<=albumPageCount){ab.write("<td class=BasicCaption>");ab.write("<p class=BasicCaption style=\"width: "+kn+"\">");ab.write(((typeof albumMediaFile[gw]=="undefined"||albumMediaFile[gw]=="")?ii(gw, albumPageVariant):albumMediaFile[gw]));ab.write("</p>");ab.write("</td>")}}ab.write("</tr>")}ab.write("</table>");ab.write("</center>");ab.write("</body>")}function km(){ab.write("<head>");ab.write("<title>"+albumTitle+"</title>");ab.write("</head>");ab.write("<body>");ab.write("<center>");ab.write("<font size=5><b>"+albumTitle+"</b></font><br>");ab.write(albumSiteLink+"<br>");ab.write(albumDescription+"<br>");ab.write("<a href=\"javascript:alert('"+albumBasicMessage+"')\">"+albumBasicLabel+"</a>");ab.write("<table>");for (gw=1; gw<=albumPageCount; gw++){kn=100;ko=100;if ((albumImageWidth[gw][albumIndexVariant]/albumImageHeight[gw][albumIndexVariant])>(kn/ko)){go=kn;gp=Math.round(albumImageHeight[gw][albumIndexVariant]*go/albumImageWidth[gw][albumIndexVariant])}else{gp=ko;go=Math.round(albumImageWidth[gw][albumIndexVariant]*gp/albumImageHeight[gw][albumIndexVariant])}ab.write("<tr>");ab.write("<td>");ab.write("<a href=\""+escape(((typeof albumMediaFile[gw]=="undefined"||albumMediaFile[gw]=="")?(ih(gw, albumPageVariant)):(albumPathMedia+albumMediaFile[gw])))+"\">");ab.write("<img src=\""+escape(ih(gw, albumIndexVariant))+"\" width="+go+" height="+gp+">");ab.write("</a>");ab.write("</td>");ab.write("<td>");ab.write("<font size=2>");ab.write(((typeof albumMediaFile[gw]=="undefined"||albumMediaFile[gw]=="")?ii(gw, albumPageVariant):albumMediaFile[gw]));ab.write("</font>");ab.write("</td>");ab.write("</tr>")}ab.write("</table>");ab.write("</center>");ab.write("</body>")}function ih(fh, ha){return albumPathImage+albumVariantPath[ha]+ii(fh, ha)}function ii(fh, ha){fg=albumImageFile[fh];dw=fg.lastIndexOf(".");if (dw>-1){hb=fg.substr(0, dw);hc=fg.substr(dw+1, fg.length-dw-1)}else{hb=fg;hc=""}if (albumVariantFormat[ha].toLowerCase().substr(0, 4)=="jpeg"){hc="jpg"}else if (albumVariantFormat[ha].toLowerCase().substr(0, 3)=="png"){hc="png"}if (hc.length>0){fg=hb+"."+hc}else{fg=hb}return fg}