﻿var oldTownArr = new Array();

oldTownArr[oldTownArr.length] = {iName:"o28",pic:"City Park Train",oAvail:"YES",oPrice:"425",oSize:"13x9.5",pAvail:"YES",pPrice:"35",pSize:"6x9",editionSize:"300",w:"368",h:"500"};

oldTownArr[oldTownArr.length] = {iName:"o27",pic:"The Old Fort Collins High School II ",oAvail:"SOLD",oPrice:"1200",oSize:"14x20",pAvail:"YES",pPrice:"35",pSize:"6.5x9.5",editionSize:"300",w:"600",h:"419"};

oldTownArr[oldTownArr.length] = {iName:"o18",pic:"Avery House",oAvail:"SOLD",oPrice:"425",oSize:"10x14",pAvail:"YES",pPrice:"35",pSize:"6x9",editionSize:"100",w:"600",h:"404"};

oldTownArr[oldTownArr.length] = {iName:"o21",pic:"Mountain Ave & Linden St",oAvail:"SOLD",oPrice:"1200",oSize:"14x17",pAvail:"YES",pPrice:"35",pSize:"8x10.75",editionSize:"100",w:"380",h:"500"};

oldTownArr[oldTownArr.length] = {iName:"o22",pic:"St Joseph Catholic Church",oAvail:"SOLD",oPrice:"625",oSize:"10x14",pAvail:"YES",pPrice:"35",pSize:"6x9",editionSize:"300",w:"336",h:"500"};

oldTownArr[oldTownArr.length] = {iName:"o14",pic:"Colorado State University",oAvail:"YES",oPrice:"4800",oSize:"20x28",pAvail:"YES",pPrice:"75",pSize:"10x14",editionSize:"OPEN",w:"600",h:"429"};

oldTownArr[oldTownArr.length] = {iName:"o15",pic:"Autumn Bike",oAvail:"SOLD",oPrice:"395",oSize:"10x14",pAvail:"YES",pPrice:"35",pSize:"6x9",editionSize:"100",w:"382",h:"500"};

oldTownArr[oldTownArr.length] = {iName:"o17",pic:"Sled",oAvail:"SOLD",oPrice:"250",oSize:"10x14",pAvail:"YES",pPrice:"35",pSize:"6x9",editionSize:"100",w:"351",h:"500"};

oldTownArr[oldTownArr.length] = {iName:"o1",pic:"Walnut Street Silver & Gold",oAvail:"SOLD",oPrice:"1800",oSize:"13x30",pAvail:"SOLD OUT",pPrice:"45",pSize:"6.5x14.25",editionSize:"300",w:"600",h:"269"};

oldTownArr[oldTownArr.length] = {iName:"o2",pic:"Linden Street",oAvail:"SOLD",oPrice:"425",oSize:"8.5x11",pAvail:"YES",pPrice:"35",pSize:"6.5x9.5",editionSize:"300",w:"361",h:"500"};

oldTownArr[oldTownArr.length] = {iName:"o3",pic:"Old Town at Mountain",oAvail:"SOLD",oPrice:"2400",oSize:"22x27",pAvail:"YES",pPrice:"50",pSize:"11x13.5",editionSize:"300",w:"600",h:"478"};

oldTownArr[oldTownArr.length] = {iName:"o4",pic:"Rio Patio",oAvail:"SOLD",oPrice:"1800",oSize:"20x30",pAvail:"YES",pPrice:"50",pSize:"10x15.25",editionSize:"300",w:"317",h:"500"};

oldTownArr[oldTownArr.length] = {iName:"o6",pic:"Drink Coca Cola",oAvail:"SOLD",oPrice:"875",oSize:"16x22",pAvail:"YES",pPrice:"35",pSize:"8x10.75",editionSize:"300",w:"361",h:"500"};

oldTownArr[oldTownArr.length] = {iName:"o7",pic:"CSU",oAvail:"SOLD",oPrice:"875",oSize:"16x22",pAvail:"YES",pPrice:"35",pSize:"8x11",editionSize:"300",w:"363",h:"500"};

oldTownArr[oldTownArr.length] = {iName:"o8",pic:"Fort Collins High School",oAvail:"SOLD",oPrice:"425",oSize:"6.5x9.25",pAvail:"SOLD OUT",pPrice:"35",pSize:"6.5x9.25",editionSize:"300",w:"360",h:"500"};

oldTownArr[oldTownArr.length] = {iName:"o9",pic:"Fort Collins Collage",oAvail:"SOLD",oPrice:"1500",oSize:"22x30",pAvail:"YES",pPrice:"50",pSize:"11x15",editionSize:"300",w:"600",h:"428"};

oldTownArr[oldTownArr.length] = {iName:"o10",pic:"Mountain & College",oAvail:"SOLD",oPrice:"375",oSize:"6.25x9.25",pAvail:"YES",pPrice:"35",pSize:"6.25x9.25",editionSize:"300",w:"600",h:"408"};

oldTownArr[oldTownArr.length] = {iName:"o12",pic:"Summer in Old Town",oAvail:"SOLD",oPrice:"425",oSize:"6.5x9.5",pAvail:"YES",pPrice:"35",pSize:"6.25x9.25",editionSize:"300",w:"332",h:"500"};

oldTownArr[oldTownArr.length] = {iName:"o13",pic:"Old Town Square",oAvail:"SOLD",oPrice:"3000",oSize:"22x30",pAvail:"YES",pPrice:"65",pSize:"10.5x18",editionSize:"300",w:"600",h:"347"};

oldTownArr[oldTownArr.length] = {iName:"o19",pic:"Carriage Ride",oAvail:"YES",oPrice:"425",oSize:"9x12",pAvail:"YES",pPrice:"35",pSize:"6x9",editionSize:"100",w:"333",h:"500"};

oldTownArr[oldTownArr.length] = {iName:"o20",pic:"Linden II",oAvail:"YES",oPrice:"425",oSize:"6x9",pAvail:"YES",pPrice:"35",pSize:"6x9",editionSize:"300",w:"600",h:"406"};

oldTownArr[oldTownArr.length] = {iName:"o23",pic:"Oak Street Plaza",oAvail:"SOLD",oPrice:"1200",oSize:"20x14",pAvail:"YES",pPrice:"35",pSize:"9.5X6.5",editionSize:"100",w:"342",h:"500"};

oldTownArr[oldTownArr.length] = {iName:"o25",pic:"Ice Skating in Old Town",oAvail:"SOLD",oPrice:"1200",oSize:"20x14",pAvail:"YES",pPrice:"35",pSize:"9.5X6.5",editionSize:"100",w:"383",h:"500"};

oldTownArr[oldTownArr.length] = {iName:"o26",pic:"Farmer's Market",oAvail:"SOLD",oPrice:"1200",oSize:"20x14",pAvail:"YES",pPrice:"35",pSize:"9.5X6.5",editionSize:"100",w:"366",h:"500"};

oldTownArr[oldTownArr.length] = {iName:"o24",pic:"First Presbyterian Church Altar",oAvail:"SOLD",oPrice:"1200",oSize:"14x20",pAvail:"YES",pPrice:"65",pSize:"10x14",editionSize:"300",w:"600",h:"446"};

oldTownArr[oldTownArr.length] = {iName:"o16",pic:"Santa's Workshop",oAvail:"SOLD",oPrice:"250",oSize:"10x14",pAvail:"YES",pPrice:"35",pSize:"6x9",editionSize:"100",w:"368",h:"500"};

oldTownArr[oldTownArr.length] = {iName:"o5",pic:"Northern Hotel",oAvail:"SOLD",oPrice:"675",oSize:"16x22",pAvail:"YES",pPrice:"35",pSize:"8x11",editionSize:"300",w:"600",h:"369"};

oldTownArr[oldTownArr.length] = {iName:"o11",pic:"Old Firehouse",oAvail:"SOLD",oPrice:"425",oSize:"6.5x9.5",pAvail:"YES",pPrice:"35",pSize:"6.25x9.25",editionSize:"300",w:"343",h:"500"};



var barnsArr = new Array();

barnsArr[barnsArr.length] = {iName:"b7",pic:"Country Roads Diptych",oAvail:"SOLD",oPrice:"325/pair",oSize:"6x9 each",pAvail:"YES",pPrice:"70/pair",pSize:"6x9 each",editionSize:"100",w:"600",h:"265"};

barnsArr[barnsArr.length] = {iName:"b6",pic:"Autumn Visitors",oAvail:"SOLD",oPrice:"1800",oSize:"22x30",pAvail:"YES",pPrice:"95",pSize:"13.5x19",editionSize:"100",w:"600",h:"398"};

barnsArr[barnsArr.length] = {iName:"b2",pic:"Mail Pouch",oAvail:"SOLD",oPrice:"1200",oSize:"22x30",pAvail:"YES",pPrice:"95",pSize:"12.75x22",editionSize:"50",w:"600",h:"385"};

barnsArr[barnsArr.length] = {iName:"b3",pic:"You've Got Mail Autumn",oAvail:"SOLD",oPrice:"425",oSize:"6.5x9.5",pAvail:"YES",pPrice:"35",pSize:"6.5x9.5",editionSize:"300",w:"337",h:"500"};

barnsArr[barnsArr.length] = {iName:"b4",pic:"You've Got Mail Spring",oAvail:"SOLD",oPrice:"425",oSize:"6.5x9.5",pAvail:"YES",pPrice:"35",pSize:"6.5x9.5",editionSize:"300",w:"600",h:"415"};

barnsArr[barnsArr.length] = {iName:"b5",pic:"You've Got Mail Winter",oAvail:"SOLD",oPrice:"425",oSize:"6.5x9.5",pAvail:"YES",pPrice:"35",pSize:"6.5x9.5",editionSize:"300",w:"345",h:"500"};

barnsArr[barnsArr.length] = {iName:"b1",pic:"Autumn Harvest",oAvail:"SOLD",oPrice:"2400",oSize:"22x45",pAvail:"YES",pPrice:"95",pSize:"10.75x22",editionSize:"100",w:"600",h:"296"};



var fishingArr = new Array();

fishingArr[fishingArr.length] = {iName:"f1",pic:"Cast of Summer",oAvail:"SOLD",oPrice:"1800",oSize:"22x30",pAvail:"YES",pPrice:"95",pSize:"13.5x20",editionSize:"100",w:"600",h:"393"};

fishingArr[fishingArr.length] = {iName:"f2",pic:"Hooked on Autumn",oAvail:"SOLD",oPrice:"1200",oSize:"30x22",pAvail:"YES",pPrice:"50",pSize:"14.5x10.5",editionSize:"300",w:"365",h:"500"};

fishingArr[fishingArr.length] = {iName:"f3",pic:"Thrill of the Catch",oAvail:"SOLD",oPrice:"1200",oSize:"22x30",pAvail:"YES",pPrice:"50",pSize:"10.5x14.5",editionSize:"300",w:"600",h:"423"};

fishingArr[fishingArr.length] = {iName:"f4",pic:"Autumn Catch",oAvail:"SOLD",oPrice:"1200",oSize:"22x30",pAvail:"YES",pPrice:"50",pSize:"10.5x14.5",editionSize:"50",w:"600",h:"392"};



var landscapesArr = new Array();

landscapesArr[landscapesArr.length] = {iName:"L24",pic:"The Colors of Winter",oAvail:"YES",oPrice:"3600",oSize:"28Hx20W",pAvail:"YES",pPrice:"95",pSize:"20Hx14W",editionSize:"50",w:"400",h:"500"};

landscapesArr[landscapesArr.length] = {iName:"L23",pic:"Aspen & Wildflowers",oAvail:"YES",oPrice:"1200",oSize:"20Hx14W",pAvail:"YES",pPrice:"95",pSize:"19Hx13W",editionSize:"50",w:"400",h:"500"};

landscapesArr[landscapesArr.length] = {iName:"L21",pic:"Springtime in the Rockies - Triptych",oAvail:"YES",oPrice:"2900",oSize:"13x40",pAvail:"YES",pPrice:"225 for set of 3",pSize:"13x40",editionSize:"150",w:"600",h:"265"};

landscapesArr[landscapesArr.length] = {iName:"L16",pic:"End of Summer: Poudre River",oAvail:"SOLD",oPrice:"3600",oSize:"20x42",pAvail:"YES",pPrice:"275",pSize:"16x34",editionSize:"50",w:"600",h:"286"};

landscapesArr[landscapesArr.length] = {iName:"L18",pic:"Sunset on Longs Peak",oAvail:"SOLD",oPrice:"2400",oSize:"17x26",pAvail:"YES",pPrice:"225",pSize:"12.5x18.5",editionSize:"50",w:"600",h:"405"};

landscapesArr[landscapesArr.length] = {iName:"L15",pic:"Dusty Trails",oAvail:"SOLD",oPrice:"2400",oSize:"16x28",pAvail:"YES",pPrice:"225",pSize:"16x28",editionSize:"50",w:"600",h:"343"};

landscapesArr[landscapesArr.length] = {iName:"L12",pic:"Abandoned Wagon",oAvail:"SOLD",oPrice:"1400",oSize:"14x21",pAvail:"YES",pPrice:"75",pSize:"10x14",editionSize:"100",w:"600",h:"403"};

landscapesArr[landscapesArr.length] = {iName:"L13",pic:"Path Through the Woods",oAvail:"SOLD",oPrice:"1200",oSize:"14x21",pAvail:"YES",pPrice:"75",pSize:"10x14",editionSize:"100",w:"600",h:"328"};

landscapesArr[landscapesArr.length] = {iName:"L14",pic:"Autumn on Fall River",oAvail:"SOLD",oPrice:"3600",oSize:"20x28",pAvail:"YES",pPrice:"225",pSize:"12x18",editionSize:"50",w:"400",h:"559"};

landscapesArr[landscapesArr.length] = {iName:"L1",pic:"Early Winter on the Poudre",oAvail:"SOLD",oPrice:"3600",oSize:"24x48",pAvail:"YES",pPrice:"275",pSize:"16x32.75",editionSize:"50",w:"600",h:"298"};

landscapesArr[landscapesArr.length] = {iName:"L2",pic:"Autumn Sunrise",oAvail:"SOLD",oPrice:"1200",oSize:"15x22",pAvail:"YES",pPrice:"95",pSize:"13x20",editionSize:"50",w:"327",h:"500"};

landscapesArr[landscapesArr.length] = {iName:"L3",pic:"The Next Generation",oAvail:"SOLD",oPrice:"3600",oSize:"22x30",pAvail:"YES",pPrice:"95",pSize:"14x18.75",editionSize:"50",w:"600",h:"449"};

landscapesArr[landscapesArr.length] = {iName:"L4",pic:"Peaks of Rocky Mtn. National Park",oAvail:"SOLD",oPrice:"2400",oSize:"22x46",pAvail:"YES",pPrice:"195",pSize:"10x30",editionSize:"100",w:"600",h:"204"};

landscapesArr[landscapesArr.length] = {iName:"L5",pic:"Winter Interlude",oAvail:"SOLD",oPrice:"2400",oSize:"22x30",pAvail:"YES",pPrice:"225",pSize:"20x28",editionSize:"50",w:"358",h:"500"};

landscapesArr[landscapesArr.length] = {iName:"L6",pic:"Winter Light",oAvail:"SOLD",oPrice:"2400",oSize:"18x28",pAvail:"YES",pPrice:"225",pSize:"17x27",editionSize:"50",w:"600",h:"384"};

landscapesArr[landscapesArr.length] = {iName:"L17",pic:"In the Shadow of the Pines",oAvail:"Yes",oPrice:"2400",oSize:"20x26",pAvail:"YES",pPrice:"225",pSize:"18.5x25",editionSize:"50",w:"370",h:"500"};

landscapesArr[landscapesArr.length] = {iName:"L7",pic:"Sunset at Sprague Lake",oAvail:"SOLD",oPrice:"2400",oSize:"20x30",pAvail:"YES",pPrice:"225",pSize:"19x30",editionSize:"100",w:"600",h:"334"};

landscapesArr[landscapesArr.length] = {iName:"L8",pic:"Autumn Reflections",oAvail:"SOLD",oPrice:"2400",oSize:"24x48",pAvail:"YES",pPrice:"275",pSize:"16x35",editionSize:"50",w:"600",h:"279"};

landscapesArr[landscapesArr.length] = {iName:"L9",pic:"Alpine Meadows Triptych",oAvail:"SOLD",oPrice:"1200",oSize:"14x40",pAvail:"SOLD OUT",pPrice:"225",pSize:"13x39",editionSize:"100",w:"600",h:"265"};

landscapesArr[landscapesArr.length] = {iName:"L10",pic:"Autumn Trails",oAvail:"SOLD",oPrice:"1800",oSize:"13x20",pAvail:"YES",pPrice:"65",pSize:"8x17",editionSize:"50",w:"600",h:"290"};

landscapesArr[landscapesArr.length] = {iName:"L11",pic:"Lewis Falls",oAvail:"SOLD",oPrice:"2100",oSize:"16x28",pAvail:"YES",pPrice:"175",pSize:"15.5x27.5",editionSize:"50",w:"600",h:"339"};

landscapesArr[landscapesArr.length] = {iName:"L22",pic:"Virginia Dale Stagecoach Stop",oAvail:"YES",oPrice:"3000",oSize:"14x34",pAvail:"YES",pPrice:"65",pSize:"8.5x18",editionSize:"300",w:"500",h:"206"};

landscapesArr[landscapesArr.length] = {iName:"L19",pic:"Castle Rock",oAvail:"SOLD",oPrice:"2400",oSize:"18x24",pAvail:"YES",pPrice:"95",pSize:"18x24",editionSize:"350",w:"600",h:"442"};


var wildlifeArr = new Array();

wildlifeArr[wildlifeArr.length] = {iName:"w6",pic:"Autumn Rituals",oAvail:"SOLD",oPrice:"2400",oSize:"12x28",pAvail:"YES",pPrice:"225",pSize:"11x26",editionSize:"200",w:"600",h:"275"};

wildlifeArr[wildlifeArr.length] = {iName:"w5",pic:"Fall Echoes in the Air",oAvail:"SOLD",oPrice:"2400",oSize:"28x12",pAvail:"YES",pPrice:"225",pSize:"26x11",editionSize:"200",w:"217",h:"500"};

wildlifeArr[wildlifeArr.length] = {iName:"w4",pic:"Ptarmigan",oAvail:"SOLD",oPrice:"875",oSize:"14x21",pAvail:"YES",pPrice:"75",pSize:"10x14",editionSize:"50",w:"600",h:"398"};

wildlifeArr[wildlifeArr.length] = {iName:"w1",pic:"At the Edge of the Stream: Bull Elk",oAvail:"SOLD",oPrice:"1800",oSize:"22x30",pAvail:"YES",pPrice:"95",pSize:"15.5x20",editionSize:"100",w:"387",h:"500"};

wildlifeArr[wildlifeArr.length] = {iName:"w2",pic:"Autumn Splendor",oAvail:"SOLD",oPrice:"1800",oSize:"15x30",pAvail:"SOLD OUT",pPrice:"95",pSize:"10.5x29",editionSize:"150",w:"179",h:"500"};

wildlifeArr[wildlifeArr.length] = {iName:"w3",pic:"Rocky Mountain Big Horn",oAvail:"SOLD",oPrice:"850",oSize:"13x30",pAvail:"YES",pPrice:"65",pSize:"6.75x15",editionSize:"100",w:"225",h:"500"};


var italyArr = new Array();

italyArr[italyArr.length] = {iName:"i1",pic:"Vernazza Sunrise",oAvail:"YES",oPrice:"3000",oSize:"18x27",pAvail:"YES",pPrice:"275",pSize:"Up to 18x27",editionSize:"50",w:"333",h:"500"};

italyArr[italyArr.length] = {iName:"i2",pic:"Vernazza Sunset",oAvail:"YES",oPrice:"3000",oSize:"27x18",pAvail:"YES",pPrice:"275",pSize:"Up to 27x18",editionSize:"50",w:"500",h:"332"};

italyArr[italyArr.length] = {iName:"i3",pic:"Vernazza, Italy: Under the Umbrellas",oAvail:"YES",oPrice:"3600",oSize:"22x34",pAvail:"YES",pPrice:"325",pSize:"Up to 22x34",editionSize:"50",w:"500",h:"330"};

italyArr[italyArr.length] = {iName:"i4",pic:"Piazza del Signoria, Florence, Italy: Waiting for a Ride",oAvail:"YES",oPrice:"4000",oSize:"17x36",pAvail:"YES",pPrice:"325",pSize:"Up to 17x36",editionSize:"50",w:"500",h:"236"};

italyArr[italyArr.length] = {iName:"i5",pic:"Florence Market",oAvail:"YES",oPrice:"4000",oSize:"34x24",pAvail:"YES",pPrice:"325",pSize:"Up to 34x24",editionSize:"50",w:"342",h:"500"};

italyArr[italyArr.length] = {iName:"i6",pic:"Portovenere, Italy: Window Shopping",oAvail:"YES",oPrice:"3000",oSize:"29x21",pAvail:"YES",pPrice:"275",pSize:"Up to 29x21",editionSize:"50",w:"366",h:"500"};



function loadGroup() {

  param = location.search.substring(1);

  getPaintingList(param.substring(param.indexOf('=') + 1));

}



function getPaintingList(pList) {

  if (pList == "barns") this.paintingList = barnsArr;

  else if (pList == "flyfishing") this.paintingList = fishingArr;

  else if (pList == "landscapes") this.paintingList = landscapesArr;

  else if (pList == "oldtown") this.paintingList = oldTownArr;

  else if (pList == "wildlife") this.paintingList = wildlifeArr;
  
  else if (pList == "italy") this.paintingList = italyArr;



  document.getElementById('headerImage').src = "images/header_artwork_" + pList + ".gif";

  if (this.selectedGroup != null)

    document.getElementById(this.selectedGroup).src = "images/index_" + this.selectedGroup + ".gif";

  document.getElementById(pList).src = "images/index_ro_" + pList + ".gif";

  this.selectedGroup = pList;

  loadSmallPics(0);

}



function loadSmallPics(listIndex) {

  for (var i = 0; i < 5; i++) {

    if ((i + listIndex) < this.paintingList.length) {

      document.getElementById('smallPic' + i).src = "paintings/" + this.selectedGroup + "/small/" + this.paintingList[i + listIndex].iName + ".jpg";

      document.getElementById('smallPicTD' + i).className = "smallPics";

    } else {

      document.getElementById('smallPic' + i).src = "images/blank.gif";

      document.getElementById('smallPicTD' + i).className = "smallPicsHidden";

    }

  }

  

  if (listIndex == 0)

    document.getElementById('leftNav').innerHTML = '';

  else

    document.getElementById('leftNav').innerHTML = '<a href="#" class="nav" title="Click to view the previous pictures" onclick="loadSmallPics(' + (listIndex - 5) +');return false;">&laquo;<span class="navText">&nbsp;Previous Pictures&nbsp;</span></a>';

  

  if ((i + listIndex) < this.paintingList.length)

    document.getElementById('rightNav').innerHTML = '<a href="#" class="nav" title="Click to view more pictures" onclick="loadSmallPics(' + (listIndex + 5) +');return false;"><span class="navText">&nbsp;Next Pictures&nbsp;</span>&raquo;</a>';

  else

    document.getElementById('rightNav').innerHTML = '';

  

  this.offset = listIndex;

  getPainting(0);

}



function getPainting(paintingIndex) {  

  this.currentPainting = this.paintingList[paintingIndex + this.offset];

  document.getElementById('mediumPainting').src = "paintings/" + this.selectedGroup + "/medium/" + this.currentPainting.iName + ".jpg";



  contents = '<table width="401" border="0" cellspacing="0" cellpadding="2">';

  contents += '<tr><td colspan="5"><span class="paintingName">' + this.currentPainting.pic + '</span></td></tr>';

  contents += '<tr><td class="InfoTopLeft">Original<br>Available</td><td class="InfoTopOther">Original<br>Price</td><td class="InfoTopOther">Original<br>Size</td>';

  contents += '<td class="InfoTopOther">Print<br>Available</td><td class="InfoTopOther">Print<br>Size</td><td class="InfoTopOther">Edition<br>Size</td>';

  contents += '<td class="InfoTopOther">Print<br>Price</td></tr>';

  contents += '<tr><td class="InfoBottomLeft">' + this.currentPainting.oAvail + '</td>';

  contents += '<td class="InfoBottomOther">$' + this.currentPainting.oPrice + '</td>';

  contents += '<td class="InfoBottomOther" width="60" nowrap="nowrap">' + this.currentPainting.oSize + '</td>';

  contents += '<td class="InfoBottomOther">' + this.currentPainting.pAvail + '</td>';

  contents += '<td class="InfoBottomOther" width="60" nowrap="nowrap">' + this.currentPainting.pSize + '</td>';

  contents += '<td class="InfoBottomOther">' + this.currentPainting.editionSize + '</td>';

  contents += '<td class="InfoBottomOther">$' + this.currentPainting.pPrice + '</td></tr>';

  if (this.currentPainting.iName == "b3" || this.currentPainting.iName == "b4" || this.currentPainting.iName == "b5") {

    contents += '<tr><td colspan="7" class="InfoCustom">**&nbsp;This painting can be personalized to have your name written on the mail box.</td></tr>';

  } else if (this.currentPainting.iName == "o14") {

    contents += '<tr><td colspan="7" class="InfoCustom">**&nbsp;In addition to the lithographic prints, this painting is also available<br />in giclee prints for $165 (size 15x21).</td></tr>';

	}

  contents += '</table>';

  document.getElementById('paintingInfo').innerHTML = contents;

}



var largeView = null;

function viewPainting() {

    if (largeView) largeView.close();

    p_width = (this.currentPainting.w * 1) + 55;

    p_height = (this.currentPainting.h * 1) + 120;

    x = (screen.availWidth / 2) - (p_width / 2);

    y = (screen.availHeight / 2) - (p_height / 2);

    largeView = window.open("painting_viewer.html?P=" + this.currentPainting.iName + "&G=" + this.selectedGroup + "&N=" + escape(this.currentPainting.pic),

                            "paintingViewer","left=" + x + ",top=" + y + ",width=" + p_width + ",height=" + p_height + ",resizable,scrollbars");

    largeView.focus();

}





