/////////////////////////////////////////////////
function changeURL(loc) {
    window.close("winPainting");
    window.opener.location.href=loc;
}
/////////////////////////////////////////////////
if (window.focus) self.focus();
/////////////////////////////////////////////////
function addItem(i) {
     parent.buyItem(catalog[i].title, catalog[i].price, catalog[i].year, catalog[i].frame, document.itemsform.quant.value)
}
/////////////////////////////////////////////////
// set up catalog array
function catItem(year,size,width,height,sold,frame,price,title,code,desc) {
     this.year = year
     this.size = size
     this.width = width
     this.height = height
     this.sold = sold // sold = 1
     this.frame = frame // framed = 1
     this.price = price
     this.title = title
     this.code = code
     this.desc = desc
}
var catalog = new Array()

catalog[0] =  new catItem(2009,"24\" x 18\"",350,258,0,1,2300,"Children Playing","ChildrenPlaying","In North America we often forget the less blessed areas of the world and its living conditions. In this painting, we see an old, dusty village and children playing in the dirt. The warm, sunny afternoon may be pleasant, but the question is: is this the best leisure time the children could have? Photo by Levente Adam.");
catalog[1] =  new catItem(2008,"16\" x 20\"",279,350,0,1,900,"Fallen Trees","FallenTrees","Trees and their remarkable variety, form and colour are an intrinsic part of our ecosystem. Seeing them lying on the ground bring a sad feeling, but as light highlights this one's position and unique colours, then most of us have a desire to remember how it was, and hang this picture in our home.");
catalog[2] =  new catItem(2008,"20\" x 24\"",287,350,0,1,"NFS","Gone Fishing","GoneFishing","For Canadians, one of the most relaxing times are spent in nature fishing. Catching a fish means success, but looking at the beautiful landscape with the sunshine on the mountains and reflections on the water is what is truly uplifting.");
catalog[3] =  new catItem(2008,"20\" x 16\"",350,279,0,1,1400,"Silence in the Harbour","SilenceInTheHarbor","Sometimes, every one of us has a dream about owning a small island with a comfortable home and a private harbour with a fishing boat. This idea came to mind as I painted this picture with beautiful sunshine on the shore and sea. If you can catch some of this dream in the painting, I beleive I\'ve achieved my goal... Photo taken by Emoke Adam.");
catalog[4] =  new catItem(2007,"20\" x 16\"",350,279,0,1,1000,"Colourful Shoreline","ColourfulShoreline","A lake with its colorful shoreline is one of the striking beauties of nature. This idea really captured my mind as I started painting this. I would like to bring this landscape into everyone's home to constantly enjoy. Photo by <a href=http://www.sirakphoto.com/ target=_blank>Joci Sirak</a>.");
catalog[5] =  new catItem(2007,"18\" x 24\"",260,350,1,1,2100,"Wilderness in the Rockies","WildernessInTheRockies","The wilderness in the Rockies of Alberta and BC has a thousand faces. For an artist to find a true representation, is no small task. In this painting we have a lake, broken trees, and bush and mountain in the background. This is possibly the closest that I can get. I hope you agree with me.");
catalog[6] =  new catItem(2007,"18\" x 14\"",350,269,0,1,1800,"Raspberry Leaves","RaspberryLeaves","While depicting only a few raspberry leaves with branches and grass around it, could this be a still life? Before answering, take a look at the remarkble colours of the leaves. We\'re viewing an unusual kind of beatuy, found in nature, in this painting.");
catalog[7] =  new catItem(2007,"12\" x 16\"",258,350,0,1,1300,"Near Nightfall","NearNightfall","This painting is very close to my heart. It's merely a simple forest scene, but the sunlight\'s effect is breathtaking. In the small lighted area we are witnessing a whole variety of shades and colours. The sunshine is applying the magic in this painting.");
catalog[8] =  new catItem(2006,"20\" x 16\"",350,275,1,1,1400,"The Sunset","Sunset","The sky is one of the beauties of nature. Always colourful and interesting, it is most attractive when it rises or sets. In this sunset painting, the rays magnificently affect the sky, the clouds and the sea. The differennt paths taken by the rays, the shapes of the clouds and their colours together represent nature\'s truly wonderful character.");
catalog[9] =  new catItem(2006,"16\" x 12\"",350,256,0,1,480,"The Waterfall","Waterfall","Waterfalls are one of nature\'s wonders. They have always attracted people. The waterfall in this painting is certainly not one of the world\'s famous, but it has it beauty. You can almost hear the sounds of the crashing water, while enjoying its colours.");
catalog[10] =  new catItem(2006,"18\" x 14\"",350,269,0,1,1200,"Nature\'s Chessboard","NaturesChessboard","Leaves are leaves - we see them many times during our every-day life - but nature can present them in very interesting ways. In this painting, with its dark background, the unique position of the leaves, the combinations of lights and shadows and colours present \nature\'s chess board\. Please enjoy this example of what is called \'abstract realism\'.");
catalog[11] =  new catItem(2005,"18\" x 24\"",264,350,1,1,2300,"Reflections","Reflections","I admired this image for a long time, before deciding to paint it. You can imagine that it was challenging work. In my judgement the painting turned out great, and I had a chance to take the painting to two shows: one in Calgary and another in Toronto. Four days after the opening of the Toronto show, it was sold!");
catalog[12] =  new catItem(2005,"20\" x 16\"",350,267,0,1,1000,"Abandoned House","AbandonedHouse","While viewing a scene such as in this painting, we are reminded of our heritage and history. Above all, it\'s always a pleasure seeing this kind of old house in beautiful surroundings. This painting is also based on a photo by <a href=http://www.sirakphoto.com/ target=_blank>Joci Sirak</a>.");
catalog[13] =  new catItem(2005,"36\" x 24\"",350,234,0,1,3800,"Real or Fantasy?","RealOrFantasy","<a href=http://www.sirakphoto.com/ target=_blank>Joci Sirak</a>, a prominent Vancouver photographer provided the photograph that I based this painting on. After design changes and painting the theme, I began wondering whether I created a realistic painting, or just a fantasy. Perhaps you\'ll be able to decide whether the title is appropriate, or not?");
catalog[14] =  new catItem(2004,"20\" x 24\"",247,350,0,1,900,"Creek at Grassi Lakes","CreekGrassiLakes","A small creek at the Grassi Lakes, but its beauty is immense! I hope I was able to capture the real essence of this pearl of the Rockies - I honestly tried. Perhaps you can tell me when you look at this painting?");
catalog[15] =  new catItem(2004,"24\" x 12\"",350,180,0,1,580,"Rejuvenation","Rejuvenation","Rejuvenation is a unique and natural process of nature. The old, burned tree trunks on one side, and the fresh, rapidly growing new trees are already visible in the rest of the landscape, reflected on the surface of the lake.");
catalog[16] =  new catItem(2004,"12\" x 16\"",251,350,1,1,390,"Ribbon Creek","RibbonCreek","This painting began as a field sketch, but after a few adjustments in the studio, it turned out to be much more. I especially like the subject matter, the small creek surrounded by shrubs and trees withan impressive mountainous background. Hope you like it too.");
catalog[17] =  new catItem(2004,"18\" x 14\"",350,257,0,1,680,"Grassi Lake","GrassiLake","Grassi Lake is one of the jewels of the rockies. The surrounding area is very scenic and the colors of the lake are so very beautiful, they\'re magical. I hope I can be proud to say that I captured the colors of the lake in this painting.");
catalog[18] =  new catItem(2003,"16\" x 20\"",264,350,0,0,125,"Wild and Free (Giclee Print)","WildAndFree","This bighorn isn't looking at the cloudy sky, nor revelling in the picturesque landscape, but smells something in the air: a storm is coming. His instincts suggest that he'd better rush to safer woods, where his herd is relaxing.");
catalog[19] =  new catItem(2002,"18\" x 14\"",350,257,1,1,580,"Harvesting","Harvesting","Menacing, cloudy sky. The storm could be here anytime, so this is no time to stop harvesting. This quick and efficient work ensures livelihood for farmers and bread for all of us the coming year.");
catalog[20] =  new catItem(2002,"18\" x 24\"",252,350,1,1,900,"Boat on the Lake","BoatOnTheLake","What a beautiful lake, surrounded by those huge mountains. No question, the sunset is the best time for boating. The scenery is pleasant to see, but also soothing for our souls.");
catalog[21] =  new catItem(2002,"18\" x 14\"",350,259,0,1,700,"Enjoying the Pond","EnjoyingThePond","This swan is a bit shy, she does not want to face the viewer. Her graceful swimming does indicate that she's enjoying a warm summer day.");
catalog[22] =  new catItem(2001,"18\" x 14\"",350,268,1,1,690,"Going Home","GoingHome","A hard day\'s work is over.  Seemingly everybody is tired.  Even the horses are slowing down as they drag the wagon.  But sweet home is already visible in the distance, where the family is waiting for them with a good supper.");
catalog[23] =  new catItem(2001,"18\" x 24\"",257,350,0,1,520,"Native Portrait","NativePortrait","This portrait is the final product from a live model.  When the first time I met this gentleman, I immediately liked his serious face and the beautiful, colourful costume.  The colours are always a sensitive issue for me, so I was really delighted to paint him.");
catalog[24] =  new catItem(2001,"20\" x 16\"",350,276,0,1,700,"Beaver Dam","BeaverDam","Which animal can build its own house?  Of course, the only one is the beavers.  On this painting, we enjoy the beaver\'s master craftsmanship in pleasant surroundings.");
catalog[25] =  new catItem(2000,"20\" x 24\"",288,350,0,1,520,"The Hungarian Huszar","Huszar","When the Hungarians settled in the Carpathian Basin more than a thousand years ago, they were a strong military nation. Things have changed through the centuries, but the Huszars kept their fame as soldiers of valour. This painting shows an 18th century horseman.");
catalog[26] =  new catItem(2000,"28\" x 22\"",350,271,1,1,1200,"Spray River","SprayRiver","Late afternoon on a sunny summer day is always a special time for a painter. The sun\'s golden rays spread over the landscape changing the light instantly. I optimized the setting in this picture in the hopes that it affects you the same way it affected me.");
catalog[27] =  new catItem(2000,"36\" x 24\"",350,237,1,0,1200,"Christmas in the Village","X-masInTheVillage","Christmas Eve is about to arrive in the village. The lights in every house indicate the special festiveness of the evening. Before the celebration begins, a couple decide to go for a sleigh-ride, enjoying the beautiful sunset and the pleasant surroundings.");
catalog[28] =  new catItem(1999,"20\" x 16\"",350,281,1,1,820,"Winter Afternoon","WinterAfternoon","It is a cold and misty winter afternoon in the foothills of the Rockies.  From above, the sky and rays of sunlight brighten up the scene, just enough for the horses to find some grass under the snow.  I hope that the light effect of the scene will touch the viewer also.");
catalog[29] =  new catItem(1999,"28\" x 22\"",350,270,0,1,900,"Glenmore Reservoir","GlenmoreReservoir","The Glenmore Reservoir is part of Heritage Park in the city of Calgary.  A cruise on the SS Moyie brings a lot of enjoyment to children and adults during the summer season.  This painting of the picturesque landscape will preserve our memories of a great summertime.");
catalog[30] =  new catItem(1999,"16\" x 20\"",278,350,0,1,600,"Show Jumping","ShowJumping","Watching the Spruce Meadows Show Jumping Tournaments is my favorite relaxation. I hope that my joy is reflected in this painting.");
catalog[31] =  new catItem(1998,"20\" x 16\"",350,276,1,1,780,"Sunny Side of the Street","SunnySide","The sunshine might just be limited on this side of the street, and certainly the flowers make it bright and beautiful.  I always enjoy painting lots of flowers.");
catalog[32] =  new catItem(1998,"24\" x 18\"",350,258,1,1,800,"Shawnessy Barn","ShawnessyBarn","This colorful heritage building is found in a park in the Shawnessy district in Calgary. The building is not only well preserved, but serves as a centre for the local community association.");
catalog[33] =  new catItem(1998,"30\" x 20\"",350,230,1,0,1200,"Christmas in the Rockies","X-masInTheRockies","The warm Christmas lights from a log house and the golden glow of the mountain side will stay in our memory to help us through our everyday lives.");
catalog[34] =  new catItem(1997,"30\" x 24\"",350,279,0,1,1400,"Hungry Geese","HungryGeese","A pleasant afternoon on the shores of beautiful Salt Springs Island, British Columbia. Of course the food my daughter was offering was more important to the geese than the scenery! With little hesitation they accepted all she had to give.");
catalog[35] =  new catItem(1995,"30\" x 24\"",350,277,0,1,980,"Nightfall in the Harbor","NightfallInHarbor","The colors of the sunset and the pleasant scenery join peacefully with the resting boats at a little town harbor in Tofino BC.");

