// db.js   database file for artwork
// javascript

var arr_cost = new Array(
        // PAPER
   [60, // 11x14
    80, // 16x20
   100, // 20x24
   999],// 30x40
        // CANVAS
   [80, // 11x14
   100, // 16x20
   125, // 20x24
   999]);// 30x40

var arr_coll_cost = new Array(
        // PAPER
   [111, // 11x14
   112, // 16x20
   113, // 20x24
   114],// 30x40
        // CANVAS
   [222, // 11x14
   223, // 16x20
   224, // 20x24
   225]);// 30x40

var arr_size = new Array( "11x14","16x20","20x24","30x40" );
var arr_media = new Array( "paper","canvas","notecard","offset" );
var iPaper = 0;
var iCanvas = 1;
var iNotecard = 2;
var iOffset = 3;

// columns: item no., title, original, 11x14, 16x20, 20x24, 30x40, canvas, descr
//          0         1      2         3      4      5      6      7       8
var dbArray  = new Array(
/* 0*/ ["wfwl001","Pectoral Sandpiper","11 X 14,   Acrylic on Canvas",1,0,0,0,1,"I chased this little guy around for 45 minutes before I could get a good look at him, and get a picture or two. It was worth the effort!"],
/* 1*/ ["wfwl002","Defending Loon","28 X 10    Acrylic on Board",1,1,1,0,1,"This is a sequential painting of a single Loon as we came a little too close to the nest in our canoe on Piscataway Lake, New Hampshire."],
/* 2*/ ["wfwl003","Common Mergansers","9 x 12,   Acrylic on Board",1,0,0,0,1,"Pair of Mergansers against a Lighthouse. Image size is 9 x 12, printed on 11 x 14 paper."],
/* 3*/ ["wfwl004","Family Affair","32 x 26  Acrylic on Board",1,1,1,0,1,"Family of Canada Geese in spring on Depression Pond, Kent, Connecticut"],
/* 4*/ ["wfwl005","Farmington River Mergansers","8 x 11,  Acrylic on Board",1,0,0,0,1,"An entrant into the national Migratory Bird stamp competition. These two birds (and their young ) are constant companions for fishermen on the Farmington River. Image size is 8 x 11, printed on 11 x 14 paper."],
/* 5*/ ["wfwl006","Florida Brown Pelican","11 x 14,  Acrylic on Canvas",1,0,0,0,1,"I was fascinated with the calmness of this image. The water was dead still and made for a wonderful study of the ripples displaying the bird."],
/* 6*/ ["wfwl007","Florida Woodies","9-1/4 X 7-1/2   Acrylic on Board",1,0,0,0,1,"An entrant into the Florida Migratory bird stamp competition.  Image size is 9-1/4 X 7-1/2, printed on 11 x 14 paper."],
/* 7*/ ["wfwl008","In Front of the Front","30 X 40,  Acrylic on Board",1,1,1,0,1,"This is the Tred Avon River near Oxford MD where James Mitchner penned much of \"Chesapeake\""],
/* 8*/ ["wfwl009","Night Flight","32 X 16   Acrylic on Board",1,1,1,0,1,"A very popular print because of the mood and the flow."],
/* 9*/ ["wfwl010","New Neighbors","32 X 21   Acrylic on Board",1,1,1,0,1,"Pair of Mallards introducing themselves to a resident turtle. Avon, CT"],
/* 10*/ ["wfwl011","Oyster Catchers","11 X 14, Acrylic on Canvas",1,0,0,0,1,"I couldn\'t get very close to these two so I had to rely on a telephoto lens. I love the way these birds stand on one leg."],
/* 11*/ ["wfwl012","Depression Pond Egret","21 x 29-3/4, Acrylic on Board",1,0,0,0,1,"This bird was so white against the darkness of the overhanging trees and grasses that it begged to be painted."],
/* 12*/ ["wfwl013","Geese Over Nepaug","27 X 21,  Acrylic on Board",1,1,1,0,1,"Morning flight of Geese as they head to the fields. Mountain Laurel says it\'s spring"],
/* 13*/ ["wfwl014","Winter Mallards","26-3/4 x 17, Acrylic on Board",1,0,0,0,1,"A Mallard pair, surrounded by ice. This scene was in Forest Park in Springfield MA"],
/* 14*/ ["port001","Benny Parsons","Acrylic on Board",1,1,0,0,0,"The oldest of the fab 4 Legends. Benny went on to announcing"],
/* 15*/ ["port002","Bobby Allison","Acrylic on Board",1,1,0,0,0,"One of the all time greats and member of the 4 legends"],
/* 16*/ ["port003","Cale Yarborough","Acrylic on Board",1,1,0,0,0,"One of 4 drivers named a NASCAR LEGEND in 1995"],
/* 17*/ ["port004","Kevin at Piano","",0,0,0,0,1,"?"],
/* 18*/ ["port005","Richard Petty","Acrylic on Board",1,1,0,0,0,"The most famous NASCAR driver who ever lived! Shown here celebrating his 200th win, and waving to the crowd at his retirement."],
/* 19*/ ["port006","Tom Watson at \'82 US Open","",0,0,0,0,1,"?"],
/* 20*/ ["port007","Nowobilski Family","",0,0,0,0,1,"?"],
/* 21*/ ["port008","Kids at Christmas","",0,0,0,0,1,"?"],
/* 22*/ ["decy001","Black Duck","9 X 14 Acrylic on Board",1,0,0,0,1,"These decoys are all entrants in the Massachusetts Migratory Waterfowl Stamp program. They have been displayed at outdoor shows and been shown at the Peabody Museum in      Salem MA.  These paintings are of decoys from the collection of the late \"Joe Bates\". world renowned sportsman. They are available individually or as a set.. They do not come framed."],
/* 23*/ ["decy002","Bluewinged Teal (Drake)","9 X 14 Acrylic on Board",1,0,0,0,1,"These decoys are all entrants in the Massachusetts Migratory Waterfowl Stamp program. They have been displayed at outdoor shows and been shown at the Peabody Museum in      Salem MA.  These paintings are of decoys from the collection of the late \"Joe Bates\". world renowned sportsman. They are available individually or as a set.. They do not come framed."],
/* 24*/ ["decy003","Bluewinged Teal (Pair)","9 X 14 Acrylic on Board",1,0,0,0,1,"These decoys are all entrants in the Massachusetts Migratory Waterfowl Stamp program. They have been displayed at outdoor shows and been shown at the Peabody Museum in      Salem MA.  These paintings are of decoys from the collection of the late \"Joe Bates\". world renowned sportsman. They are available individually or as a set.. They do not come framed."],
/* 25*/ ["decy004","Golden Eye","9 X 14 Acrylic on Board",1,0,0,0,1,"These decoys are all entrants in the Massachusetts Migratory Waterfowl Stamp program. They have been displayed at outdoor shows and been shown at the Peabody Museum in      Salem MA.  These paintings are of decoys from the collection of the late \"Joe Bates\". world renowned sportsman. They are available individually or as a set.. They do not come framed."],
/* 26*/ ["decy005","Wood Duck (Drake)","9 X 14 Acrylic on Board",1,0,0,0,1,"These decoys are all entrants in the Massachusetts Migratory Waterfowl Stamp program. They have been displayed at outdoor shows and been shown at the Peabody Museum in      Salem MA.  These paintings are of decoys from the collection of the late \"Joe Bates\". world renowned sportsman. They are available individually or as a set.. They do not come framed."],
/* 27*/ ["decy006","Wood Duck (Pair)","9 X 14 Acrylic on Board",1,0,0,0,1,"These decoys are all entrants in the Massachusetts Migratory Waterfowl Stamp program. They have been displayed at outdoor shows and been shown at the Peabody Museum in      Salem MA.  These paintings are of decoys from the collection of the late \"Joe Bates\". world renowned sportsman. They are available individually or as a set.. They do not come framed."],
/* 28*/ ["hunt001","Buffalo","30 x 40, Oil on Canvas",1,1,1,0,1,"Early morning on the plains. This animal will follow you as you pass the painting"],
/* 29*/ ["hunt002","Hunter\'s Dream","30 x 40, Acrylic on Board",1,1,1,0,1,"This was the cover of the 1989 SAVAGE ARMS Catalog. The local is New York/CT border. See if you can find the vole seated on a rock."],
/* 30*/ ["hunt003","Preston Mountain Grouse","30 x 31,   Acrylic on Board",1,1,1,0,1,"Originally the cover of the 1988 Savage Arms Catalog. See if you can find the deer."],
/* 31*/ ["hunt004","Get-Away Grouse","20 x 19   Acrylic on Board",1,1,0,0,1,"Ruffed Grouse displaying one of his many tricks. Simsbury CT."],
/* 32*/ ["hunt005","Winter Fox","25 x 36   Oil on Canvas",1,1,1,0,1,"Typical New England woods scene"],
/* 33*/ ["hunt006","Santa Fe Ducks","20-1/2 x 19-1/2, Acrylic on Board",1,0,0,0,1,"Duck hunting in New Mexico along the Santa Fe River"],
/* 34*/ ["hunt007","In The Blind","12-1/2 x 25-1/2",1,0,0,0,1,"?"],
/* 35*/ ["hunt008","Plimhimon Farm","8ft 10in x 3ft 7-1/2in    Oil on Canvas",1,1,1,0,1,"A typically beautiful spread along the Tred Avon river just outside Oxford MD  World class goose shooting led ABC\'s AMERICAN SPORTSMAN to film a segment of the show starring Bing Crosby and Phil Harris"],
/* 36*/ ["bird001","Drummer Boy","25 x 28   Acrylic on Board",1,1,1,0,1,"Ruffed Grouse drumming on a log"],
/* 37*/ ["bird002","Florida Wild Turkey","7-1/2 x 10,   Acrylic on Board",1,0,0,0,1,"This took 2nd place in the Florida Wild Turkey Hunting Stamp competition. Image size is 7-1/2 x 10, printed on 11 x 14 paper."],
/* 38*/ ["fish001","Rainbow Trout","8-1/2 x 12   Acrylic on Board",1,0,0,0,1,"Participant in the Delaware trout stamp competition"],
/* 39*/ ["fish002","Evening on the Farmington","27 x 15,   Acrylic on Board",1,1,1,0,1,"Fly fishing at dusk in the upper Farmington below the Hog Back Dam. We can include an optional title of the river of your choice across the bottom of the print, as seen in the thumbnail. Just click on ASK below."],
/* 40*/ ["fish003","Brown Trout","7 x 10   Acrylic on Board",1,0,0,0,1,"An Honorable mention in the Kentucky Trout Stamp program"],
/* 41*/ ["fish004","Large Mouth Bass","11 x 14    watercolor",1,0,0,0,1,"I had my paints with me and the minute I landed a bass, I started painting. It\'s amazing how green those fish were."],
/* 42*/ ["fish005","Depression Pond","11 x 14     watercolor",1,0,0,0,1,"One of the most beautiful small lakes you\'ll ever see. This is where \"Family Affair\" took place. This pond was constructed during the depression, hence the name."],
/* 43*/ ["dog001","Black Lab","16 X 20,  Oil on Canvas",1,1,0,0,1,"This dog has one quest in life, to chase the ball that he\'s begging you to throw."],
/* 44*/ ["dog002","Cockapoo","16 X 20,  Oil on Canvas",1,1,0,0,1,"This dog was painted against a background, something I wasn\'t doing for dog portraits. However, I must admit, if you can keep the background very simple (grass only) it works out quite well."],
/* 45*/ ["dog003","Golda & Gunther","16 x 20,  Oil on Canvas",1,1,0,0,1,"These 2 pups played together constantly, yet were so frisky the owner could never get a picture of them together in repose. I painted this from individual pictures and note not only are they together, but Gunther has his paw on Golda\'s paw. This picture was made into notecards."],
/* 46*/ ["dog004","Labradoodle","16 X 20,  Oil on Canvas",1,1,0,0,1,"This dog \"Penny\" belongs to a family in our neighborhood. There are two children in the family, a boy Trevor, and a girl Haley. Trevor was in 2nd grade and he wanted to give his mother the ultimate Mother\'s Day gift...a commissioned portrait of Penny. I\'ll never forget his tentative and stumbling approach as he asked me to paint Penny. He ended his pitch by reaching in his pocket and dumping everything he had on a table. It consisted of change, bills, paper clips and odd bits of paper. It would take a stronger man than me to turn that little tike down."],
/* 47*/ ["dog005","Lhasa Apso","16 x 20,   Oil on Canvas",1,1,0,0,1,"This dog passed away about one week after the painting was delivered. Sad as it was, he lasted long enough to be immortalized on canvas."],
/* 48*/ ["misc001","Pinchot Sycamore","30 x 40,  Acrylic on Canvas",1,1,1,0,1,"A very fine photographer suggested I paint Simsbury\'s landmark tree,  and indeed Connecticut\'s oldest tree. I said \":Why?\" and he replied \" I\'ve been trying to photograph that tree for 11 years and I can\'t do it without picking up the iron bridge, part of the road, some disconnected trash, branches and a road railing with reflectors. You could get rid of all that stuff\" "],
/* 49*/ ["misc002","Tulmeadow Farms","30 x 40",1,1,1,0,1,"A favorite gathering place for ice cream on a hot summer evening. Simsbury, CT"],
/* 50*/ ["misc003","Simsbury\'s Dragon","11 x 17    Pen & Ink",1,0,0,0,0,"Originally created for kids in the Simsbury elementary schools. In some instances, copies were given as rewards."],
/* 51*/ ["ccod001","Brewster Store","26 X 18    Oil on Canvas",1,1,1,0,1,"This is the Brewster store at 9:00am on July 4, 2003. A wonderful little band was playing  patriotic songs and the people were singing, waving flags & having fun. There are many little side stories, of revelers who stayed up all night, of certain folks who disapproved of their antics, of some who were lost in the music and much more."],
/* 52*/ ["ccod002","Building Castles","16 x 20,  Acrylic on Canvas",1,1,0,0,1,"A spontaneous moment of kids being kids. I tried to capture the fervor of their actions."],
/* 53*/ ["ccod003","Clamming at Hemminway Landing","24 x 18,  Acrylic on Canvas",1,1,1,0,1,"The scene of a federal hatchery of shellfish, particularly clams and oysters. The government seeds the local areas and the clammers have fertile water. I tried to catch the vastness of the grassy inlets at low tide."],
/* 54*/ ["ccod004","Crosby Landing","16 X 20 ,   Acrylic on Canvas",1,1,0,0,1,"This couple sitting on the rocks, unaware of anything else in this world, has given rise to dozens of theories as to what their conversation is about.(If in fact there even IS a conversation)  Study it awhile and I\'m sure you\'ll have a theory too."],
/* 55*/ ["ccod005","Edward Snow House","18 x 24,   Acrylic on Canvas",1,1,1,0,1,"Typical Cape Cod house with typical home owner activity"],
/* 56*/ ["ccod006","Harbor Lunch","28 x 22,   Acrylic on Canvas",1,1,1,0,1,"Beautiful little outdoor restaurant right on the cut that leads into the harbor, Notice the boat in the background that is outward bound, below restaurant level"],
/* 57*/ ["ccod007","Umbrellas of Nauset","36 X 24,  Oil on Canvas",1,1,1,0,1,"A breath-taking scene of endless umbrellas, endless beach and endless ocean. I tried to recreate the hot sun, the soft roll of waves and the far off sound of people laughing and playing."],
/* 58*/ ["ccod008","Nauset Beach Surf","11 x 14,   Oil on Canvas",1,0,0,0,1,"Nauset beach is the main beach of Cape Cod. It faces the ocean and runs the length of the outer arm of the Cape. I tried to concentrate on the translucence of the waves."],
/* 59*/ ["ccod009","Paines Creek","17-1/2 X 24,  Acrylic on Canvas",1,1,1,0,1,"One of the most idyllic scenes on the Cape or anywhere else for that matter. Right on the Brewster / Dennis line, Paine\'s Creek is one of our most popular prints"],
/* 60*/ ["ccod010","Paines Creek Delta","16 x  20,   Acrylic on Canvas",1,1,0,0,1,"The bay end of Paine\'s Creek as it flows right through the beaches to the Bay. No sea creature was safe as that little boy with the net was sweeping the water clean."],
/* 61*/ ["ccod011","Sunset at Hadley\'s Cove","23 x 17,  Acrylic on Canvas",1,1,0,0,1,"I spent many a summer watching sunsets in Hadley\'s Cove. Notice all the boats that are anchored."],
/* 62*/ ["ccod012","The Jury","20 x 8,   Acrylic on Canvas",1,1,0,0,1,"These fine folk appeared at the band concert in Brewster. They lined up somewhat in front of us, complete with windbreakers, chairs and blankets. You could probably find them, or a similar group, at any band concert anywhere."],
/* 63*/ ["lhs001","7 Working Lighthouses on Cape Cod","11 x  17,   pen & ink.",1,0,0,0,1,"A good depiction of the remaining 7 lighthouses that still work. There is a brief history of each one. You can also purchase single prints of each light. Hand colored, 2nd color red."],
/* 64*/ ["lhs002","Owl\'s Head Lighthouse","32x 21    Oil on Canvas",1,1,1,1,1,"A beautiful lighthouse on a point just east of Rockland Maine. For 30x40 print, image is same size as original."],
/* 65*/ ["lhs003","Pemaquid Lighthouse","25 x 36,  Oil on Canvas",1,1,1,1,1,"The rock bound coast of Maine on Pemaquid Point near Boothbay Harbor. For 30x40 print, image is same size as original."],
/* 66*/ ["lhs004","Old Stonington Lighthouse","8-1/2 X 11    Pen & Ink",1,0,0,0,1,"Built in 1823 this all-stone tower lighthouse functioned till 1899 at which point it was moved back from the point and made into a landmark museum. Ask about hand coloring"],
/* 67*/ ["book001","Unforgettable Recipes and Handy Consumer Tips","?",0,0,0,0,0,"?"],
/* 68*/ ["book002","Faith and Destiny","?",0,0,0,0,0,"?"],
/* 69*/ ["firearm","Primitive Firearms and Archery Hunting Stamp art, 1994","11 x 17 Acrylic on Board",1,1,0,0,1,""],
/* 70*/ ["misc004","Heublein Tower","22-1/2 x 17-1/2 Acrylic on Board",1,0,0,0,1,"Heublein Tower"],
/* 71*/ ["ccod013","Arey\'s Pond","24 x 30 Acrylic on Canvas",1,1,1,0,1,"Waiting for a boat at Arey\'s Pond"]

);

function getURLParameter(strParamName){
var strReturn = new String();
var strHref = window.location.href;
var strQueryString = new String();
var aQueryString = new String();
var blnContinue = false;
if (strHref.indexOf("&") > -1) {
strQueryString = strHref.substr(strHref.indexOf("&"));
aQueryString = strQueryString.split("&");
blnContinue = true;
}
else if (strHref.indexOf("?") > -1) {
strQueryString = strHref.substr(strHref.indexOf("?"));
aQueryString = strQueryString.split("?");
blnContinue = true;
}

if (blnContinue){
for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
if (aQueryString[iParam].indexOf(strParamName + "=") > -1 ) {
var aParam = aQueryString[iParam].split("=");
strReturn = aParam[1];
break;
}
}
}
return strReturn;
}

function update(){
var id = getURLParameter('imageID');

// columns: item no., title, original, 11x14, 16x20, 20x24, 30x40, canvas, descr
//          0         1      2         3      4      5      6      7       8
//var dbArray  = new Array(

document.getElementById('item_title1').innerHTML='<H1>'+dbArray[id][1]+'</H1>';
document.getElementById('item_title2').innerHTML='<font size="2">'+dbArray[id][1];
document.getElementById('item_id').innerHTML='<font size="2">'+dbArray[id][0];
document.getElementById('item_image').innerHTML= '<img border="0" src="images/art/' + dbArray[id][0] + '.jpg">';

document.getElementById('item_original').innerHTML='<font size="2">'+dbArray[id][2];
document.getElementById('item_descr').innerHTML='<font size="2">'+dbArray[id][8];
document._addtocart.item_number.value=dbArray[id][0];
update_size_price(arr_size[0], arr_cost[iPaper][0], iPaper);
if(dbArray[id][3]==1) {document.getElementById('a1').style.visibility = "visible"; document.getElementById('a1').style.position = "relative"; }
if(dbArray[id][4]==1) {document.getElementById('a2').style.visibility = "visible"; document.getElementById('a2').style.position = "relative"; }
if(dbArray[id][5]==1) {document.getElementById('a3').style.visibility = "visible"; document.getElementById('a3').style.position = "relative"; }
if(dbArray[id][6]==1) {document.getElementById('a4').style.visibility = "visible"; document.getElementById('a4').style.position = "relative"; }
if(dbArray[id][7]==1) { // check for canvas flag
if(dbArray[id][3]==1) {document.getElementById('b1').style.visibility = "visible"; document.getElementById('b1').style.position = "relative"; }
if(dbArray[id][4]==1) {document.getElementById('b2').style.visibility = "visible"; document.getElementById('b2').style.position = "relative"; }
if(dbArray[id][5]==1) {document.getElementById('b3').style.visibility = "visible"; document.getElementById('b3').style.position = "relative"; }
if(dbArray[id][6]==1) {document.getElementById('b4').style.visibility = "visible"; document.getElementById('b4').style.position = "relative"; }
} // end of canvas test
}


//<!-- end of db.js -->

