<!-- GALLERY ADS -->


var num = (Math.floor(Math.random()*10)+1);
if (num <= 9) {num = (Math.floor(Math.random()*1)+1);};
if (num == 10) {num = (Math.floor(Math.random()*1)+1);};
var ads;


<!-- AdSense Ad Links -->

if (num == 1) {ads = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" valign=\"center\" height=\"31\" width=\"100%\" bgcolor=\"#161616\"><tr><td align=\"center\" valign=\"center\"><iframe src=\"http://picturesofvancouver.eddiefernandes.com/gallerymessage.htm\" height=\"31\" width=\"100%\" frameborder=\"0\" scrolling=\"no\"></iframe></td></tr></table>"};


<!-- Pics & Blog Logos -->

if (num == 2) {ads = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" valign=\"middle\" height=\"34\" width=\"100%\" bgcolor=\"#161616\"><tr><td align=\"center\" valign=\"middle\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" valign=\"middle\" height=\"34\" bgcolor=\"#161616\"><tr><td align=\"right\" valign=\"middle\"><span style=\"font-family: times,Times,serif; font-size: medium; color: #dddddd\"><em>&nbsp;</em></span></td><td align=\"right\" valign=\"middle\"><a href=\"http://www.picturesofvancouver.com/\" target=\"_top\"><img src=\"http://picturesofvancouver.eddiefernandes.com/banner_picturesofvancouver_200x18.png\" alt=\"Pictures Of Vancouver\" width=\"200\" height=\"18\" hspace=\"2\" vspace=\"0\" border=\"0\" align=\"absmiddle\" /></a></td><td width=\"1\" align=\"center\" valign=\"middle\"><span class=\"style11\">&middot;&nbsp;</span></td><td align=\"left\" valign=\"middle\"><a href=\"http://www.blogofvancouver.com/\" target=\"_top\"><span style=\"font-weight: bold; letter-spacing:.2em; font-size: 10pt; color: #dddddd; font-family: 'Trebuchet MS', Trebuchet, Verdana, Sans-serif\">BlogOfVancouver.com</span></a></td></tr></table></td></tr></table>"};


<!-- Travelocity -->

if (num >= 999) {ads = "<table width=\"100%\" height=\"31\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"003063\" valign=\"center\"><tr><td align=\"right\" valign=\"center\" bgcolor=\"#003063\"><a href=\"http://www.kqzyfj.com/ki101r09608ORUTTTUYOQPSYUTTX\" target=\"_blank\"><img src=\"http://picturesofvancouver.eddiefernandes.com/spacer.gif\" width=\"100%\" height=\"31\" hspace=\"0\" vspace=\"0\" border=\"0\" /></a></td><td width=\"1\" align=\"center\" valign=\"center\" bgcolor=\"#003063\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" valign=\"center\" bgcolor=\"#003063\"><tr><td align=\"center\" valign=\"center\"><a href=\"http://www.kqzyfj.com/ki101r09608ORUTTTUYOQPSYUTTX\" target=\"_blank\"><img src=\"http://www.ftjcfx.com/qj97xjnbhf0365556A0214A6559\" alt=\"\" hspace=\"0\" vspace=\"0\" border=\"0\"/></a></td></tr></table></td><td align=\"left\" valign=\"center\" bgcolor=\"#003063\"><a href=\"http://www.kqzyfj.com/ki101r09608ORUTTTUYOQPSYUTTX\" target=\"_blank\"><img src=\"http://picturesofvancouver.eddiefernandes.com/spacer.gif\" width=\"100%\" height=\"30\" hspace=\"0\" vspace=\"0\" border=\"0\" /></a></td></tr></table>"};


















<!-- HOMEPAGE 4 CATEGORY HEADING SQUARES -->


var downgalls = 9;
var citygalls = 8;
var miscgalls = 9;
var eventsgalls = 9;
var totalgalls = downgalls+citygalls+miscgalls+eventsgalls;

var selection1 = (Math.floor(Math.random()*downgalls)+1); 
var selection2 = (Math.floor(Math.random()*citygalls)+downgalls+1); 
var selection3 = (Math.floor(Math.random()*miscgalls)+downgalls+citygalls +1); 
var selection4 = (Math.floor(Math.random()*eventsgalls)+downgalls+citygalls+miscgalls+1); 

var selection11 = (Math.floor(Math.random()*totalgalls)+1); 
var selection12 = (Math.floor(Math.random()*totalgalls)+1); 
var selection13 = (Math.floor(Math.random()*totalgalls)+1); 

var adposition = (Math.floor(Math.random()*0)+0); 
var whichad = (Math.floor(Math.random()*1)+1);



<!-- whichad -->

if (whichad >= 1) {var box = ("<span style=\"font-family: Tahoma,Verdana; font-size: x-small; color: #EEEEEE\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"1\" /><tr><td valign=\"middle\" bgcolor=\"\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"\"/><tr><td valign=\"middle\"><iframe src=\"http://picturesofvancouver.eddiefernandes.com/adsquare.htm\" height=\"100\" width=\"110\" frameborder=\"0\" scrolling=\"No\"></iframe></td></tr></table></td></tr></table></span>")};



var pic = new Array();
var page = new Array();
var category = new Array();
var gallery = new Array();
var categorypage = new Array();

var x = 1;



pic[x] = "6923303&amp;AlbumKey=n86fw"; page[x] = "Downtown/General-Downtown"; category[x] = "Downtown"; categorypage[x] = "Downtown"; gallery[x] = "General&nbsp;(Downtown)"; x = x + 1; 

pic[x] = "6619533&amp;AlbumKey=MpgM8"; page[x] = "Downtown/EnglishBay"; category[x] = "Downtown"; categorypage[x] = "Downtown"; gallery[x] = "English&nbsp;Bay"; x = x + 1; 

pic[x] = "6642276&amp;AlbumKey=bLVMZ"; page[x] = "Downtown/FalseCreek"; category[x] = "Downtown"; categorypage[x] = "Downtown"; gallery[x] = "False&nbsp;Creek"; x = x + 1; 

pic[x] = "6642618&amp;AlbumKey=5hjCU"; page[x] = "Downtown/Gastown"; category[x] = "Downtown"; categorypage[x] = "Downtown"; gallery[x] = "Gastown"; x = x + 1; 

pic[x] = "6644294&amp;AlbumKey=oVELC"; page[x] = "Downtown/GranvilleIsland"; category[x] = "Downtown"; categorypage[x] = "Downtown"; gallery[x] = "Granville&nbsp;Island"; x = x + 1; 

pic[x] = "6644370&amp;AlbumKey=msRXi"; page[x] = "Downtown/GranvilleStreet"; category[x] = "Downtown"; categorypage[x] = "Downtown"; gallery[x] = "Granville&nbsp;Street"; x = x + 1; 

pic[x] = "10511114&amp;AlbumKey=PA9HS"; page[x] = "Downtown/Robson"; category[x] = "Downtown"; categorypage[x] = "Downtown"; gallery[x] = "Robson"; x = x + 1; 

pic[x] = "6644811&amp;AlbumKey=QcsCz"; page[x] = "Downtown/Waterfront"; category[x] = "Downtown"; categorypage[x] = "Downtown"; gallery[x] = "Waterfront"; x = x + 1; 

pic[x] = "6645103&amp;AlbumKey=D7b86"; page[x] = "Downtown/Yaletown"; category[x] = "Downtown"; categorypage[x] = "Downtown"; gallery[x] = "Yaletown"; x = x + 1;



pic[x] = "6571992&amp;AlbumKey=7aPQo"; page[x] = "CityScenes/Ambleside"; category[x] = "City&nbsp;Scenes"; categorypage[x] = "CityScenes"; gallery[x] = "Ambleside"; x = x + 1; 

pic[x] = "6604921&amp;AlbumKey=V967X"; page[x] = "CityScenes/Capilano"; category[x] = "City&nbsp;Scenes"; categorypage[x] = "CityScenes"; gallery[x] = "Capilano"; x = x + 1; 

pic[x] = "6612570&amp;AlbumKey=NNCCy"; page[x] = "CityScenes/GrouseMountain"; category[x] = "City&nbsp;Scenes"; categorypage[x] = "CityScenes"; gallery[x] = "Grouse&nbsp;Mtn"; x = x + 1; 

pic[x] = "6614994&amp;AlbumKey=zqV3J"; page[x] = "CityScenes/Kitsilano"; category[x] = "City&nbsp;Scenes"; categorypage[x] = "CityScenes"; gallery[x] = "Kitsilano"; x = x + 1; 

pic[x] = "6615748&amp;AlbumKey=gyQ2x"; page[x] = "CityScenes/SpanishBanks"; category[x] = "City&nbsp;Scenes"; categorypage[x] = "CityScenes"; gallery[x] = "Spanish&nbsp;Banks"; x = x + 1; 

pic[x] = "9368995&amp;AlbumKey=GstNo"; page[x] = "CityScenes/StanleyPark"; category[x] = "City&nbsp;Scenes"; categorypage[x] = "CityScenes"; gallery[x] = "Stanley&nbsp;Park"; x = x + 1; 

pic[x] = "6619079&amp;AlbumKey=9o4X8"; page[x] = "CityScenes/Aquarium"; category[x] = "City&nbsp;Scenes"; categorypage[x] = "CityScenes"; gallery[x] = "Aquarium"; x = x + 1; 

pic[x] = "6612282&amp;AlbumKey=P5Ydb"; page[x] = "CityScenes/VancouverInternationalAirport"; category[x] = "City&nbsp;Scenes"; categorypage[x] = "CityScenes"; gallery[x] = "Intl&nbsp;Airport"; x = x + 1;



pic[x] = "10068937&amp;AlbumKey=CXj6i"; page[x] = "MiscViews/Burnaby"; category[x] = "Misc&nbsp;Views"; categorypage[x] = "MiscViews"; gallery[x] = "Burnaby"; x = x + 1; 

pic[x] = "6638515&amp;AlbumKey=eMrYH"; page[x] = "MiscViews/BurnabyMountain"; category[x] = "Misc&nbsp;Views"; categorypage[x] = "MiscViews"; gallery[x] = "Burnaby&nbsp;Mtn"; x = x + 1; 

pic[x] = "6638320&amp;AlbumKey=egznk"; page[x] = "MiscViews/WhiteRock"; category[x] = "Misc&nbsp;Views"; categorypage[x] = "MiscViews"; gallery[x] = "White&nbsp;Rock"; x = x + 1;

pic[x] = "6638711&amp;AlbumKey=47whJ"; page[x] = "MiscViews/Whistler"; category[x] = "Misc&nbsp;Views"; categorypage[x] = "MiscViews"; gallery[x] = "Whistler"; x = x + 1; 

pic[x] = "7345257&amp;AlbumKey=DYZBG"; page[x] = "MiscViews/SunshineCoast"; category[x] = "Misc&nbsp;Views"; categorypage[x] = "MiscViews"; gallery[x] = "Sunshine&nbsp;Coast"; x = x + 1; 

pic[x] = "6638443&amp;AlbumKey=YfQAC"; page[x] = "MiscViews/Victoria"; category[x] = "Misc&nbsp;Views"; categorypage[x] = "MiscViews"; gallery[x] = "Victoria"; x = x + 1; 

pic[x] = "8588271&amp;AlbumKey=Jyeab"; page[x] = "MiscViews/Tofino"; category[x] = "Misc&nbsp;Views"; categorypage[x] = "MiscViews"; gallery[x] = "Tofino"; x = x + 1;

pic[x] = "6638560&amp;AlbumKey=P2vYu"; page[x] = "MiscViews/CoastalMountains"; category[x] = "Misc&nbsp;Views"; categorypage[x] = "MiscViews"; gallery[x] = "Coastal&nbsp;Mtns"; x = x + 1; 

pic[x] = "6638589&amp;AlbumKey=FQGXW"; page[x] = "MiscViews/Moon"; category[x] = "Misc&nbsp;Views"; categorypage[x] = "MiscViews"; gallery[x] = "Moon"; x = x + 1; 



pic[x] = "6632798&amp;AlbumKey=EEDXM"; page[x] = "LocalEvents/CelebrationOfLightFireworks"; category[x] = "Local&nbsp;Events"; categorypage[x] = "LocalEvents"; gallery[x] = "Celebration&nbsp;of&nbsp;Light"; x = x + 1;

pic[x] = "9538318&amp;AlbumKey=SQhiG"; page[x] = "LocalEvents/PNE"; category[x] = "Local&nbsp;Events"; categorypage[x] = "LocalEvents"; gallery[x] = "PNE"; x = x + 1;

pic[x] = "6577891&amp;AlbumKey=La622"; page[x] = "LocalEvents/2010WinterOlympics"; category[x] = "Local&nbsp;Events"; categorypage[x] = "LocalEvents"; gallery[x] = "2010&nbsp;Olympics"; x = x + 1;

pic[x] = "6638958&amp;AlbumKey=DF3uf"; page[x] = "LocalEvents/BCLionsFootball"; category[x] = "Local&nbsp;Events"; categorypage[x] = "LocalEvents"; gallery[x] = "BC&nbsp;Lions&nbsp;Football"; x = x + 1;

pic[x] = "6638788&amp;AlbumKey=UuC2k"; page[x] = "LocalEvents/WhitecapsSoccer"; category[x] = "Local&nbsp;Events"; categorypage[x] = "LocalEvents"; gallery[x] = "Whitecaps&nbsp;FC"; x = x + 1;

pic[x] = "6634859&amp;AlbumKey=j7dMs"; page[x] = "LocalEvents/TourdeGastown"; category[x] = "Local&nbsp;Events"; categorypage[x] = "LocalEvents"; gallery[x] = "Tour&nbsp;de&nbsp;Gastown"; x = x + 1;

pic[x] = "6634871&amp;AlbumKey=KSzcD"; page[x] = "LocalEvents/YaletownGrandPrix"; category[x] = "Local&nbsp;Events"; categorypage[x] = "LocalEvents"; gallery[x] = "Yaletown&nbsp;Gr&nbsp;Prix"; x = x + 1;

pic[x] = "6587087&amp;AlbumKey=czzfX"; page[x] = "LocalEvents/AbbotsfordAirshow"; category[x] = "Local&nbsp;Events"; categorypage[x] = "LocalEvents"; gallery[x] = "Abbotsford&nbsp;Airshow"; x = x + 1;

pic[x] = "9367118&amp;AlbumKey=LSFkB"; page[x] = "LocalEvents/Snowbirds"; category[x] = "Local&nbsp;Events"; categorypage[x] = "LocalEvents"; gallery[x] = "Snowbirds"; x = x + 1;



var cityscenesthumb = ("<a href=\"/" + page[selection1] + "\" target=\"_self\"><span style=\"font-family: Verdana; font-size: xx-small; color: #FFFFFF\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"#FFFFFF\"><tr><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#161616\"><tr><td background=\"/photos/random.mg?AlbumID=" + pic[selection1] + "&amp;Size=240x241\" style=\"background-repeat: no-repeat\"><img src=\"http://picturesofvancouver.eddiefernandes.com/spacer.gif\" width=\"158\" height=\"100\" hspace=\"0\" vspace=\"0\" border=\"0\" align=\"middle\" /></td></tr></table></td></tr></table></span></a>");

var downtownthumb = ("<a href=\"/" + page[selection2] + "\" target=\"_self\"><span style=\"font-family: Verdana; font-size: xx-small; color: #FFFFFF\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"#FFFFFF\"><tr><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#161616\"><tr><td background=\"/photos/random.mg?AlbumID=" + pic[selection2] + "&amp;Size=240x242\" style=\"background-repeat: no-repeat\"><img src=\"http://picturesofvancouver.eddiefernandes.com/spacer.gif\" width=\"158\" height=\"100\" hspace=\"0\" vspace=\"0\" border=\"0\" align=\"middle\" /></td></tr></table></td></tr></table></span></a>");

var miscviewsthumb = ("<a href=\"/" + page[selection3] + "\" target=\"_self\"><span style=\"font-family: Verdana; font-size: xx-small; color: #FFFFFF\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"#FFFFFF\"><tr><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#161616\"><tr><td background=\"/photos/random.mg?AlbumID=" + pic[selection3] + "&amp;Size=240x243\" style=\"background-repeat: no-repeat\"><img src=\"http://picturesofvancouver.eddiefernandes.com/spacer.gif\" width=\"158\" height=\"100\" hspace=\"0\" vspace=\"0\" border=\"0\" align=\"middle\" /></td></tr></table></td></tr></table></span></a>");



var skyscraperthumb11 = ("<a href=\"/" + page[selection11] + "\" target=\"_self\"><span style=\"font-family: Verdana; font-size: xx-small; color: #FFFFFF\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"#FFFFFF\"><tr><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#161616\"><tr><td background=\"/photos/random.mg?AlbumID=" + pic[selection11] + "&amp;Size=240x244\" style=\"background-repeat: no-repeat\"><img src=\"http://picturesofvancouver.eddiefernandes.com/spacer.gif\" width=\"158\" height=\"100\" hspace=\"0\" vspace=\"0\" border=\"0\" align=\"middle\" /></td></tr></table></td></tr></table></span></a>");

var skyscraperthumb12 = ("<a href=\"/" + page[selection12] + "\" target=\"_self\"><span style=\"font-family: Verdana; font-size: xx-small; color: #FFFFFF\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"#FFFFFF\"><tr><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#161616\"><tr><td background=\"/photos/random.mg?AlbumID=" + pic[selection12] + "&amp;Size=400x400\" style=\"background-repeat: no-repeat\"><img src=\"http://picturesofvancouver.eddiefernandes.com/spacer.gif\" width=\"158\" height=\"265\" hspace=\"0\" vspace=\"0\" border=\"0\" align=\"middle\" /></td></tr></table></td></tr></table></span></a>");

var skyscraperthumb13 = ("<a href=\"/" + page[selection13] + "\" target=\"_self\"><span style=\"font-family: Verdana; font-size: xx-small; color: #FFFFFF\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"#FFFFFF\"><tr><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#161616\"><tr><td background=\"/photos/random.mg?AlbumID=" + pic[selection13] + "&amp;Size=900x900\" style=\"background-repeat: no-repeat\"><img src=\"http://picturesofvancouver.eddiefernandes.com/spacer.gif\" width=\"158\" height=\"600\" hspace=\"0\" vspace=\"0\" border=\"0\" align=\"middle\" /></td></tr></table></td></tr></table></span></a>");




var mixifnoad = (Math.floor(Math.random()*6)+1); 

if (mixifnoad == 1) {var thumb1 = (cityscenesthumb); var thumb2 = (downtownthumb); var thumb3 = miscviewsthumb;}

if (mixifnoad == 2) {var thumb1 = (cityscenesthumb); var thumb2 = (miscviewsthumb); var thumb3 = downtownthumb;}

if (mixifnoad == 3) {var thumb1 = (downtownthumb); var thumb2 = (cityscenesthumb); var thumb3 = miscviewsthumb;} 

if (mixifnoad == 4) {var thumb1 = (downtownthumb); var thumb2 = (miscviewsthumb); var thumb3 = cityscenesthumb;} 

if (mixifnoad == 5) {var thumb1 = (miscviewsthumb); var thumb2 = (downtownthumb); var thumb3 = cityscenesthumb;} 

if (mixifnoad == 6) {var thumb1 = (miscviewsthumb); var thumb2 = (cityscenesthumb); var thumb3 = downtownthumb;} 




if (adposition == 1) {var thumb1 = (box + "<span style=\"font-family: Tahoma,Verdana; font-size: x-small; color: #EEEEEE\">&nbsp;</span><br>"); var thumb2 = (cityscenesthumb + "<br>"); var thumb3 = (downtownthumb)};

if (adposition == 2) {var thumb2 = (box + "<span style=\"font-family: Tahoma,Verdana; font-size: x-small; color: #EEEEEE\">&nbsp;</span><br>"); var thumb1 = (cityscenesthumb); var thumb3 = (downtownthumb); };

if (adposition == 3) {var thumb3 = (box); var thumb1 = (cityscenesthumb + "<br>"); var thumb2 = (downtownthumb);};



<!-- 3-SQUARE CODE: if (adposition == 1) {var thumb1 = (box + "<span style=\"font-family: Tahoma,Verdana; font-size: x-small; color: #EEEEEE\">&nbsp;</span><br>"); var thumb2 = (cityscenesthumb + "<br>"); var thumb3 = (downtownthumb)}; if (adposition == 2) {var thumb2 = (box + "<span style=\"font-family: Tahoma,Verdana; font-size: x-small; color: #EEEEEE\">&nbsp;</span><br>"); var thumb1 = (cityscenesthumb); var thumb3 = (downtownthumb); }; if (adposition == 3) {var thumb3 = (box); var thumb1 = (cityscenesthumb + "<br>"); var thumb2 = (downtownthumb);}; -->


<!-- ORIGINAL CODE: if (adposition == 1) {var thumb1 = (box + "<span style=\"font-family: Tahoma,Verdana; font-size: x-small; color: #EEEEEE\">&nbsp;</span><br><br>"); var thumb2 = (cityscenesthumb + "<br>"); var thumb3 = (downtownthumb)}; if (adposition == 2) {var thumb2 = (box + "<span style=\"font-family: Tahoma,Verdana; font-size: x-small; color: #EEEEEE\">&nbsp;</span><br><br>"); var thumb1 = (cityscenesthumb + "<br>"); var thumb3 = (downtownthumb); }; if (adposition == 3) {var thumb3 = (box + "<span style=\"font-family: Tahoma,Verdana; font-size: x-small; color: #EEEEEE\">&nbsp;</span>"); var thumb1 = (cityscenesthumb + "<br>"); var thumb2 = (downtownthumb + "<br>");}; -->






















var bottomdowntownthumb = ("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#333333\"><tr><td><a href=\"/" + categorypage[selection1] + "\" target=\"_self\"><span style=\"font-family: Arial, sans-serif; font-size: 14px; font-weight: bold; color: #FFFFFF\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"center\" valign=\"middle\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"center\" valign=\"middle\"><table border=\"0\" cellspacing=\"1\" cellpadding=\"0\"><tr><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"#FFFFFF\"><tr><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#161616\"><tr><td background=\"http://vancouver.smugmug.com/photos/random.mg?AlbumID=" + pic[selection1] + "&amp;Size=100x100\" style=\"background-repeat: no-repeat\"><img src=\"http://picturesofvancouver.eddiefernandes.com/spacer.gif\" width=\"100\" height=\"100\" hspace=\"0\" vspace=\"0\" border=\"0\" align=\"middle\" /></td></tr></table></td></tr></table></td></tr></table><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"7\"><tr><td align=\"center\" valign=\"top\" bgcolor=\"#333333\"><a href=\"/" + categorypage[selection1] + "\" target=\"_self\">" + category[selection1] + "</a></td></tr></table></td></tr></table></td></tr></table></span></a></td></tr></table>");

var bottomcityscenesthumb = ("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#333333\"><tr><td><a href=\"/" + categorypage[selection2] + "\" target=\"_self\"><span style=\"font-family: Arial, sans-serif; font-size: 14px; font-weight: bold; color: #FFFFFF\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"center\" valign=\"middle\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"center\" valign=\"middle\"><table border=\"0\" cellspacing=\"1\" cellpadding=\"0\"><tr><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"#FFFFFF\"><tr><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#161616\"><tr><td background=\"http://vancouver.smugmug.com/photos/random.mg?AlbumID=" + pic[selection2] + "&amp;Size=100x100\" style=\"background-repeat: no-repeat\"><img src=\"http://picturesofvancouver.eddiefernandes.com/spacer.gif\" width=\"100\" height=\"100\" hspace=\"0\" vspace=\"0\" border=\"0\" align=\"middle\" /></td></tr></table></td></tr></table></td></tr></table><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"7\"><tr><td align=\"center\" valign=\"top\" bgcolor=\"#333333\"><a href=\"/" + categorypage[selection2] + "\" target=\"_self\">" + category[selection2] + "</a></td></tr></table></td></tr></table></td></tr></table></span></a></td></tr></table>");

var bottommiscviewsthumb = ("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#333333\"><tr><td><a href=\"/" + categorypage[selection3] + "\" target=\"_self\"><span style=\"font-family: Arial, sans-serif; font-size: 14px; font-weight: bold; color: #FFFFFF\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"center\" valign=\"middle\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"center\" valign=\"middle\"><table border=\"0\" cellspacing=\"1\" cellpadding=\"0\"><tr><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"#FFFFFF\"><tr><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#161616\"><tr><td background=\"http://vancouver.smugmug.com/photos/random.mg?AlbumID=" + pic[selection3] + "&amp;Size=100x100\" style=\"background-repeat: no-repeat\"><img src=\"http://picturesofvancouver.eddiefernandes.com/spacer.gif\" width=\"100\" height=\"100\" hspace=\"0\" vspace=\"0\" border=\"0\" align=\"middle\" /></td></tr></table></td></tr></table></td></tr></table><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"7\"><tr><td align=\"center\" valign=\"top\" bgcolor=\"#333333\"><a href=\"/" + categorypage[selection3] + "\" target=\"_self\">" + category[selection3] + "</a></td></tr></table></td></tr></table></td></tr></table></span></a></td></tr></table>");

var bottomlocaleventsthumb = ("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#333333\"><tr><td><a href=\"/" + categorypage[selection4] + "\" target=\"_self\"><span style=\"font-family: Arial, sans-serif; font-size: 14px; font-weight: bold; color: #FFFFFF\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"center\" valign=\"middle\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"center\" valign=\"middle\"><table border=\"0\" cellspacing=\"1\" cellpadding=\"0\"><tr><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"#FFFFFF\"><tr><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#161616\"><tr><td background=\"http://vancouver.smugmug.com/photos/random.mg?AlbumID=" + pic[selection4] + "&amp;Size=100x100\" style=\"background-repeat: no-repeat\"><img src=\"http://picturesofvancouver.eddiefernandes.com/spacer.gif\" width=\"100\" height=\"100\" hspace=\"0\" vspace=\"0\" border=\"0\" align=\"middle\" /></td></tr></table></td></tr></table></td></tr></table><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"7\"><tr><td align=\"center\" valign=\"top\" bgcolor=\"#333333\"><a href=\"/" + categorypage[selection4] + "\" target=\"_self\">" + category[selection4] + "</a></td></tr></table></td></tr></table></td></tr></table></span></a></td></tr></table>");



var bottomgallery = new Array();
var y = 0;

var topgallery = new Array();
var yy = 0;



<!-- HOMEPAGE TOP & BOTTOM GALLERY SQUARES -->


while (y < totalgalls) {y = y + 1; bottomgallery [y] = "<a href=\"/" + page[y] + "\" target=\"_self\"><span style=\"font-family: Verdana; font-size: xx-small; color: #FFFFFF\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"#FFFFFF\"><tr><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#161616\"><tr><td background=\"http://vancouver.smugmug.com/photos/random.mg?AlbumID=" + pic[y] + "&amp;Size=100x100\" style=\"background-repeat: no-repeat\"><img src=\"http://picturesofvancouver.eddiefernandes.com/spacer.gif\" width=\"100\" height=\"66\" hspace=\"0\" vspace=\"0\" border=\"0\" align=\"middle\" /></td></tr></table></td></tr></table><table width=\"\" height=\"\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\" bgcolor=\"\"><tr><td align=\"center\" valign=\"top\"><a href=\"/" + page[y] + "\" target=\"_self\">" + gallery[y] + "</a></td></tr></table></span></a>"};


var tgspacing = "<span style=\"font-family: Verdana; font-size: xx-small; color: #FFFFFF\"> · </span>";

while (yy < totalgalls) {yy = yy + 1; topgallery [yy] = "<a href=\"/" + page[yy] + "\" target=\"_self\"><span style=\"font-family: Verdana; font-size: xx-small;\">" + gallery[yy] + "</span></a>"};


