// actual page file name
var fileName = "pins-pendants-earrings.htm";
var pageId ="";


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 + " Hand-Painted flowers from the Russian village Zhostovo" +
" are world-famous and unique for their color and beauty. Using a special 'double brush' technique, "+
"the Artists in Zhostovo paint on a variety of objects, including metal dishes and trays. In old Russia, "+
"the Artists even decorated the inside of metal bells and towers in churches with their floral  decorations."+
" Now their lovely creations are enjoyed on a more personal level with items of papier-mâché jewelry. "+
"Each one, like the items here, is hand-painted with oil or water-color paint followed by several layers"+
 "of high-gloss lacquer."+
      "</div>";

var pageIds = ["Pins,Pendants,Earrings","Pins Large","Pins Small","Pendants","Earrings","Pins '5 Dolls'"]; // used for menus
var pageIdUnderHeaderStrs = ["Pins,Pendants,Earrings","Pins","Pins","Pendants","Earrings","Wooden Hand-Painted"]; // used for menus

function PghdStr(pgN) {
	return pageIds[pgN];
}
function PguhdStr(pgN) {
	if (pgN != 5){
		return "All " + pageIdUnderHeaderStrs[pgN] + " are hand-painted and signed by the Artist on a bottom.";
	}else{
	        if (pgN != 0){
		return  pageIdUnderHeaderStrs;
	        }else{
			return  showPic(0)+ crLf + introductionStr ;
		}
	}
}
function PguhdStr(pgN) {


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

}
function PgImgDirStr(pgN) {
	if (pgN == 1){
		return "RCPins/Large_Pins";
	}else{
		if (pgN == 5){
			return "RPins";
		}else{
			return "RCPins";
		}
	}
}

function imageH(pgN) {
	if (pgN == 5){
		return "63";
	}else{
		return "100";
	}
}


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 = [
	"Pins,Pendants,Earrings", "Main", "javascript:GoToPageName(0)", "",
	"Pins Large", "Pins Large", "javascript:GoToPageName(1)", "",
	"Pins Small", "Pins Small", "javascript:GoToPageName(2)", "",
	"Pendants", "Pendants", "javascript:GoToPageName(3)", "",
	"Earrings", "Earrings", "javascript:GoToPageName(4)", "",
	"Pins '5 Dolls'", "Pins '5 Dolls'", "javascript:GoToPageName(5)", ""
];


/*function topMenu() {
	// CSS classes td.topmenu and a.topmenu defined in ic.css
	var cellPad = '4';
	var menuStyle = 'navbar';
	var navCss = 'navbar';
	var bulPic = imgDir + 'px99cc99.gif';
	var bulSize = '4';
	var delim = '<td align="center">' + pic(bulPic, bulSize, bulSize, '') + '</td>';
	var s = '<table border="0" cellpadding="' + cellPad + '" cellspacing="0" align="center"><tr>' + delim;
	for (var i = 0; i < topMenuItems.length; i++) {
		var itemId = topMenuItems[i++];
		var itemName = topMenuItems[i++];
		var itemHref = topMenuItems[i++];
		var itemTarg = topMenuItems[i];
		var isCurrent = (itemId == pageId) ? 1 : 0;
		s += '<td' + cssAttr(menuStyle) + ' align="center">';
		s += (isCurrent) ? itemName : makeLink(itemHref, itemName, menuStyle, itemTarg);
		
		s += '</td>' + delim;
	}
	s += '</tr></table>';
	return s;
}*/
if (parent.pageId==1){
// format: image,description,price,set
//Pins Large database
iArray = [
'B2713', '1.62" x 2.37"','15.99','',
'BF01',  '1.62" x 2.37"','15.99','',
'BF01i', '1.62" x 2.37"','15.99','',
'BF02',     '2" x 2"',   '15.99','',
'BF02i',    '2" x 2"',   '15.99','',
'BF03',  '2.12" x 2.37"','15.99','',
'BF03i','2.12" x 2.37"', '15.99','',
'BF04','2" x 2.12"','15.99','',
'BF04i','2" x 2.12"','15.99','',
'BF05','2" x 1.62"','15.99','',
'BF05i','2" x 1.62"','15.99','',
'BF06','2" x 2"','15.99','',
'BF06i','2" x 2"','15.99','',
'BF07',  '2" x 2" ','15.99','',
'BF07i',  '2" x 2" ','15.99','',
'BF08', '1.62" x 2.37"','15.99','',
'BF08i',  '1.62" x 2.37"','15.99','',
'BF09', '2.62" x 1.87"','15.99','',
'BF09i',  '2.62" x 1.87"','15.99','',
'BF10', '2.25" x 2.25"','15.99','',
'BF10i',  '2.25" x2.25"','15.99','',
'BF1101',  '1.62" x 2.37"','15.99','',
'BF1102', '2" x 2"','15.99','',
'BF12',  '2.37" x 2"','15.99','',
'BF12i', '2.37" x 2"','15.99','',
'BF13',  '2.25" x 1.50"','15.99','',
'BF1401', '2.75" x 1.75"','15.99','',
'BF1402', '2.75" x 1.62"','15.99','',
'BF15','2.12" x 2.12"','15.99','',
'BF15i','2.12" x 2.12"','15.99','',
'BF16','2.27" x 2.37"','15.99','',
'BF17','2.62" x 1.75"','15.99','',
'BF18','2.37" x 1.75"','15.99','',
'BF18i','2.37" x 1.75"','15.99','',
'BF19','2.12" x 1.37"','15.99','',
'BF20','2.12" x 2"','15.99','',
'BF21','1.75" x 2.12"','15.99','',
'BF22','1.75" x 2.25"','15.99','',
'BF23','1.75" x 2.12"','15.99','',
'BF24','2.62" x 1.75"','15.99','',
'BF25','1.75" x 2.37"','15.99','',
'BF26','1.62" x 2.62"','15.99','',
'BF27','1.87" x 2.12"','15.99','',
'BF2716','1.62" x 2.37"','15.99','',
'BF2717','2.25" x 2.25"','15.99','',
'BF2719','2.12" x 2.37"','15.99','',
'BF2724','1.75" x 2.37"','15.99','',
'BF28','1.75" x 2.37"','15.99','',
'BF29','1.37" x 2.37"','15.99','',
'BF30','2" x 2.12"','15.99','',
'BF3101','2.12" x 2.37"','15.99','',
'BF3102','2.12" x 2.37"','15.99',''
];
}else{
	if (parent.pageId==2){

//Pins Small database
iArray = [
'B2717s', '1.25" x 1.50"','9.99','',
'B2724s',  '1.37" x 1.25"','9.99','',
'B7118s',  '1.50" x 1.00"','9.99','',
'B7146s',  '1.00" x 1.50"','9.99','',
'B7887s',  '1.00" x 1.50"','9.99','',
'B7888s',  '1.00" x 1.50"','9.99','',
'B7889s',  '1.50" x 1.00"','9.99','',
'BF01s',   '1.50" x 1.00"','9.99','',
'BF01si',  '1.50" x 1.00"','9.99','',
'BF02s',   '1.25" x 1.25"',   '9.99','',
'BF02si',  '1.25" x 1.25"',   '9.99','',
'BF03s',   '1.37" x 1.25"','9.99','',
'BF03si',  '1.37" x 1.25"','9.99','',
'BF04s',   '1.25" x 1.25"','9.99','',
'BF05s',   '1.37" x 1.00"','9.99','',
'BF05si',  '1.37" x 1.00"','9.99','',
'BF06s',   '1.25" x 1.25"','9.99','',
'BF06si',  '1.25" x 1.25"','9.99','',
'BF07s',   '1.25" x 1.25" ','9.99','',
'BF08s',   '1.12" x 1.50"','9.99','',
'BF09s',   '1.12" x 1.62"','9.99','',
'BF09si',  '1.12" x 1.62"','9.99','',
'BF10s',   '1.25" x 1.50"','9.99','',
'BF10si',  '1.25" x 1.50"','9.99','',
'BF12s',   '1.62" x 1.62"','9.99','',
'BF12si',  '1.62" x 1.62"','9.99','',
'BF17s',   '1.75" x 1.25"','9.99','',
'BF18s',   '1.12" x 1.62"','9.99','',
'BF19s',   '1.00" x 1.50"','9.99','',
'BF20s',   '1.37" x 1.37"','9.99','',
'BF21s',   '1.12" x 1.37"','9.99','',
'BF22s',   '1.25" x 1.62"','9.99','',
'BF23s',   '1.12" x 1.50"','9.99','',
'BF24s',   '1.25" x 1.75"','9.99','',
'BF25s',   '1.12" x 1.50"','9.99','',
'BF26s',   '1.00" x 1.75"','9.99','',
'BF27s',   '1.37" x 1.37"','9.99','',
'BF28s',   '0.75" x 1.75"','9.99','',
'BF29s',   '0.87" x 1.62"','9.99','',
'BF30s',   '1.25" x 1.37"','9.99','',
'BF3101si','1.37" x 1.25"','9.99','',
'BF3102si','1.37" x 1.25"','9.99','',
'BO104s',   '1.00" x 1.50"','9.99','',
'BO105s',   '1.00" x 1.50"','9.99','',
'BO119s',   '1.00" x 1.50"','9.99','',
'BO120s',   '1.00" x 1.50"','9.99','',
'BO121s',   '1.00" x 1.50"','9.99',''
];
}else{
	if (parent.pageId==3){
//Pendants database
iArray = [
'P2724s',  '1.37" x 1.25"','11.99','',
'PF01s',   '1.00" x 1.50"','11.99','',
'PF02si',   '1.25" x 1.25"','11.99','',
'PF03s',   '1.37" x 1.25"','11.99','',
'PF03si',  '1.37" x 1.25"','11.99','',
'PF04s',   '1.25" x 1.25"','11.99','',
'PF07s',   '1.25" x 1.25" ','11.99','',
'PF08s',   '1.12" x 1.50"','11.99','',
'PF12s',   '1.62" x 1.62"','11.99','',
'PF12si',  '1.62" x 1.62"','11.99','',
'PF22s',   '1.25" x 1.62"','11.99','',
'PF28s',   '0.75" x 1.75"','11.99','',
'PF29s',   '0.87" x 1.62"','11.99','',
'PF30s',   '1.25" x 1.37"','11.99','',
'PF3101si','1.37" x 1.25"','11.99','',
'PF3102si','1.37" x 1.25"','11.99',''
];
}else{
	if (parent.pageId==4){
//Earrings database
iArray = [
'E2724h',  '0.87" x 0.75"','15.99','',
'EF01h',   '0.62" x 0.87"','13.99','',
'EF01ih',  '0.62" x 0.87"','13.99','',
'EF02h',   '0.75" x 0.75"','13.99','',
'EF02ih',  '0.75" x 0.75"','13.99','',
'EF03h',   '0.87" x 0.75"','14.99','',
'EF03ih',  '0.87" x 0.75"','14.99',''
];
}else{
	if (parent.pageId==5){
//Pins '5Dolls' database
iArray = [
'RP001',  '2.50" x 1.75"','6.99','',
'RP002',  '2.50" x 1.75"','6.99','',
'RP003',  '2.50" x 1.75"','6.99','',
'RP004',  '2.50" x 1.75"','6.99','',
'RP005',  '2.50" x 1.75"','6.99','',
'RP006',  '2.50" x 1.75"','6.99','',
'RP007',  '2.50" x 1.75"','6.99','',
'RP008',  '2.50" x 1.75"','6.99','',
'RP009',  '2.50" x 1.75"','6.99','',
'RP010',  '2.50" x 1.75"','6.99','',
'RP011',  '2.50" x 1.75"','6.99','',
'RP012',  '2.50" x 1.75"','6.99','',
'RP013',  '2.50" x 1.75"','6.99','',
'RP014',  '2.50" x 1.75"','6.99','',
'RP015',  '2.50" x 1.75"','6.99','',
'RP016',  '2.50" x 1.75"','6.99','',
'RP017',  '2.50" x 1.75"','6.99',''
];
}else{

iArray = [

];
}
	
}
}
}
}














