// actual page file name
var fileName = "lomonosov-porcelain.htm";
var pageId = "Lomonosov Porcelain";



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

// 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("val0005.jpg", "'Singing Garden' Tea Set");
addPic("val0006.jpg", "'Snowflakes' Design");
addPic("val0007.jpg", "'Lotus' Design");
addPic("val0008.jpg", "'Winter Evening' Design");
addPic("val0009.jpg", "'Tendency' Tea Set");
addPic("val0010.jpg", "Assorted Tea Cups with Lids and Saucers");




// 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">';
	//window.alert(picNum);
	s += '<a href="javascript:GoToPageName('+ (picNum + 5) + ')">'; 
	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 crLf = '&nbsp;<br>';
var sp = '&nbsp;';


var introductionStr=  " <div class = 'contents' > " + sp + sp + sp + sp + sp +
"Welcome to the beautiful delightful elegance of Old Russia. " +
"The First and Finest Porcelain of Russia, " +
"Lomonosov Porcelain Factory - LFZ, originally - Imperial Porcelain Manufacture,  "    +
"was  founded in 1744 by Empress Elizabeth, daughter of Peter the Great. Since its inception LFZ "     +
"was more than just quality porcelain production - LFZ always created genuine music of porcelain. "   +  crLf +
 sp + sp + sp + sp + sp + " Lomonosov Porcelain masterpieces are proudly displayed in renowned museums and art "     +
"galleries in St.Petersburg, Moscow, Paris, New York etc. "    +
"World famous sculptors, architects and artisans have been creating Lomonosov Porcelain. "   +
"Stylistic spectrum of LFZ porcelain ranges from immaculate old classic St.Petersburg"   +
" traditions to novel supremacist 'porcelain revolutions' of the 20-s of XX century. "  +
"LFZ takes care to preserve original technology of porcelain manufacture of the 1-st creator " +
"of Russian porcelain - D. Vinogradov (1720 - 1758) and blend it with state-of-the-art production ideas: " +
"sophisticated composition of paste, multiple firings, total casting of hollow wares. The result is the best " +
"quality porcelain made in Russia." + crLf +
 sp + sp + sp + sp + sp + " Thin-shelled bone china is another discovery of LFZ finest craftsmen. "+
"Lomonosov bone china comes close to that of ancient China in its transparency, luster, whiteness and clarity. " +
"LFZ Porcelain means unique underglaze cobalt blue designs, multi-layer landscape painting, decoration with " +
"paints made of rare and precious metals, wares hand-painted  by finest artists." +
"Created by masters in their field Lomonosov Porcelain enchanted not only Russian tsars, "  +
"it cast its spell on presidents, movie stars, poets, musicians, ambassadors, bankers and people of " +
"many other trades. "   +
 "</div>";

var pageIds = ["Lomonosov Porcelain","'Colbalt Net' Design","'Golden Garden' Design","Cups & Saucers","Miscellaneous",pics[0].text,pics[1].text,pics[2].text,pics[3].text,pics[4].text,pics[5].text]; // used for menus
var pageIdUnderHeaderStrs = ["" ,"Yellow Color is 24K Gold","Yellow Color is 24K Gold","Yellow Color is 24K Gold","Yellow Color is 24K Gold"]; // used for menus

function PghdStr(pgN) {
	if (pgN >= 5){
		return pics[pgN-5].text
	}
	if (pgN == 1){
		return pageIds[pgN];
	}else{
			return  pageIds[pgN];
		}
}
function PguhdStr(pgN) {
	var s = showPic(0);
	var i;
	
	if (pgN != 0){
		return  "Yellow Color is 24K Gold" ;//pageIdUnderHeaderStrs[pgN];
	}else{	
		for (i = 1; i< pics.length; i ++) {
		s += showPic(i);
		}
				
		return  introductionStr  +s ;
		}

}

function PgImgDirStr(pgN) {
	
		return "Lomonosov_Porcelain";
	
}

function imageH(pgN) {
	
		return "144";

}



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 = [
	"Lomonosov Porcelain", "Main", "javascript:GoToPageName(0)", "",
	"'Colbalt Net' Design", "'Colbalt Net' Design", "javascript:GoToPageName(1)", "",
	"'Golden Garden' Design", "'Golden Garden' Design", "javascript:GoToPageName(2)", "",
	"Cups & Saucers", "Cups & Saucers", "javascript:GoToPageName(3)", "",
	"Miscellaneous", "Miscellaneous", "javascript:GoToPageName(4)","",
	 pics[0].text,"'Singing Garden' Set","javascript:GoToPageName(5)","",
         pics[1].text,"'Snowflakes' Set","javascript:GoToPageName(6)","",
	 pics[2].text,"'Lotus' Set","javascript:GoToPageName(7)","",
         pics[3].text,"'Winter Evening' Set","javascript:GoToPageName(8)","",
	 pics[4].text,"'Tendency' Tea Set","javascript:GoToPageName(9)","",
         pics[5].text,"Assorted ","javascript:GoToPageName(10)",""
	

	
];


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 < 20; 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>';
	s += '<hr>'
	s += '<table border="0" cellpadding="' + cellPad + '" cellspacing="0" align="center"><tr>' + delim;
	for (var i = 20; 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
//'Colbalt Net' Design database
iArray = [
'L14623',	'1 5/8" H',		'14.50',	' Mokko Cup & Saucer',
'L14574',	'3 1/4" H',		'21.50',	' May Cup & Saucer',
'L14569',	'2 1/4" H',		'23.00',	' Mokko Cup & Saucer',
'L14575',	'2.3/4" H',		'23.00',	' Wave Cup & Saucer',
'L10106',	'2 1/2" H',		'25.00',	' Coffe Cup',
'L14570',	'3 1/4" H',		'27.00',	' Dand Cup',
'L10105',	'2 3/4" H',		'32.00',	' Tea Cup & Saucer',
'L13955',	'4" H',			'33.00',	' Tumbler & Saucer',
'L15419',	'5 1/2" H',		'64.00',	' Covered Cup & Saucer',
'L3748',	'2 1/4"H',		'18.00',	' Handless Tea Cup',
'L2187c',	'3" H',			'30.00',	' Small Creamer',
'L235',		'5" x 3 1/2" H',	'44.00',	' Creamer',
'L234',		'4 1/2" H',		'48.00',	' Sugar Bowl',
'L231',		'5" H',			'55.00',	' Small Tea Pot',
'L232',		'7" H',			'150.00',	' Large Tea Pot',
'L233',		'7 1/2" H',		'90.00',	' Coffee Pot',
'L6941',	'2 1/4"H',		'12.00',	' Salt Box',
'L6942',	'2" x 2" H',		'12.00',	' Pepper Box',
'L6943',	'2 1/8" x 2 1/8" H',	'12.00',	' Mustard Box',
'L6944',	'3" x 7 1/4" H',	'15.00',	' Stand 4 Spices',
'L9720',	'1 3/4" x 2" H',	'12.00',	' Glass',
'L7115',	'2" x 2" H',		'14.00',	' Egg Cup',
'L7116',	'2 1/2" x 2 1/4" H',	'15.00',	' Tooth Pick Holder',
'L9992',	'3 3/4" H',		'54.00',	' Butter Dish',
'L6946',	'3 1/2" x 3 1/2" H',	'33.50',	' Jam Jar',
'L6947',	'4" Dia.',		'16.00',	' Jam Plate',
'L4258',	'2 3/4"H',		'40.00',	' Sweet Tray',
'L236',		'8 1/2" Dia.',		'45.00',	' Cake Plate',
'L7113',	'4 3/4" x 3 1/4" H',	'30.00',	' Ice Cream Bowl',
'L6937',	'7.25"Dia. x 4.75"H',	'75.00',	' Fruit Bowl',
'L6938',	'10.25"Dia. x 6.25"H',	'105.00',	' Fruit Bowl',
'L9719',	'4 1/2" x 6 3/4" H',	'45.00',	' Carafe',
'L5664',	'3 1/2" x 5 1/4" H',	'52.00',	' Sake Decanter',
'L7109',	'4 1/4" x 2 1/2" H',	'28.50',	' Souse Jug',
'L6940',	'5 1/2" x 3 1/4" H',	'35.00',	' Gravey Boat',
'L7438',	'7" x 3 3/4" H',	'46.00',	' Gravy Boat',
'L13919',	'3" H',			'37.00',	' Soup Boul & Saucer',
'L229',		'6" Dia.',		'15.00',	' Plate',
'L230',		'7" Dia.',		'17.00',	' Plate',
'L8689',	'7" Dia.',		'20.00',	' Flat Plate',
'L7243',	'8" Dia.',		'25.00',	' Flat Plate',
'L9951',	'8 1/4" Dia.',		'29.00',	' Flat Plate',
'L3833',	'10 1/2" Dia.',		'45.00',	' Flat Plate',
'L6933',	'12 1/4" Dia.',		'100.00',	' Charger Plate',
'L7112',	'6 3/4" x 10" H',	'50.00',	' Fish Platter',
'L6932',	'8" x 12" H',		'65.00',	' Oval Plate',
'L7111',	'9 3/4" x 14" H',	'130.00',	' Fish Platter',
'L6948',	'10" x 6 1/2" H',	'185.00',	' Soup Tureen',
'L6934',	'4" Square',		'28.00',	' Salad Plate',
'L6935',	'5" Square',		'34.00',	' Salad Plate',
'L6936',	'7" Square',		'46.00',	' Salad Plate',
'L6945',	'4 1/2" x 4 1/2"H',	'28.00',	' Ash Tray',
'L7118',	'3 1/4" x 4" H',	'38.00',	' Bell',
'L7117',	'5" H',			'90.00',	' Easter Egg',
'L9557',	'1 1/8" H',		'12.00',	' Thimble',
'L7021',	'1 3/4" W',		'15.00',	' Napkin Ring',
'L6939',	'2.75" x 4.75" H',	'35.00',	' Napkin Holder',
'L4257',	'4 1/2"H',		'39.00',	' Flower Vase',
'L7114',	'2 3/4" x 6 1/4" H',	'37.00',	' Flower Vase',
'L7398',	'4" x 10 1/2" H',	'170.00',	' Flower Vase',
'L7627',	'6 1/4" x 8 1/2" H',	'220.00',	' 3-Prong Candlestick'

];
}else{
	if (parent.pageId==2){

//'Golden Garden' Design database
iArray = [
'L10007',	'2 1/2"H',		'23.00',	' Coffee Cup & Saucer',
'L10006',	'2 1/2" H',		'31.00',	' Tea Cup',
'L10',		'3 1/4" H',		'25.00',	' Creamer',
'L9',		'6 1/4" x 4 1/2" H',	'33.00',	' Sugar Bowl',
'L7',		'5" H',			'44.00',	' Tea Pot',
'L6591',	'7" H',			'100.00',	' Large Tea Pot',
'L8',		'7 1/2" H',		'60.00',	' Coffe Pot',
'L6',		'7" Dia.',		'15.00',	' Plate',
'L5',		'6 1/4" Dia.',		'17.00',	' Plate',
'L11',		'8 1/2" Dia.',		'27.00',	' Cake Plate'

];
}else{
	if (parent.pageId==3){
//Cups & Saucers database
iArray = [
'L10124',	'2 1/2" H',	'11.50',	'Coffee Cup & Saucer',
'L14286',	'2 1/2" H',	'12.00',	'Coffee Cup Web',
'L14492',	'2 1/2" H',	'20.00',	'Tea Cup Fortune Bird',
'L10228',	'3" H',		'16.00',	'Winter Tea Cup',
'L10231',	'3" H',		'21.50',	'Tea Cup & Saucer Necklace'

];
}else{
	if (parent.pageId==4){
//Miscellaneous database
iArray = [
'L789',		'6 3/4" x 71/4" H',	'45.00',	'Tea Pot',
'L4196',	'5" x 2 7/8" H',	'30.00',	'Lomonosov Factory Sign',
'L4195',	'7 1/4" x 8 1/2" H',	'80.00',	'Lomonosov Factory Sign'

];
}else{
	if (parent.pageId==5){
//... database
iArray = [
'L646', 	'9"-H',   		'128.00', 	'1.Tea Pot',
'L647', 	'6 S"-H', 		' 60.00', 	'2.Sugur Bowl',
'L648', 	'7"-H',   		' 50.00', 	'3.Creamer',
'L9203', 	'10 S"-D <br>4 S"-H',	' 70.00', 	'4.Raised Cake Plate',
'L10298',	'3j"-H',		' 35.00',	'5.Tea Cup & Saucer',
'L645',  	'7"-D'	,		' 20.00',	'6.Dessert Plate'
];

}else{
	if (parent.pageId==6){
//... database
iArray = [
'L382', 	'6 1/2"-H',   		' 45.00', 	'1.Tea Pot',
'L382A', 	'6 1/2"-H', 		'Call', 	'2.Sugur Bowl',
'L382B', 	'4 1/2"-H',   		'Call', 	'3.Creamer',
'L381', 	'7"-D ',		' 14.00', 	'4.Plate',
'L10180',	'3"-H',			' 20.00',	'5.Tea Cup & Saucer'

];

}else{
	if (parent.pageId==7){
//... database
iArray = [
'L375', 	'6 1/2"-H',   		' 35.00', 	'1.Tea Pot',
'L376', 	'4 1/2"-H', 		' 28.00', 	'2.Sugur Bowl',
'L377', 	'4 1/2"-H',   		' 20.00', 	'3.Creamer',
'LU55', 	'8 1/2"-D <br> 4 S"-H',	'Call', 	'4.Cake Plate',
'L374',	      	'7"-D',			' 12.00',	'5.Plate',
'L10176',  	'3"-H'	,		' 15.00',	'6.Tea Cup & Saucer'
];

}else{
	if (parent.pageId==8){
//'Winter Evening' Design database
iArray = [
'L22', 		'8 1/2"-D',   		'Call', 	'1.Cake Plate',
'L20', 		'4 1/2"-H', 		'Call', 	'2.Sugur Bowl',
'L21', 		'3 1/4"-H',   		'Call', 	'3.Creamer',
'L18', 		'5"-H',			'Call', 	'4.Tea Pot',
'L10012',	'2 1/2"-H',		'Call',		'5.Tea Cup & Saucer'

];

}else{
	if (parent.pageId==9){
//'Tendency' Tea Set database
iArray = [
'L6124', 	'6 1/2"-H',   		' 50.00', 	'1.Small Tea Pot',
'L6132', 	'4 1/2"-H', 		' 30.00', 	'2.Sugur Bowl',
'L13787', 	'3"-H',   		' 24.00', 	'3.Tea Cup & Saucer',
'L6123', 	'7"-H',			' 16.50', 	'4.Plate'

];

}else{
	if (parent.pageId==10){
//Assorted Tea Cups with Lids and Saucers database
iArray = [
'L14351', 	'5 1/2"-H',   		' 44.50', 	'1.Flowers',
'L14346', 	'5 1/2"-H', 		' 49.00', 	'2.Lily of the Valley',
'L14352', 	'5 1/2"-H',    		' 49.00', 	'3.Couple',
'L14349', 	'5 1/2"-H', 		' 49.00', 	'4.Dandelion',
'LU02',		'5 1/2"-H', 		'Call',	'5.Red Rooster',
'L14348',  	'5 1/2"-H', 		' 45.00',	'6.Tenderness'
];

}else{

iArray = [

];

}
	
}}}}}}}}}














