// actual page file name
var fileName = "lacquer-boxes.htm";
var pageId ="Lacquered Jewelry Boxes";


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 Birds");



 
var introductionStr = "<div class = 'contents' >" + sp +sp + sp + sp + sp + 
 		      "The lacquer miniatures on papier-mâché are genuine products of art crafted by masters " +
			"of world-famous Russian villages like Palekh, Fedoskino, Mstera, Kholui.  " +
			" Their hallmark is high culture, established technology and techniques, based on local icon painting "+
			"traditions which originated in the XVII - XVIII centuries."+ crLf +
 			"</div>	";	      


var pageIds = ["Lacquered Jewelry Boxes","Nature (Fedoskino)","Churches (Fedoskino)","Russian Fare Tale (Palekh)"]; // used for menus
var pageIdUnderHeaderStrs = [" "]; // used for menus

function PghdStr(pgN) {

		return pageIds[pgN];

}
function PguhdStr(pgN) {


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

}
function PgImgDirStr(pgN) {

		return "RLBox";
	
}

function imageH(pgN) {
	
		return "100";
}



// 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;
}
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);


// menus
// format: item ID, menu text, menu URL, target
topMenuItems = [
	"Lacquered Jewelry Boxes", "Main", "javascript:GoToPageName(0)", "",
	"Nature (Fedoskino)", "Nature (Fedoskino)", "javascript:GoToPageName(1)", "",
	"Churches (Fedoskino)", "Churches (Fedoskino)", "javascript:GoToPageName(2)", "",
	"Russian Fare Tale (Palekh)", "Russian Fare Tale (Palekh)", "javascript:GoToPageName(3)", ""
	
];



if (parent.pageId==1){
// format: image,description,price,set
//Nature (Fedoskino)  database
iArray = [
'RLB8001',	'3 1/2" 2 1/2"',	'80.00',	' ',
'RLB8003',	'2" x 3 1/4"',		'80.00',	' ',
'RLB8006',	'3" x 2 1/4"',		'80.00',	' ',
'RLB8007',	'2 1/4" x 2 3/4"',	'80.00',	' ',
'RLB8008',	'3 1/4" x 2 1/2"',	'80.00',	' ',
'RLB8009',	'3 1/4" x 2 1/2"',	'80.00',	' ',
'RLB8010',	'2" x 3 1/4"',		'80.00',	' ',
'RLB12001',	'3" X 3 1/2"',		'120.00',	' ',
'RLB15001',	'2 1/2" x 4 1/2"',	'150.00',	' ',
'RLB15002',	'4 1/2" x2 1/2"',	'150.00',	' ',
'RLB15003',	'2 1/2" x 4 1/2"',	'150.00',	' '
];
}else{
	if (parent.pageId==2){

//Churches (Fedoskino) database
iArray = [
'RLB6002',	'4 1/4" x 1 3/4"',	'60.00',	' ',
'RLB7001',	'3 1/2" x 1"',		'70.00',	' ',
'RLB7201',	'2 1/4" 1 1/2"',	'72.00',	' ',
'RLB8002',	'3 1/2" 2 1/2"',	'80.00',	' ',
'RLB8003',	'2" x 3 1/4"',		'80.00',	' ',
'RLB8004',	'2 1/2" 2 1/2"',	'80.00',	' ',
'RLB8005',	'3 3/4" x 2 1/2"',	'80.00',	' ',
'RLB8009',	'3 1/4" x 2 1/2"',	'80.00',	' '
];

}else{
	if (parent.pageId==3){
//Russian Fare Tale (Palekh) database
iArray = [
'RLB5001',	'2 3/4" x 2"',		'50.00',	' ',
'RLB5002',	'3 1/4" x 3 1/4"',	'50.00',	' ',
'RLB5003',	'3 1/4" x 3 1/4"',	'50.00',	' ',
'RLB5004',	'3 1/4" x 3 1/4"',	'50.00',	' ',
'RLB6001',	'3" x 2 1/4"',		'60.00',	' ',
'RLB6003',	'2 1/4" 2 1/4"',	'60.00',	' ',
'RLB6004',	'2 1/4" 2 1/4"',	'60.00',	' ',
'RLB6005',	'3" x 2 1/4"',		'60.00',	' ',
'RLB6006',	'2 1/4" x 3 3/4"',	'60.00',	' ',
'RLB6007',	'2 3/4" 2 1/2"',	'60.00',	' ',
'RLB6008',	'3" 2 1/4"',		'60.00',	' ',
'RLB6009',	'3" x 2 1/4"',		'60.00',	' ',
'RLB6010',	'2 3/4" 2 1/2"',	'60.00',	' ',
'RLB6011',	'2 1/4" 2 1/4"',	'60.00',	' ',
'RLB6012',	'3" x 2 1/4"',		'60.00',	' ',
'RLB6013',	'2 1/2" x 2 1/2"',	'60.00',	' ',
'RLB6014',	'3" x 2 1/4"',		'60.00',	' ',
'RLB6015',	'2 1/4" x 3"',		'60.00',	' ',
'RLB6016',	'2 1/4" 2 1/4"',	'60.00',	' ',
'RLB6017',	'3" x 2 1/4"',		'60.00',	' ',
'RLB6018',	'2 1/4" 2 1/4"',	'60.00',	' ',
'RLB6019',	'2 1/4" 2 1/4"',	'60.00',	' ',
'RLB6020',	'3" x 2 1/4"',		'60.00',	' ',
'RLB6021',	'3" x 2 1/4"',		'60.00',	' ',
'RLB6022',	'2 3/4" x 2 1/2"',	'60.00',	' '
];
}else{
	if (parent.pageId==4){
//... database
iArray = [

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

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

];

}else{
	if (parent.pageId==7){
//... database
iArray = [

];
}else{
iArray = [

];
}
	
}
}
}
}
}
}












