
// actual page file name
var fileName = "bogorodsky-motion-toys.htm";
var pageId = "Bogorodsky Toys";



var crLf = '&nbsp;<br>';
var sp = '&nbsp;';


/*==================Show Pic Code=============================*/
// subdir prefix for pics path
var picDir = "images/Bogorodsky_Toys/";

// picture object prototype
function myPic(picFileName, picCaption) {

	this.path = picDir + picFileName;
	this.text = picCaption;
}

// an array to store picture objects
var pics = new Array();

// function for adding pics to array
function addPic(fName, picText) {
	pics[pics.length] = new myPic(fName, picText);
}



// picture frame width and color
var picFrameW = 4; var picFrameC = "#eeeeee";

// picture frame border width and color
var picBrdW = 1; var picBrdC = "#004080";



// picture database
addPic("RB821a.gif", "Pecking Chickens");



var introductionStr = "<div class = 'contents' >" + sp + sp + sp + sp + sp + 
      " These toys represent a genuine Bogorodskoye wood carving from the heart of Russia."  + 
        "Sculpted by hand with a dash of artistic magic, your woodcarving comes from a rich tradition dating back to the 15th century." + 
	" The small village of Bogorodskoye has long been the most celebrated center of wood carving in Russia where the very first toy was made over 300 years ago. " + crLf +
        sp + sp + sp + sp + sp + "Located outside of Moscow near the historical Holy Trinity Monastery, the art center of Bogorodskoye " + 
	"has never lacked a market;through the centuries, villagers have sold wooden toys to pilgrims trekking to the monastery. " + 
	"Humorous village characters and animals of all kinds have been popular subjects of the carvers. " +
	"Many of the toys have movable parts and depict bears playing soccer, chickens pecking, etc. and come alive and smile when you swing them in a circular motion. " +
 	 crLf + sp + sp + sp + sp + sp + "The tools used are simple: an ax, chisels, and a sharp knife are all an artist needs to turn a block of aged linden wood into a majestic elk. Wood stains are used to bring out highlights." + 
	" A local technical school devoted to the carving guarantees the continuation of the Bogorodskoye tradition. Graduates apprentice themselves to the master carvers and, through much experience, learn to produce the intricate woodcarvings that bring the village worldwide fame." + crLf +

      "</div>";

var pageIds = ["Russian Motion Toys (Bogorodsky Toys)","Toys Playing Music Instruments","Toys Playing Sports","At Work","Food Related","Toys 'Snifting Style'","Miscellaneous Bears","Pecking Birds","Miscellaneous Toys"]; // used for menus
var pageIdUnderHeaderStrs = "Toys are Hand-Carved and traditionally not painted"; // used for menus

function PghdStr(pgN) {

		return pageIds[pgN];

}
function PguhdStr(pgN) {


	if (pgN != 0){
		return  pageIdUnderHeaderStrs;
	}else{
			return  showPic(0)+ crLf + introductionStr ;
		}

}

function PgImgDirStr(pgN) {

		return "Bogorodsky_Toys";

}

function imageH(pgN) {
	
		return "75";

}



var hdStr = PghdStr(parent.pageId);
var uhdStr = PguhdStr(parent.pageId);
var category = PghdStr(parent.pageId);
var pageId = PghdStr(parent.pageId);
var imgDir = PgImgDirStr(parent.pageId)
var imgw = "100";
var imgh = imageH(parent.pageId);



// picture displaying template
function showPic(picNum) {
	var captStyle = "txt"; // defined in *.css
	var picNum1 = picNum + 1;
	var s = '<table border="0" cellpadding="' + picBrdW + '" cellspacing="0">';
	s += '<tr><td bgcolor="' + picBrdC + '">';
	s += '<table border="0" cellpadding="' + picFrameW + '" cellspacing="0">';
	s += '<tr><td bgcolor="' + picFrameC + '" align="center">';
	s += '<a href="javascript:GoToPageName(7)">';
	s += '<img src="' + pics[picNum].path + '" border="0" alt="' + pics[picNum].text + '">';
	s += '</a><br><span class="' + captStyle + '">'  + pics[picNum].text + '</span>';
	s += '</td></tr></table></td></tr></table>';
	return s;
}

// menus
// format: item ID, menu text, menu URL, target
topMenuItems = [
	"Russian Motion Toys (Bogorodsky Toys)", "Main", "javascript:GoToPageName(0)", "",
	"Toys Playing Music Instruments", "Music", "javascript:GoToPageName(1)", "",
	"Toys Playing Sports", "Sports", "javascript:GoToPageName(2)", "",
	"At Work", "At Work", "javascript:GoToPageName(3)", "",
	"Food Related", "With Food", "javascript:GoToPageName(4)", "",
	"Toys 'Snifting Style'", "'Snifting Style'", "javascript:GoToPageName(5)", "",
	"Miscellaneous Bears", "Bears", "javascript:GoToPageName(6)", "",
	"Pecking Birds", "Pecking Birds", "javascript:GoToPageName(7)", "",
	"Miscellaneous Toys", "Miscellaneous", "javascript:GoToPageName(8)", ""
];



if (parent.pageId==1){
// format: image,description,price,set
//Toys Playing Music Instruments database
iArray = [
'RB001',	'',	'15.00',	'Bear - Drummer, Rabbit - D',
'RB002',	'',	'15.00',	'Bear - Drummer',
'RB003',	'',	'15.00',	'Bear Playing Guitar & Sing',
'RB004',	'',	'15.00',	'Bear Playing Piano',
'RB005',	'',	'15.00',	'Rabbit - Drummer',
'RB006',	'',	'15.00',	'Bear Playing Piano, Rabbit',
'RB007',	'',	'15.00',	'Bear Orchestrate, Bird Sin',
'RB010',	'',	'15.00',	'Bear - Drummer',
'RB011',	'',	'15.00',	'Bear Playing Xylophone',
'RB012',	'',	'15.00',	'Bear & Rabbit Musicians',
'RB013',	'',	'15.00',	'Bear & Rabbit - Musicians',
'RB014',	'',	'15.00',	'Bear Ringing Bells',
'RB016',	'',	'15.00',	'Bear Plays Guitar, Rabbit ',
'RB017',	'',	'15.00',	'Rabbit - Drummer'
];
}else{
	if (parent.pageId==2){

//Toys Playing Sports database
iArray = [
'RB101',	'',	'15.00',	'Bear Playing Pool',
'RB102',	'',	'15.00',	'Bear with Weights',
'RB103',	'',	'15.00',	'Bears -Boxers',
'RB104',	'',	'15.00',	'Bear - Tourist',
'RB105',	'',	'15.00',	'Bear on Bicycle',
'RB106',	'',	'15.00',	'Bear Skiing',
'RB107',	'',	'15.00',	'Rabbit on a Boat',
'RB108',	'',	'15.00',	'Bears Playing Basketball',
'RB109',	'',	'15.00',	'Bears playing Chess',
'RB110',	'',	'15.00',	'Bear Fishing',
'RB111',	'',	'15.00',	'Bear Playing Basketball',
'RB112',	'',	'15.00',	'Bear on a Boat',
'RB113',	'',	'15.00',	'Bear Playing Softball',
'RB114',	'',	'15.00',	'Bear - Rafter'
//'RB115',	'',	'15.00',	'Bear - Skipper'
];
}else{
	if (parent.pageId==3){
//At Work database
iArray = [
'RB201',	'',	'15.00',	'Rabbit with Ax',
'RB202',	'',	'15.00',	'Bear - Bricklayer',
'RB203',	'',	'15.00',	'Bear - Blacksmith',
'RB204',	'',	'15.00',	'Bear Working on a Computer'

];
}else{
	if (parent.pageId==4){
//Food Related database
iArray = [
'RB301',	'',	'15.00',	'Bear Making Pancakes',
'RB302',	'',	'15.00',	'Bear Drinking Bear with Fish',
'RB303',	'',	'15.00',	'Bear Drinking Tea from Samovar',
'RB304',	'',	'15.00',	'2 Rabbits Eating Soup',
'RB306',	'',	'15.00',	'Bear Eating Soup with Bread',
'RB307',	'',	'15.00',	'Bear Drinking Vodka with Kielbasa',
'RB308',	'',	'15.00',	'Bear Frying Mushrooms'

];
}else{
	if (parent.pageId==5){
//Toys 'Snifting Style' database
iArray = [
'RB401',	'',	'15.00',	'Bear with Bat, Man with Ax',
'RB402',	'',	'15.00',	'Bear with Ax, Man with Saw',
'RB403',	'',	'15.00',	'Bear with Ax, Man with Ax',
'RB404',	'',	'15.00',	'Bear and Man Pulling Fish',
'RB405',	'',	'15.00',	'Bear and Man with Saw',
'RB406',	'',	'15.00',	'Bear and Man with Hammers'
];
}else{
	if (parent.pageId==6){
//Miscellaneous Bears database
iArray = [
'RB801',	'',	'15.00',	'Bear - Artist',
'RB802',	'',	'15.00',	'Bear and Bee',
'RB803',	'',	'15.00',	'Bear Washing a Baby',
'RB804',	'',	'15.00',	'Bear Joggling',
'RB805',	'',	'15.00',	'Bear Washing Hands',
'RB806',	'',	'15.00',	'Bear Putting Shoes On',
'RB807',	'',	'15.00',	'Pulling Bear'
];

}else{
	if (parent.pageId==7){
//Pecking Birds database
iArray = [
'RB820',	'',	'15.00',	'4 Pecking Chickens and a Girl',
'RB821',	'',	'15.00',	'5 Pecking Chickens',
'RB822',	'',	'15.00',	'Pecking Chicken and a Girl',
'RB823',	'',	'15.00',	'2 Pecking Birds'
];
}else{
	if (parent.pageId==8){
//Miscellaneous Bear database
iArray = [
'RB901',	'',	'15.00',	'Donkey Playing Ball',
'RB902',	'',	'15.00',	'Rabbit Pulling Carrot',
'RB904',	'',	'15.00',	'Squirrel collecting Mushrooms',
'RB905',	'',	'15.00',	'Fox Knitting a Sock',
'RB906',	'',	'15.00',	'Two Birds On a Nest',
'RB907',	'',	'15.00',	'Rabbit Playing with Wheel',
'RB908',	'',	'15.00',	'Fox and "Kolobok"',
'RB909',	'',	'15.00',	'Mouse Knitting a Sock',
'RB910',	'',	'15.00',	'Rabbit Playing with Puppy',
'RB911',	'',	'15.00',	'Horseman',
'RB912',	'',	'15.00',	'Rabbit Eating Carrot',
'RB913',	'',	'15.00',	'Soldier - Drummer',
'RB914',	'',	'15.00',	'Fox and Crow with Cheese',
'RB915',	'',	'15.00',	'Bear Rising Russian Flag',
'RB916',	'',	'15.00',	'Boy - Acrobat',
'RB917',	'',	'15.00',	'Bear - Acrobat'

];
}else{
	if (parent.pageId==9){
//... database
iArray = [

];
}else{

iArray = [

];
}
	
}
}
}
}
}
}
}
}













