<!--

/*
This JavaScript code, and all associated software and file structures, calling or called 
by this code, are copyrighted material, and may not be copied or duplicated in any manner 
whatsoever without prior written authorization.  All applicable trademarks, registrations, 
& copyrights are property of Phil Astrella, Registry Enterprises.
*/


masterList = new Array(

  // Format:
  // master ID :: title :: size :: medium :: date :: price :: status :: frame style

	"Acceptance1::Acceptance::4&#180; x 5&#180;::Oil on Canvas::1999::5800::sold in 2001::browns1",
	"ApacheBoy1::Apache Boy::2&#180; x 4&#180;::Pastel::2000::1800::sold in 2000::browns2",
	"FantasyBrave1::Fantasy Brave::30&quot; x 40&quot;::Pastel::2000::1800::sold in 2001::blues1",
	"GhostRider1::Ghost Rider::4&#180; x 5&#180;::Acrylic on Canvas::1999::3800::sold in 1999::blues1",
	"Lipizzaner2::Lipizzaner Spirit::4&#180; x 4&#180;::Oil on Canvas::1999::7000::for sale by current owner::grays1",
	"LittleEagle1::Little Eagle::3&#180; x 3&#180;::Oil on Acrylic on Canvas::2000::2400::sold in Las Vegas::browns1",
	"PersonalEmpower1::Personal Empowerment 1::4&#180; x 4&#180;::Oil on Acrylic::1999::4800::blue version, sold in 1999::blues1",
	"PersonalEmpower2::Personal Empowerment 2::4&#180; x 4&#180;::Oil on Acrylic::1999::4800::mauve version, sold in 1999::purples2",
	"SelfLove1::Self Love::4&#180; x 5&#180;::Oil on Canvas::2000::4800::sold in 2000::blues2",
	"SpiritGuide1::Spirit Guide::3&#180; x 4&#180;::Oil on Canvas::1990::5500::Original Available::blues1",
	"Visions1::Visions of Awareness::4&#180; x 5&#180;::Oil on Acrylic::1999::5800::sold in 1999::blues2",
	"Palominos3::Palominos::4&#180; x 4&#180;::Oil on Canvas::2004::4200::In-Progress, Original Available::browns3",
	"NewBoots1::New Boots::30&quot; x 40&quot;::Oil on Canvas::2004::1800::Original Available::blues1",
	"Chaps1::Chaps::30&quot; x 40&quot;::Oil on Canvas::1999::1800::Original Available::blues2",
	"BuffaloBrave1::Buffalo Brave::30&quot; x 40&quot;::Oil on Canvas::1999::3800::sold in 1999::browns2",
	"Geoffrey1::Geoffrey::30&quot; x 40&quot;::Oil on Canvas::1999::0000::Artist&#146;s youngest son::browns2",
	"Manatees1::Manatees::2&#180; x 4&#180;::Oil on Canvas::1999::4000::sold in 2000::greens2",
	"Mermaid1::Mermaid::3&#180; x 4&#180;::Oil on Canvas::1999::2400::sold (commissioned)::blues3",
	"DreamOfHorses1::I Dream of Horses::4&#180; x 4&#180;::Oil on Canvas::1999::4800::sold in 1999::browns1",
	"Rebirth1::Rebirth::4&#180; x 4&#180;::Oil on Board::2001::4800::Self Portrait, Original Available::blues1",
	"TheKing1::The King::3&#180; x 4&#180;::Oil on Canvas::1999::4800::sold in 2002::browns2",
	"GoldenAngel1::Golden Angel::4&#180; x 5&#180;::Oil on Board::2001::3800::?::browns1",
	"Palomino1::Palomino #1::4&#180; x 5&#180;::Oil on Canvas::1999::4800::Original Available::browns2",
	"Lipizzaner1::Lipizzaner::4&#180; x 5&#180;::Oil on Canvas::1999::4800::sold in 2002::browns1",
	"Spirit1::Spirit::3&#180; x 4&#180;::Oil on Canvas::2007::3800::Jerome Gallery::browns1",
	"TimeToRide1::Time to Ride::4&#180; x 4&#180;::Oil on Canvas::1999::5000::sold in 1999::browns1",
	"LookToTradition1::Look to Tradition::4&#180; x 4&#180;::Oil on Canvas::1999::4800::sold in 2001::blues1",
	"Liberty1::Liberty::7&#180; x 4&#180;::Oil on Canvas::1999::0000::Donated to Sedona "
		+ "Fire Department to commemorate 1st anniversary of 9/11::blues2",
	"TogetherEternity1::Together in Eternity (initial)::3&#180; x 4&#180;::Oil on Board::2004::0000::?::browns2",
	"TogetherEternity2::Together in Eternity (revised)::3&#180; x 4&#180;::Oil on Board::2005::0000::?::browns3",
	"PassionateWoman1::Passionate Woman::0&#180; x 0&#180;::Oil on Canvas::2004::0000::?::browns2",
	"AngelOfMercy1::Angel of Mercy::30&quot; x 40&quot;::Pastel::1999::1800::sold in 2000::blues1",
	"AngelWithDove1::Angel With Dove::36&quot; x 48&quot;::Oil on Canvas::2007::3750::Original Available::blues1",
	"VanishingWarrior1::Vanishing Warrior::24&quot; x 48&quot;::Oil on Canvas::1999::4800::sold in 2000::blues1",
	"LittleAngel1::Little Angel::30&quot; x 40&quot;::Oil on Canvas::2004::800::sold (commissioned) in 2004::blues2",
	"BullRider1::Bull Rider::4&#180; x 5&#180;::Oil on Board::2002::4200::Original Available::browns1",
	"ShotInHand1::Shot in the Hand::4&#180; x 5&#180;::Oil on Board::2002::7800::?::browns1",
	"WildFire1::Wild Fire::4&#180; x 5&#180;::Oil on Canvas::1999::5800::sold in 2000::browns1",
	"SamuraiWarrior1::Samurai Warrior::4&#180; x 5&#180;::Oil on Canvas::1999::6800::sold in 1999::grays3",
	"MarleneDietrich1::Marlene Dietrich::30&quot; x 40&quot;::Oil on Canvas::1999::1800::sold in 2000::grays2",
	"GreatGrandfather1::Great Grandfather::2&#180; x 4&#180;::Oil on Canvas::2003::0000::?::grays2",
	"Chief1::Chief::2&#180; x 4&#180;::Oil on Canvas::2000::0000::?::browns2",

	"TotemOtter1::Birth Totem: Otter::12&quot; x 16&quot;::Oil on print::2001::0000::?::browns1",
	"TotemWolf1::Birth Totem: Wolf::12&quot; x 16&quot;::Oil on print::2001::0000::?::browns1",
	"TotemFalcon1::Birth Totem: Falcon::12&quot; x 16&quot;::Oil on print::2001::0000::?::browns1",
	"TotemBeaver1::Birth Totem: Beaver::12&quot; x 16&quot;::Oil on print::2001::0000::?::browns1",
	"TotemDeer1::Birth Totem: Deer::12&quot; x 16&quot;::Oil on print::2001::0000::?::blues2",
	"TotemWoodpecker1::Birth Totem: Woodpecker::12&quot; x 16&quot;::Oil on print::2001::0000::?::blues2",
	"TotemSalmon1::Birth Totem: Salmon::12&quot; x 16&quot;::Oil on print::2001::0000::?::blues2",
	"TotemBrownBear1::Birth Totem: Brown Bear::12&quot; x 16&quot;::Oil on print::2001::0000::?::blues1",
	"TotemCrow1::Birth Totem: Crow::12&quot; x 16&quot;::Oil on print::2001::0000::?::browns2",
	"TotemSnake1::Birth Totem: Snake::12&quot; x 16&quot;::Oil on print::2001::0000::?::blues1",
	"TotemOwl1::Birth Totem: Owl::12&quot; x 16&quot;::Oil on print::2001::0000::?::browns3",
	"TotemGoose1::Birth Totem: Goose::12&quot; x 16&quot;::Oil on print::2001::0000::?::purples3",

	"ChiefHoleDay1::Chief Hole in the Day::30&quot; x 40&quot;::Oil on Canvas::2005::4300::?::browns3",
	"ReturnWarrior1::Return of the Warrior::24&quot; x 30&quot;::Oil on Canvas::2005::2300::?::browns3",
	"Untitled1::Untitled #1::24&quot; x 30&quot;::Oil on Canvas::2005::2300::?::browns2",
	"Untitled2::Untitled #2::0&quot; x 0&quot;::Oil on Canvas::2005::0000::?::purples2",
	"Nude1::Nude::24&quot; x 30&quot;::Oil on Canvas::2005::1900::?::browns3",
	"WhiteBuffalo1::White Buffalo::36&quot; x 48&quot;::Oil on Canvas::2006::0000::?::browns3",

	"EagleScout1::Eagle Scout::36&quot; x 48&quot;::Oil on Canvas::2007::0000::?::browns1",
	"GentleWarrior1::Gentle Warrior::36&quot; x 48&quot;::Oil on Canvas::2007::0000::?::browns3",

	"BoyScout1::Boy Scout::36&quot; x 48&quot;::Oil on Canvas::2007::0000::?::browns2",
	"FreedomInTheDusk1::Freedom in the Dusk::36&quot; x 48&quot;::Oil on Canvas::2007::0000::?::browns2",
	"ILoveCowboys1::I Love Cowboys::36&quot; x 48&quot;::Oil on Canvas::2007::0000::?::blues2",
	"YeeHaw1::Yee Haw::36&quot; x 48&quot;::Oil on Canvas::2007::0000::?::grays1",
	"SpiritOfSilkyAndLakota1::Spirit of Silky and Lakota::36&quot; x 48&quot;::Oil on Canvas::2007::0000::?::browns3",

	"Vulnerabull1::Vulnerabull::36&quot; x 48&quot;::Oil on Canvas::2007::0000::?::blues2",
	"MamasPride1::Mama&#146;s Pride::36&quot; x 48&quot;::Oil on Canvas::2007::0000::?::browns1",
	"RidingForUSA1::Riding for U.S.A.::36&quot; x 48&quot;::Oil on Canvas::2007::0000::?::browns2",
	"Determination1::Determination::36&quot; x 48&quot;::Oil on Canvas::2007::0000::?::blues2",
	"ThankYouGreatSpirit1::Thank You, Great Spirit::36&quot; x 48&quot;::Oil on Canvas::2007::0000::?::browns1",

	"NavajoBoy1::Navajo Boy::36&quot; x 48&quot;::Oil on Canvas::2007::0000::?::browns3",
	"MotherAndChild1::Mother and Child::36&quot; x 48&quot;::Oil on Canvas::2007::0000::?::grays3",
	"Palomino2::Palomino #2::36&quot; x 48&quot;::Oil on Canvas::2007::0000::?::blues2",
	"LikeTheWind1::Like the Wind::36&quot; x 48&quot;::Oil on Canvas::2007::0000::?::browns2",
	"EagleSpirit1::Eagle Spirit::36&quot; x 48&quot;::Oil on Canvas::2007::0000::?::blues1",

	"MarilynMonroe1::Marilyn Monroe::48&quot; x 60&quot;::Oil on Canvas::2008::0000::?::browns3",
	"ElizabethTaylor1::Elizabeth Taylor::36&quot; x 48&quot;::Oil on Canvas::2008::0000::?::browns2",
	"SophiaLoren1::Sophia Loren::36&quot; x 48&quot;::Oil on Canvas::2008::0000::?::browns1",
	"GraceKelly1::Grace Kelly::36&quot; x 48&quot;::Oil on Canvas::2008::0000::?::browns3",

	"CaryGrant1::Cary Grant::36&quot; x 48&quot;::Oil on Canvas::2008::0000::?::browns1",
	"ClarkGable1::Clark Gable::36&quot; x 48&quot;::Oil on Canvas::2008::0000::?::browns2",
	"ErrolFlynn1::Errol Flynn::36&quot; x 48&quot;::Oil on Canvas::2008::0000::?::browns1",
	"HumphreyBogart1::Humphrey Bogart::36&quot; x 48&quot;::Oil on Canvas::2008::0000::?::browns2",
	"JohnWayne1::John Wayne::36&quot; x 48&quot;::Oil on Canvas::2008::0000::?::browns1",


  // master ID :: title :: size :: medium :: date :: price :: status :: frame style

	"");



// 1/27/07 - Reset Pricing

  var mRec, mIdent, mTitle, mSize, mMedium, mDate, mPrice, mStatus, mFrame ;
  for (mx = 0 ; mx < masterList.length ; mx++)
    {
      if (masterList[mx].indexOf("::") == -1) { continue };
      mRec		= masterList[mx].split("::");
      mIdent		= mRec[0];
      mTitle		= mRec[1];
      mSize		= mRec[2];
      mMedium		= mRec[3];
      mDate		= mRec[4];
      mPrice		= "0000";
      mStatus		= mRec[6];
      mFrame		= mRec[7];
      masterList[mx]	= mIdent	+ "::"
			+ mTitle	+ "::"
			+ mSize		+ "::"
			+ mMedium	+ "::"
			+ mDate		+ "::"
			+ mPrice	+ "::"
			+ mStatus	+ "::"
			+ mFrame	;
    }

// 1/27/07 - End




frameStyle = new Array(

  // Format:	style ident :: border :: cellspacing :: cellpadding :: 
  //		background image :: bgColor :: borderColorLight :: borderColorDark

	"default::5::0::15::none::gray::silver::dimgray"			,
	"browns1::5::0::15::weave1a.jpg::tan::gold::brown"			,
	"browns2::5::0::15::weave1b.jpg::brown::goldenrod::maroon"		,
	"browns3::5::0::15::weave1c.jpg::maroon::brown::#662222"		,
	"blues1::5::0::15::weave2a.jpg::lightblue::skyblue::teal"		,
	"blues2::5::0::15::weave2b.jpg::deepskyblue::cornflowerblue::navy"	,
	"blues3::5::0::15::weave2c.jpg::teal::#3333ff::midnightblue"		,
	"purples1::5::0::15::weave3a.jpg::orchid::plum::darkviolet"		,
	"purples2::5::0::15::weave3b.jpg::plum::darkviolet::#480066"		,
	"purples3::5::0::15::weave3c.jpg::darkviolet::purple::indigo"		,
	"greens1::5::0::15::weave4a.jpg::green::lightgreen::darkgreen"		,
	"greens2::5::0::15::weave4b.jpg::teal::#009900::#006600"		,
	"greens3::5::0::15::weave4c.jpg::darkgreen::forestgreen::#003300"	,
	"grays1::5::0::15::weave5a.jpg::gray::silver::dimgray"			,
	"grays2::5::0::15::weave5b.jpg::darkgray::gray::#333333"		,
	"grays3::5::0::15::weave5c.jpg::dimgray::darkgray::#181818"		,

	"");



var galName_visionary	= "Visionary Art";
var galName_horses	= "Horses";
var galName_native	= "Native American";
var galName_working	= "Work-In-Progress";
var galName_totems	= "Birth Totems";
var galName_portraits	= "Portraits";
var galName_western	= "Western";
var galName_life	= "Life Forms";
var galName_exposure	= "Global Exposure"; 


galleryList = new Array(

  // Format:
  // gallery ID :: master ID :: note (optional note or comment can be here - would replace the
  //				"click above" text under thumbnail)

	"visionary::Acceptance1::?",
	"visionary::PersonalEmpower1::?",
	"visionary::PersonalEmpower2::?",
	"visionary::SelfLove1::?",
	"visionary::Visions1::?",
	"visionary::Rebirth1::?",
	"visionary::GoldenAngel1::?",
	"visionary::AngelOfMercy1::?",
	"visionary::AngelWithDove1::?",
	"visionary::DreamOfHorses1::?",

	"horses::GhostRider1::?",
	"horses::Lipizzaner1::?",
	"horses::Lipizzaner2::?",
	"horses::PersonalEmpower1::?",
	"horses::PersonalEmpower2::?",
	"horses::Palomino1::?",
	"horses::TimeToRide1::?",
	"horses::Palominos3::?",
	"horses::DreamOfHorses1::?",
	"horses::BuffaloBrave1::?",
	"horses::VanishingWarrior1::?",
	"horses::WildFire1::?",
	"horses::ChiefHoleDay1::?",
	"horses::ReturnWarrior1::?",
	"horses::Untitled1::?",
	"horses::FreedomInTheDusk1::?",
	"horses::Palomino2::?",
	"horses::Spirit1::?",

	"native::ApacheBoy1::?",
	"native::FantasyBrave1::?",
	"native::GhostRider1::?",
	"native::LittleEagle1::?",
	"native::SpiritGuide1::?",
	"native::LookToTradition1::?",
	"native::BuffaloBrave1::?",
	"native::VanishingWarrior1::?",
	"native::ShotInHand1::?",
	"native::Chief1::?",
	"native::ChiefHoleDay1::?",
	"native::ReturnWarrior1::?",
	"native::Untitled1::?",
	"native::EagleScout1::?",
	"native::GentleWarrior1::?",
	"native::BoyScout1::?",
	"native::SpiritOfSilkyAndLakota1::?",
	"native::ThankYouGreatSpirit1::?",
	"native::NavajoBoy1::?",
	"native::MotherAndChild1::?",
	"native::EagleSpirit1::?",
	"native::Untitled2::?",
	"native::WhiteBuffalo1::?",

	"portraits::MarilynMonroe1::?",
	"portraits::CaryGrant1::?",
	"portraits::ClarkGable1::?",
	"portraits::GraceKelly1::?",
	"portraits::ErrolFlynn1::?",
	"portraits::ElizabethTaylor1::?",
	"portraits::SophiaLoren1::?",
	"portraits::HumphreyBogart1::?",
	"portraits::JohnWayne1::?",
	"portraits::ApacheBoy1::?",
	"portraits::Geoffrey1::?",
	"portraits::NewBoots1::?",
	"portraits::LittleEagle1::?",
	"portraits::LookToTradition1::?",
	"portraits::LittleAngel1::?",
	"portraits::Rebirth1::?",
	"portraits::ShotInHand1::?",
	"portraits::MarleneDietrich1::?",
	"portraits::SamuraiWarrior1::?",
	"portraits::GreatGrandfather1::?",
	"portraits::Chief1::?",
	"portraits::Nude1::?",

	"totems::TotemOtter1::Otter: January 20 - February 18",
	"totems::TotemWolf1::Wolf: February 19 - March 20",
	"totems::TotemFalcon1::Falcon: March 21 - April 19",
	"totems::TotemBeaver1::Beaver: April 20 - May 20",
	"totems::TotemDeer1::Deer: May 21 - June 20",
	"totems::TotemWoodpecker1::Woodpecker: June 21 - July 21",
	"totems::TotemSalmon1::Salmon: July 22 - August 21",
	"totems::TotemBrownBear1::Brown Bear: August 22 - September 21",
	"totems::TotemCrow1::Crow: September 22 - October 22",
	"totems::TotemSnake1::Snake: October 23 - November 22",
	"totems::TotemOwl1::Owl: November 23 - December 21",
	"totems::TotemGoose1::Goose: December 22 - January 19",

	"western::Chaps1::?",
	"western::NewBoots1::?",
	"western::BullRider1::?",
	"western::ILoveCowboys1::?",
	"western::YeeHaw1::?",
	"western::Vulnerabull1::?",
	"western::MamasPride1::?",
	"western::RidingForUSA1::?",
	"western::Determination1::?",
	"western::LikeTheWind1::?",
	"western::JohnWayne1::?",

	"life::Liberty1::?",
	"life::Manatees1::?",
	"life::Mermaid1::?",
	"life::TheKing1::?",
	"life::Nude1::?",

	"working::Palominos3::?",
	"working::TogetherEternity1::?",
	"working::TogetherEternity2::?",
	"working::PassionateWoman1::?",
	"working::Untitled2::?",
	"working::WhiteBuffalo1::?",
	//"working::FireRiders1::?",

	"exposure::EagleScout1::?",
	"exposure::GentleWarrior1::?",
	"exposure::BoyScout1::?",
	"exposure::FreedomInTheDusk1::?",
	"exposure::ILoveCowboys1::?",
	"exposure::YeeHaw1::?",
	"exposure::SpiritOfSilkyAndLakota1::?",
	"exposure::Vulnerabull1::?",
	"exposure::MamasPride1::?",
	"exposure::RidingForUSA1::?",
	"exposure::Determination1::?",
	"exposure::ThankYouGreatSpirit1::?",
	"exposure::NavajoBoy1::?",
	"exposure::MotherAndChild1::?",
	"exposure::Palomino2::?",
	"exposure::Spirit1::?",
	"exposure::LikeTheWind1::?",
	"exposure::EagleSpirit1::?",
	"exposure::MarilynMonroe1::?",
	"exposure::ErrolFlynn1::?",
	"exposure::ElizabethTaylor1::?",
	"exposure::SophiaLoren1::?",
	"exposure::CaryGrant1::?",
	"exposure::ClarkGable1::?",
	"exposure::GraceKelly1::?",
	"exposure::HumphreyBogart1::?",
	"exposure::JohnWayne1::?",


	"");




var printPriceList	= new Array(

	// size :: medium :: price

	"4&#180; x 5&#180;::gicle&#233;::1500",
	"4&#180; x 4&#180;::gicle&#233;::1200",
	"3&#180; x 4&#180;::gicle&#233;::1000",
	"3&#180; x 3&#180;::gicle&#233;::900",
	"2&#180; x 4&#180;::gicle&#233;::800",
	"24&quot; x 30&quot;::gicle&#233;::500",

	"");


var printTotemMedium	= "image quality paper, unmounted";
var printTotemDesc	= "individually signed by artist";


printList = new Array(

  // Format:
  // ID :: size :: medium :: desc :: price

	"Acceptance1::"+findMasterRec("Acceptance1","Size")
		+"::gicle&#233;::signed/numbered limited edition::"
		+getPrintPrice("Acceptance1","gicle&#233;"),

	"ApacheBoy1::"+findMasterRec("ApacheBoy1","Size")
		+"::gicle&#233;::signed/numbered limited edition::"
		+getPrintPrice("ApacheBoy1","gicle&#233;"),

	"GhostRider1::"+findMasterRec("GhostRider1","Size")
		+"::gicle&#233;::signed/numbered limited edition::"
		+getPrintPrice("GhostRider1","gicle&#233;"),

	"Lipizzaner2::"+findMasterRec("Lipizzaner2","Size")
		+"::gicle&#233;::signed/numbered limited edition::"
		+getPrintPrice("Lipizzaner2","gicle&#233;"),

	"LittleEagle1::"+findMasterRec("LittleEagle1","Size")
		+"::gicle&#233;::signed/numbered limited edition::"
		+getPrintPrice("LittleEagle1","gicle&#233;"),

	"PersonalEmpower1::"+findMasterRec("PersonalEmpower1","Size")
		+"::gicle&#233;::signed/numbered limited edition::"
		+getPrintPrice("PersonalEmpower1","gicle&#233;"),

	"SpiritGuide1::"+findMasterRec("SpiritGuide1","Size")
		+"::gicle&#233;::signed/numbered limited edition::"
		+getPrintPrice("SpiritGuide1","gicle&#233;"),

	"Visions1::"+findMasterRec("Visions1","Size")
		+"::gicle&#233;::signed/numbered limited edition::"
		+getPrintPrice("Visions1","gicle&#233;"),

	"TotemOtter1::&nbsp;8&quot; x 10&quot;::"+printTotemMedium+"::"+printTotemDesc+"::50",
	"TotemOtter1::11&quot; x 14&quot;::"+printTotemMedium+"::"+printTotemDesc+"::75",
	"TotemOtter1::18&quot; x 24&quot;::"+printTotemMedium+"::"+printTotemDesc+"::125",

	"TotemWolf1::&nbsp;8&quot; x 10&quot;::"+printTotemMedium+"::"+printTotemDesc+"::50",
	"TotemWolf1::11&quot; x 14&quot;::"+printTotemMedium+"::"+printTotemDesc+"::75",
	"TotemWolf1::18&quot; x 24&quot;::"+printTotemMedium+"::"+printTotemDesc+"::125",

	"TotemFalcon1::&nbsp;8&quot; x 10&quot;::"+printTotemMedium+"::"+printTotemDesc+"::50",
	"TotemFalcon1::11&quot; x 14&quot;::"+printTotemMedium+"::"+printTotemDesc+"::75",
	"TotemFalcon1::18&quot; x 24&quot;::"+printTotemMedium+"::"+printTotemDesc+"::125",

	"TotemBeaver1::&nbsp;8&quot; x 10&quot;::"+printTotemMedium+"::"+printTotemDesc+"::50",
	"TotemBeaver1::11&quot; x 14&quot;::"+printTotemMedium+"::"+printTotemDesc+"::75",
	"TotemBeaver1::18&quot; x 24&quot;::"+printTotemMedium+"::"+printTotemDesc+"::125",

	"TotemDeer1::&nbsp;8&quot; x 10&quot;::"+printTotemMedium+"::"+printTotemDesc+"::50",
	"TotemDeer1::11&quot; x 14&quot;::"+printTotemMedium+"::"+printTotemDesc+"::75",
	"TotemDeer1::18&quot; x 24&quot;::"+printTotemMedium+"::"+printTotemDesc+"::125",

	"TotemWoodpecker1::&nbsp;8&quot; x 10&quot;::"+printTotemMedium+"::"+printTotemDesc+"::50",
	"TotemWoodpecker1::11&quot; x 14&quot;::"+printTotemMedium+"::"+printTotemDesc+"::75",
	"TotemWoodpecker1::18&quot; x 24&quot;::"+printTotemMedium+"::"+printTotemDesc+"::125",

	"TotemSalmon1::&nbsp;8&quot; x 10&quot;::"+printTotemMedium+"::"+printTotemDesc+"::50",
	"TotemSalmon1::11&quot; x 14&quot;::"+printTotemMedium+"::"+printTotemDesc+"::75",
	"TotemSalmon1::18&quot; x 24&quot;::"+printTotemMedium+"::"+printTotemDesc+"::125",

	"TotemBrownBear1::&nbsp;8&quot; x 10&quot;::"+printTotemMedium+"::"+printTotemDesc+"::50",
	"TotemBrownBear1::11&quot; x 14&quot;::"+printTotemMedium+"::"+printTotemDesc+"::75",
	"TotemBrownBear1::18&quot; x 24&quot;::"+printTotemMedium+"::"+printTotemDesc+"::125",

	"TotemCrow1::&nbsp;8&quot; x 10&quot;::"+printTotemMedium+"::"+printTotemDesc+"::50",
	"TotemCrow1::11&quot; x 14&quot;::"+printTotemMedium+"::"+printTotemDesc+"::75",
	"TotemCrow1::18&quot; x 24&quot;::"+printTotemMedium+"::"+printTotemDesc+"::125",

	"TotemSnake1::&nbsp;8&quot; x 10&quot;::"+printTotemMedium+"::"+printTotemDesc+"::50",
	"TotemSnake1::11&quot; x 14&quot;::"+printTotemMedium+"::"+printTotemDesc+"::75",
	"TotemSnake1::18&quot; x 24&quot;::"+printTotemMedium+"::"+printTotemDesc+"::125",

	"TotemOwl1::&nbsp;8&quot; x 10&quot;::"+printTotemMedium+"::"+printTotemDesc+"::50",
	"TotemOwl1::11&quot; x 14&quot;::"+printTotemMedium+"::"+printTotemDesc+"::75",
	"TotemOwl1::18&quot; x 24&quot;::"+printTotemMedium+"::"+printTotemDesc+"::125",

	"TotemGoose1::&nbsp;8&quot; x 10&quot;::"+printTotemMedium+"::"+printTotemDesc+"::50",
	"TotemGoose1::11&quot; x 14&quot;::"+printTotemMedium+"::"+printTotemDesc+"::75",
	"TotemGoose1::18&quot; x 24&quot;::"+printTotemMedium+"::"+printTotemDesc+"::125",


	"");




// Special characters:

	specChars = new Array(

		"&amp;::&",
		"&nbsp;:: ",
		"&quot;::\"",
		"&#145;::'",
		"&#146;::'",
		"&#147;::\"",
		"&#148;::\"",
		"&#150;::-",
		"&#151;::--",
		"&#177;::+/-",
		"&#180;::'",
		"&#188;::.25",
		"&#189;::.5",
		"&#190;::.75",
		"&#224;::a",
		"&#225;::a",
		"&#232;::e",
		"&#233;::e",
		"<br>:: ",
		
		"");



// master descriptions:

	document.write("<script language='JavaScript' src='script/mdlist.js'></script>");




// Misc functions:


function replaceSpecChars(rsc)
  {
    for (scx = 0 ; scx < specChars.length ; scx++)
      {
	var scItem = specChars[scx].split("::") ;
	while (rsc.indexOf(scItem[0]) != -1)
	  {
	    var rsc = rsc.substring(0,rsc.indexOf(scItem[0])) + scItem[1]
		+ rsc.substring(rsc.indexOf(scItem[0])+scItem[0].length,rsc.length)
	  }
      }
    return rsc
  }


function getPrintPrice(gppIdent,gppMedium)
  {
    var gppSize		= findMasterRec(gppIdent,"Size");
    var gppPrice	= "000.00";
    if (gppSize.length > 0)
      {
	for (gpx = 0 ; gpx < printPriceList.length ; gpx++)
	  {
	    if (printPriceList[gpx].length < 1) { continue };
	    var pplItem = printPriceList[gpx].split("::");
	    if ((pplItem[0] != gppSize) || (pplItem[1] != gppMedium)) { continue };
	    gppPrice = pplItem[2];
	    break
	  }
      }
    return gppPrice
  }


function findMasterRec(fmrKey,fmrReturnField)
  {
    fmrIdent	= "";
    fmrTitle	= "";
    fmrSize	= "";
    fmrMedium	= "";
    fmrDate	= "";
    fmrPrice	= "";
    fmrStatus	= "";
    fmrFrame	= "";
    for (fmx = 0 ; fmx < masterList.length ; fmx++)
      {
	if (masterList[fmx].indexOf("::") == -1) { continue };
	var fmrItem	= masterList[fmx].split("::");
	if (fmrItem[0] != fmrKey) { continue };
	fmrIdent	= fmrItem[0];
	fmrTitle	= fmrItem[1];
	fmrSize		= fmrItem[2];
	fmrMedium	= fmrItem[3];
	fmrDate		= fmrItem[4];
	fmrPrice	= fmrItem[5];
	fmrStatus	= fmrItem[6];
	fmrFrame	= fmrItem[7];
	break
      }
    if (!fmrReturnField) { return "" } else { return eval("fmr"+fmrReturnField) }
  }


function getMasterDesc(gmdIdent)
  {
    var gmdText	= "<div align=center><font size=2 color=cyan face='verdana,tahoma,arial'>"
		+ "<nobr><b><font color=red>&#149;</font> "
		+ "<span style='background-color:indigo'>"
			+ "&nbsp;DESCRIPTION NOT AVAILABLE&nbsp;"
		+ "</span> <font color=red>&#149;</font></b></nobr></font></div>";
    if ((gmdIdent) && (gmdIdent.length > 0))
      {
	var gmdIndex	= gmdIdent.charAt(0).toUpperCase();
	var mdList	= eval("mdList"+gmdIndex);
	for (mdx = 0 ; mdx < mdList.length ; mdx++)
	  {
	    if (mdList[mdx].indexOf("::") == -1) { continue };
	    if (mdList[mdx].split("::")[0] == gmdIdent)
	      {
		gmdText = mdList[mdx].split("::")[1];
		break
	      }
	  }
      }
    return gmdText
  }


function showGallery()
  {
    runGallerySort();
    returnGallerySort();
    if (masterSortCount > 0)
      {
	if ((masterReleaseCount==masterSortCount) && (masterReturnCount==masterSortCount))
	  {
		document.write("<p><div align=center>"
		+ "<nobr><font size=1 color=indigo face='verdana,tahoma,arial'>"
		+ "Master Records (listed alphabetically by title):&nbsp; "
		+ masterSortCount + "</font></nobr></div>")
	  } else
	  {
		document.write("<div align=center>"
		+ "<nobr><font size=2 color=maroon face='verdana,tahoma,arial'>"
		  + "Record Access Discrepancy:"
			+ " &nbsp; &nbsp; &nbsp; Master Records: "	+ masterSortCount
			+ " &nbsp; &nbsp; &nbsp; Records Released: "	+ masterReleaseCount
			+ " &nbsp; &nbsp; &nbsp; Records Returned: "	+ masterReturnCount 
		+ "</font></nobr></div>")
	  }
      }
  }

function runGallerySort()
  {
    var currGAL	= currDOC.toLowerCase();
    var cg1	= currGAL.lastIndexOf("/art_");
    var cg2	= currGAL.lastIndexOf(".html");

    if ((cg1 == -1) || (cg2 == -1) || (cg2 != (currGAL.length-5)))
      { 
	document.write("<font size=5 color=magenta face='arial,tahoma,verdana'><b>&quot;"
		+ currGAL + "&quot;<br>is not a valid gallery page</b></font>");
	currGAL = ""
      } else
      {
	currGAL = currGAL.substring(cg1+5,cg2);

	masterSortArray		= new Array();
	masterSortCount		= 0;
	masterReleaseCount	= 0;
	masterReturnCount	= 0;

	for (gx = 0 ; gx < galleryList.length ; gx++)
	  {
	    if (galleryList[gx].indexOf("::") == -1) { continue};
	    var gItem	= galleryList[gx].split("::");
	    var gName	= gItem[0];
	    if (gName.toLowerCase() != currGAL) { continue };
	    var gIdent	= gItem[1];
	    var gNote	= gItem[2];

	    var mIdent	= " ";
	    var mTitle	= " ";
	    var mSize	= " ";
	    var mMedium	= " ";
	    var mDate	= " ";
	    var mPrice	= " ";
	    var mStatus	= " ";
	    var mFrame	= " ";

	    for (mx = 0 ; mx < masterList.length ; mx++)
	      {
		if (masterList[mx].indexOf("::") == -1) { continue };
		var mItem	= masterList[mx].split("::");
		var mIdent	= mItem[0];
		if (mIdent != gIdent) { continue };
		var mTitle	= mItem[1];
		var mSize	= mItem[2];
		var mMedium	= mItem[3];
		var mDate	= mItem[4];
		var mPrice	= mItem[5];
		var mStatus	= mItem[6];
		var mFrame	= mItem[7];
		break
	      }

	    var masterRecord	= mTitle	+ "::"
				+ gIdent	+ "::"
				+ mSize		+ "::"
				+ mMedium	+ "::"
				+ mDate		+ "::"
				+ mPrice	+ "::"
				+ mStatus	+ "::"
				+ mFrame	+ "::"
				+ gName		+ "::"
				+ gNote		;

	    releaseMasterSort(masterRecord);
	    masterSortCount++
	  }
      }
  }

function returnGallerySort()
  {
    var sFlag	= false;

    document.write("<table border=0 cellspacing=0 cellpadding=5>");

    for (mx = 0 ; mx < masterSortArray.length ; mx++)
      {
	if (masterSortArray[mx].indexOf("::") == -1) { continue };
	var sItem	= masterSortArray[mx].split("::");
	var sTitle	= sItem[0];
	var sIdent	= sItem[1];
	var sSize	= sItem[2];
	var sMedium	= sItem[3];
	var sDate	= sItem[4];
	var sPrice	= sItem[5];
	var sStatus	= sItem[6];
	var sFrame	= sItem[7];
	var sGalName	= sItem[8];
	var sGalNote	= sItem[9];
	var sSrcT	= "images/art/thumb/"+sIdent+".jpg";
	var sAlt	= "click HERE for a larger image of \""+sTitle+"\"";

	if (sTitle.length > 1) { sFlag = true };

	document.write("<tr align=center valign=top>");

	document.write("<td>"+getFrameStyle(sFrame)
	    + "<tr align=center valign=middle>"
	      + "<td><a href='showfull.html?FullIdent="+sIdent+"' "
		+ "title='"+sAlt+"' target='_blank'>"
		+ "<img src='"+sSrcT+"' alt='"+sAlt+"' border="+fsImgBorder+" "
		+ "style='border-color:linen' "
		+ "onMouseDown='this.style.borderColor=\"pink\"' "
		+ "onMouseOut='this.style.borderColor=\"linen\"'></a></td>"
	    + "</tr></table>");

	if (sGalNote.length > 1)
	  {
	    document.write("<font size=1 color=pink face='arial,tahoma,arial'>"
		+ sGalNote+"</font><br>"
		+ "<font size=1 color=dimgray face='verdana,tahoma,arial'>"
		+ "<nobr><span title='click thumbnail above to see a larger image for \""
		+ sTitle + "\"'>(click above for larger image)</span></nobr></font><br>")
	  } else
	  {
	    document.write("<font size=1 color=dimgray face='verdana,tahoma,arial'>"
		+ "<nobr><span title='click thumbnail above to see a larger image for \""
		+ sTitle + "\"'>click above for larger image</span></nobr></font><br>")
	  }

	document.write("</td><td><div align=center>"
		+ "<font size=5 color=deepskyblue face='Comic Sans MS,verdana,tahoma,arial'>"
		+ "<b>&#147;"+sTitle+"&#148;</b></font><br>"
		+ "<font size=2 color=cyan face='verdana,tahoma,arial'>"
		+ "<nobr>"+sSize+", "+sMedium+", "+sDate+"</nobr></font></div><p>"

		+ "<div align=justify>"
		+ "<font size=1 color=silver face='verdana,tahoma,arial'>"
		+ getMasterDesc(sIdent)+"</font></div>");


	document.write("<div><table border=0 width=100% cellspacing=0 cellpadding=8 "
	  + "style='margin-top:5px; border:1px solid dimgray'>"
		+ "<tr valign=middle>"
		  + "<td width=33% nowrap>"
			+ "<font size=1 color=gold face='verdana,tahoma,arial'>");

	if ((!isNaN(sPrice)) && (Math.abs(sPrice) > 0))
	  { document.write("Price: $"+insertCommas(sPrice)+"<br>") };

	if ((sStatus.length > 1) && (sStatus.toLowerCase().indexOf("sold") != -1))
	  { 
	    document.write("<font color=teal>("+sStatus+")</font><br>")
	  } else
	  {
	    document.write("<a href='mailto:"+silkEmail
		+ "?subject=Original Inquiry: &quot;"+sTitle+"&quot; ("
		+ currDOC.substring(currDOC.lastIndexOf("/")+1,currDOC.length)
		+ ")&cc="+webmasterEmail+"&body=Inquiry:  \""+sTitle+"\", "
		+ sSize+", "+sMedium+", "+sDate);

	    if ((!isNaN(sPrice)) && (Math.abs(sPrice) > 0)) 
	      { document.write(", $"+insertCommas(sPrice)+".") };

	    if (sStatus.length > 1) 
	      { document.write(" (Status: "+sStatus+") ") };

	    document.write("' title='Click to inquire via email "
		+ "about the original &quot;"+sTitle+"&quot;'><font color=deepskyblue>"
		+ "<b><span style='background-color:navy'>INQUIRE</span></b>"
		+ "</font></a><font color=teal> via email</font><br>")
	  }

	document.write("</font></td>");



// 1/27/07 - omit pricing & availability

    /*

	document.write("<td width=34% align=center nowrap>"
		+ "<a href='order.html#original_"+sIdent+"' target='_blank' "
		+ "title='Click to go to the Ordering Information page for the "
			+ "&quot;"+sTitle+"&quot; ORIGINAL'>"
		+ "<font size=1 color=deepskyblue face='arial,tahoma,verdana'>"
		+ "<b>CHECK AVAILABILITY<br>FOR THIS ORIGINAL</b></font></a></td>");

	document.write("<td width=33% align=right nowrap>"
		+ "<font size=1 face='verdana,tahoma,arial'>");

	var pFlag = false;

	for (px = 0 ; px < printList.length ; px++)
	  {
	    if (printList[px].indexOf("::") == -1) { continue };
	    var pItem	= printList[px].split("::");
	    var pIdent	= pItem[0];
	    if (pIdent != sIdent) { continue };
	    pFlag	= true;
	    break
	  }

	if (pFlag)
	  {
	    document.write("<a href='order.html#prints_"+sIdent+"' target='_blank' "
		+ "title='Click to go to the Ordering Information page for "
		+ "&quot;"+sTitle+"&quot; PRINTS'><font color=deepskyblue>"
		+ "PRINTS ARE<br>AVAILABLE</font></a>&nbsp;<br>")
	  } else
	  {
	    document.write("<font color=dimgray>"
		+ "Prints are not<br>yet available</font><br>")
	  }

	document.write("</font></td>");

    */

// 1/27/07 - End



	document.write("</tr></table></div></td></tr>");
	document.write("<tr><td colspan=2><hr size=1 color=indigo></td></tr>");

	masterReturnCount++
      }

    document.write("</table>");

    if ((masterSortArray.length < 1) || (!sFlag))
      {
	document.write("<p><table bgColor=lightcyan border=1 cellspacing=0 cellpadding=25 "
	  + "borderColorDark=blue borderColorLight=cyan>"
	    + "<tr align=center valign=middle><td align=center valign=middle nowrap>"
		+ "<img src='images/animated/GeekType.gif' " 
		+ "alt=\"We're Workin' on it!\" border=0 width=107 height=98><br>"
		+ "<font size=2 color=navy face='Comic Sans MS,verdana,tahoma,arial'>"
		+ "<b>We&#146;re workin&#146; on it<i>!</i></b>&nbsp;<br></font></td>"
	    + "</tr></table>")
      }
  }


function getFrameStyle(fsIdent)
  {
	if ((!fsIdent) || (fsIdent == null) || (fsIdent == "undefined") || (fsIdent.length <= 1))
	  { fsIdent = "default" };
	for (fsx = 0 ; fsx < frameStyle.length ; fsx++)
      	  {
	    if (frameStyle[fsx].indexOf("::") == -1) { continue };
	    var fsRec = frameStyle[fsx].split("::");
	    if (fsRec[0] == fsIdent) { break }
	  }
	fsBorder	= fsRec[1];
	fsCellSpacing	= fsRec[2];
	fsCellPadding	= fsRec[3];
	fsBackground	= fsRec[4];
	fsBgColor	= fsRec[5];
	fsBorderLight	= fsRec[6];
	fsBorderDark	= fsRec[7];

	var fsLoc	= ""+document.location;

	if ((fsLoc.indexOf("/showfull.html?") != -1) && (screenW > screenWdefault))
	  {
	    fsBorder		= ""+Math.abs(fsBorder)*2;
	    fsCellSpacing	= ""+Math.abs(fsCellSpacing)*2;
	    fsCellPadding	= ""+Math.abs(fsCellPadding)*2;
	    fsImgBorder		= ""+Math.round((Math.abs(fsCellPadding)/3)*2);
	  } else
	  {
	    fsImgBorder		= ""+Math.floor(Math.abs(fsCellPadding)/2);
	  }

	var fsTableOpen	= (fsBackground.indexOf(".") != -1)
		? "<table background='images/"+fsBackground+"'" : "<table" ;

	fsTableOpen    += " border="		+ fsBorder
			+ " cellspacing="	+ fsCellSpacing
			+ " cellpadding="	+ fsCellPadding
			+ " bgColor="		+ fsBgColor
			+ " borderColorLight="	+ fsBorderLight
			+ " borderColorDark="	+ fsBorderDark
			+ ">";

	return fsTableOpen
  }

function getRandomFrame(rfGroups)
  {
	var rfx = 0;
	while (rfx < 1)
	  { 
	    rfx = Math.round(Math.random()*(frameStyle.length-1));
	    if (frameStyle[rfx].indexOf("::") == -1)
	      {
		rfx = 0;
		continue
	      }
	    rfRec		= frameStyle[rfx].split("::");

	    if ((rfGroups) && (rfGroups.length > 0))
	      {
		rfIdent		= rfRec[0];
		rfString	= ""+rfGroups;
		rfFlag		= 0;
		if (rfString.charAt(rfString.length-1) != ",") { rfString = rfString+"," };
		while (rfString.length > 0)
	    	  {
		    rfPrefix	= rfString.substring(0,rfString.indexOf(","));
		    rfString	= rfString.substring(rfString.indexOf(",")+1,rfString.length);
		    if (rfIdent.indexOf(rfPrefix) == 0)
		      {
			rfFlag = 1;
			rfString = ""
		      }
		  }
		if (!rfFlag)
		  {
		    rfx = 0;
		    continue
		  }
	      }

	    rfBorder		= rfRec[1];
	    rfCellSpacing	= rfRec[2];
	    rfCellPadding	= rfRec[3];
	    rfBackground	= rfRec[4];
	    rfBgColor		= rfRec[5];
	    rfBorderLight	= rfRec[6];
	    rfBorderDark	= rfRec[7];
	    break
	  }

	var rfTableOpen	= (rfBackground.indexOf(".") != -1)
			? "<table background='images/"+rfBackground+"'" : "<table" ;

	rfTableOpen    += " border="		+ rfBorder
			+ " cellspacing="	+ rfCellSpacing
			+ " cellpadding="	+ rfCellPadding
			+ " bgColor="		+ rfBgColor
			+ " borderColorLight="	+ rfBorderLight
			+ " borderColorDark="	+ rfBorderDark
			+ ">";

	return rfTableOpen
  }

//-->

