// actual page file name
var fileName = "faberge-eggs.htm";
var pageId ="Russian Enameled Eggs";


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


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

// 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("Tree_1.jpg", "Tree Display $160.00");

var introductionStr = '<font face="Monotype Corsiva" size="4">' + "The Imperial Easter Eggs, created for the Russian Czar Nicholas II " + crLf + 
		      "and Czarina Alexandra, are the most famous decorated eggs " + crLf +
		      "in all history. For centuries, the egg has symbolized birth, life and love."+ crLf + crLf  + 
			"This exquisite miniature egg was created in the style of Peter Carl Faberge, "+ crLf  + 
			"a Jeweler to the Russian Imperial Court, and hand-crafted " + crLf + 
			"by highly skilled artisans in Russian tradition." + crLf  + crLf +
			"Layers of colored guilloche enamel are applied and " + crLf  + 
			"fired to the engraved silver surface with 24K gold overlay. " + crLf  + 
		 	"" + '</font>' + crLf;
		      

var pageIds = ["Russian Enameled Eggs","SS Chains","Pins","Style DA $52-$90","Style DA $100-$190","Style DA $200 & over","Style MC $52-$90","Style MC $100-$190","Style MC $200 & over"]; // used for menus
var pageIdUnderHeaderStrs = ["","Comming Soon. Chains are available - Please Call.",
			     "Most styles are available in 9 different colors of Enamel.<br>For more colors, please call."] // used for menus

function PghdStr(pgN) {
		
		return pageIds[pgN];
	
}
function PguhdStr(pgN) {
var s = '<table border="0" cellpadding="' + picBrdW + '" cellspacing="0"><br>' + oneCellTableShopCart("DATree-1","160.00","");
	if (pgN == 1){
		return  pageIdUnderHeaderStrs[1];
	}
	if (pgN == 3 ||pgN == 4 || pgN == 5 ||pgN == 6 || pgN == 7 ||pgN == 8){
		return  pageIdUnderHeaderStrs[2];
	}
	if (pgN != 0){
		return  "";
	
	}else{
			return  introductionStr + showPic(0) + s ;
		}

}

function PgImgDirStr(pgN) {
	if (pgN == 6 ||pgN == 7 || pgN == 8) {
		return "MC_Eggs";
	}else{
		return "DA_Eggs";
	}
	
}

function imageH(pgN) {
		if (pgN == 1 ||pgN == 2 || pgN == 3 ||pgN == 4 || pgN == 5) {
			return "165";
		}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(0)">'; 
	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;
}

function oneCellTableShopCart(image,price,set){
var category = "Tree Display"
var s = '<td><!--Shopping Cart Begin--><FORM NAME=order' + image + ' ACTION="managecart.html" onSubmit="AddToCart(this)"; id= "orderform" ><p>'
    s += 'Qty: <input type=text size=2 maxlength=3 name=QUANTITY onChange="this.value=CKquantity(this.value)"; value="1">&nbsp;'
    s +=  '<input type="image" src="./images/Final.gif" border=0 value="Add to Cart" align=top width="14" height="18">'
    s +=  '<input type=hidden name=PRICE value=' + price + '>'
    s +=  '<input type=hidden name="NAME" value=" ' + category + ' ">'
    s +=  '<input type=hidden name="ID_NUM" value=' + image + '&nbsp;'+ set +'>'
    s +=  '<input type=hidden name=SHIPPING value="9.95">'
    s +=  '</FORM><!--Shopping Cart End  --></td>'
 return s;

}


// menus
// format: item ID, menu text, menu URL, target
topMenuItems = [
	"Russian Enameled Eggs", "Main", "javascript:GoToPageName(0)", "",
	"SS Chains", "SS Chains", "javascript:GoToPageName(1)", "",
	"Pins", "Pins", "javascript:GoToPageName(2)", "",
	"Style DA $52-$90", "Style DA-A", "javascript:GoToPageName(3)", "",
	"Style DA $100-$190", "Style DA-B", "javascript:GoToPageName(4)", "",
	"Style DA $200 & over", "Style DA-C", "javascript:GoToPageName(5)", "",
	"Style MC $52-$90", "Style MC-A", "javascript:GoToPageName(6)", "",
	"Style MC $100-$190", "Style MC-B", "javascript:GoToPageName(7)", "",
	"Style MC $200 & over", "Style MC-C", "javascript:GoToPageName(8)", ""
	
	
	
	
];

if (parent.pageId==1){
//SS Chains database
iArray = [
	
];
}else{
	if (parent.pageId==2){
//"Pins  database
iArray = [
'AD101',	'',	'24.00',	'Flag',
'AD38',		'',	'26.00',	'Bow',
'AD47',		'',	'30.00',	'Bow',
'AD44',		'',	'32.00',	'Deer',
'AD49',	'',	'36.00',	'Crab',
'AD50',	'',	'36.00',	'',
'AD102',	'',	'40.00',	'Bow',
'AD105',	'',	'40.00',	'Bar',
'AD35',	'',	'40.00',	'Bow',
'AD43',	'',	'40.00',	'Heart',
'AD36',	'',	'44.00',	'',
'AD46',	'',	'48.00',        ''
];
}else{

	if (parent.pageId==3){
// format: image,description,price,set
//"Enameled Eggs Style DA $52-$90"  database
iArray = [
'DA121',	'',	'52.00',	'Angel',
'DA13',	'',	'52.00',	'',
'DA131',	'',	'52.00',	'Butterfly',
'DA132',	'',	'52.00',	'',
'DA15',	'',	'52.00',	'',
'DA16',	'',	'52.00',	'',
'DA88',	'',	'52.00',	'',
'DA89',	'',	'52.00',	'Fleur Dale',
'DA90',	'',	'52.00',	'Cross',
'DA91',	'',	'52.00',	'',
'DA92',	'',	'52.00',	'',
'DA93',	'',	'52.00',	'',
'DA94',	'',	'52.00',	'',
'DA95',	'',	'52.00',	'Hearts',
'DA06',	'',	'60.00',	'',
'DA10',	'',	'60.00',	'',
'DA108',	'',	'60.00',	'',
'DA112',	'',	'60.00',	'',
'DA129',	'',	'60.00',	'',
'DA14',	'',	'60.00',	'Lady Bug',
'DA20',	'',	'60.00',	'',
'DA40',	'',	'60.00',	'',
'DA55',	'',	'60.00',	'',
'DA67',	'',	'60.00',	'',
'DA97',	'',	'60.00',	'Flag',
'DA98',	'',	'60.00',	'Twin Towers',
'DA98back',	'',	'60.00',	'',
'DA01',	'',	'72.00',	'Snow Flake',
'DA104',	'',	'72.00',	'',
'DA110',	'',	'72.00',	'',
'DA111',	'',	'72.00',	'',
'DA113',	'',	'72.00',	'"Celtic Cross',
'DA114',	'',	'72.00',	'',
'DA116',	'',	'72.00',	'',
'DA146',	'',	'72.00',	'',
'DA21',	'',	'72.00',	'',
'DA34',	'',	'72.00',	'Dolphin',
'DA39',	'',	'72.00',	'',
'DA40B',	'',	'72.00',	'Bee',
'DA40F',	'',	'72.00',	'Frog',
'DA40L',	'',	'72.00',	'Lady Bug',
'DA52',	'',	'72.00',	'',
'DA53',	'',	'72.00',	'',
'DA56',	'',	'72.00',	'',
'DA64',	'',	'72.00',	'',
'DA65',	'',	'72.00',	'',
'DA66',	'',	'72.00',	'',
'DA68',	'',	'72.00',	'',
'DA69',	'',	'72.00',	'',
'DA70',	'',	'72.00',	'',
'DA71',	'',	'72.00',	'',
'DA72',	'',	'72.00',	'',
'DA73',	'',	'72.00',	'',
'DA74',	'',	'72.00',	'',
'DA85',	'',	'72.00',	'',
'DA02',	'',	'80.00',	'',
'DA04',	'',	'80.00',	'Bow',
'DA05',	'',	'80.00',	'',
'DA107',	'',	'80.00',	'',
'DA115',	'',	'80.00',	'',
'DA12',	'',	'80.00',	'',
'DA17',	'',	'80.00',	'"Cross"',
'DA51',	'',	'80.00',	'',
'DA61',	'',	'80.00',	'',
'DA99',	'',	'80.00',	'',
'DA99p',	'',	'80.00',	'"Flag"',
'DA106',	'',	'90.00',	'',
'DA135',	'',	'90.00',	'Rose',
'DA140',	'',	'90.00',	'Daisies',
'DA142',	'',	'90.00',	'Heart',
'DA144c',	'',	'90.00',	'Cola',
'DA144d',	'',	'90.00',	'Daises',
'DA144L',	'',	'90.00',	'Lilley of the',
'DA144r',	'',	'90.00',	'Rose',
'DA78',	'',	'90.00',	'',
'DA79',	'',	'90.00',	'',
'DA82',	'',	'90.00',	'w/Elephant',
'DA83',	'',	'90.00',	'',
'DA84',	'',	'90.00',	''
];
}else{
	if (parent.pageId==4){

//"Enameled Eggs Style DA $100-$190" database
iArray = [
'DA117',	'',	'100.00',	'Locket',
'DA118',	'',	'100.00',	'Locket',
'DA119',	'',	'100.00',	'Locket',
'DA120',	'',	'100.00',	'Locket',
'DA122',	'',	'100.00',	'Locket',
'DA123',	'',	'100.00',	'Locket',
'DA124',	'',	'100.00',	'Locket',
'DA125',	'',	'100.00',	'Frog',
'DA130',	'',	'100.00',	'',
'DA133',	'',	'100.00',	'Pineapple',
'DA136c',	'',	'100.00',	'Cross',
'DA136p',	'',	'100.00',	'Peach',
'DA139b',	'',	'100.00',	'',
'DA139c',	'',	'100.00',	'Cross',
'DA139d',	'',	'100.00',	'Star of David',
'DA141',	'',	'100.00',	'w/Onix',
'DA148',	'',	'100.00',	'',
'DA19',		'',	'100.00',	'',
'DA22',		'',	'100.00',	'',
'DA25',		'',	'100.00',	'',
'DA26',		'',	'100.00',	'',
'DA28',		'',	'100.00',	'Butterfly',
'DA29',		'',	'100.00',	'',
'DA30',		'',	'100.00',	'Heart',
'DA31',		'',	'100.00',	'',
'DA32',		'',	'100.00',	'',
'DA33',		'',	'100.00',	'',
'DA41',		'',	'100.00',	'',
'DA45',		'',	'100.00',	'',
'DA80',		'',	'100.00',	'',
'DA81',		'',	'100.00',	'',
'DA86',		'',	'100.00',	'',
'DA87',		'',	'100.00',	'',
'DA990',	'',	'100.00',	'Locket',
'DA997',	'',	'100.00',	'',
'DA76',		'',	'120.00',	'',
'DA77',		'',	'120.00',	'Locket',
'DA75',		'',	'130.00',	''
];

}else{
	if (parent.pageId==5){
//"Enameled Eggs Style DA $200 & over"database
iArray = [
'G007',		'',	'280.00',	'No Stone Egg (Old Design)',
'DA23',		'',	'300.00',	'Locket w/Crou',
'DA27',		'',	'300.00',	'Locket w/Bell',
'G001-2D03',	'',	'360.00',	'Egg 2 Dia .03tw (Flower)',
'G002-1D03',	'',	'360.00',	'Lady Bug Egg 1 Dia .03tw',
'G005-7D11',	'',	'520.00',	'Cross Egg 7 Dia .11tw',
'G006-12D10',	'',	'560.00',	'12 Dia .10tw FleurDelea',
'G003-36D27',	'',	'800.00',	'36 Dia Egg .27tw'


];
}else{
	if (parent.pageId==6){
//"Enameled Eggs Style MC $52-$90"database
iArray = [

'101',	'',	'60.00',	'',
'102',	'',	'60.00',	'',
'106',	'',	'60.00',	'',
'107',	'',	'60.00',	'',
'109S',	'',	'60.00',	'',
'109SN','',	'60.00',	'',
'112',	'',	'60.00',	'',
'115',	'',	'60.00',	'',
'116',	'',	'60.00',	'',
'117',	'',	'60.00',	'',
'124C',	'',	'60.00',	'',
'124F',	'',	'60.00',	'',
'124R',	'',	'60.00',	'',
'124S',	'',	'60.00',	'',
'126',	'',	'60.00',	'',
'127',	'',	'60.00',	'',
'129',	'',	'60.00',	'',
'130A',	'',	'60.00',	'',
'130L',	'',	'60.00',	'',
'130M',	'',	'60.00',	'',
'130O',	'',	'60.00',	'',
'132',	'',	'60.00',	'',
'133',	'',	'60.00',	'',
'133',	'',	'60.00',	'',
'134',	'',	'60.00',	'',
'138',	'',	'60.00',	'',
'139',	'',	'60.00',	'',
'141',	'',	'60.00',	'',
'142',	'',	'60.00',	'',
'143',	'',	'60.00',	'',
'144',	'',	'60.00',	'',
'145',	'',	'60.00',	'',
'146',	'',	'60.00',	'',
'150',	'',	'60.00',	'',
'161',	'',	'60.00',	'',
'162',	'',	'60.00',	'',
'163',	'',	'60.00',	'',
'164',	'',	'60.00',	'',
'176',	'',	'60.00',	'',
'177',	'',	'60.00',	'',
'180L',	'',	'60.00',	'',
'180M',	'',	'60.00',	'',
'180O',	'',	'60.00',	'',
'181',	'',	'60.00',	'',
'171',	'',	'80.00',	''
];
}else{
	if (parent.pageId==7){
//"Enameled Eggs Style MC $100-$190" database
iArray = [


'109',		'',	'100.00',	'',
'110',		'',	'100.00',	'',
'158',		'',	'100.00',	'',
'159',		'',	'100.00',	'',
'168',		'',	'100.00',	'',
'169',		'',	'100.00',	'',
'170',		'',	'100.00',	'',
'111',		'',	'112.00',	'',
'118A',		'',	'140.00',	'',
'118L',		'',	'140.00',	'',
'118M',		'',	'140.00',	'',
'118O',		'',	'140.00',	'',
'119',		'',	'140.00',	'',
'135',		'',	'140.00',	'',
'135back',	'',	'',		'',
'135open',	'',	'',		'',
'136',		'',	'140.00',	'',
'137',		'',	'140.00',	'',
'149',		'',	'140.00',	'',
'151',		'',	'140.00',	'',
'151back',	'',	'',		'',
'151open',	'',	'',		'',
'152',		'',	'140.00',	'',
'153',		'',	'140.00',	'',
'157',		'',	'140.00',	'',
'165',		'',	'140.00',	'',
'166',		'',	'140.00',	'',
'167',		'',	'140.00',	'',
'175-A',	'',	'140.00',	'',
'175-L',	'',	'140.00',	'',
'175-M',	'',	'140.00',	'',
'175-O',	'',	'140.00',	'',
'179',		'',	'140.00',	'',
'147',		'',	'160.00',	'',
'147open',	'',	'',		'',
'154',		'',	'160.00',	''
];
}else{
	if (parent.pageId==8){
//"Enameled Eggs Style MC $200 & over database
iArray = [
'125',		'',	'200.00',	'',
'125-in',	'',	'',	'',
'160',		'',	'260.00',	'',
'160-open',	'',	'',	'',
'174',		'',	'270.00',	'',
'174-open',	'',	'',	'',
'178',		'',	'300.00',	'',
'178-open',	'',	'',		''
];

}else{
	
iArray = [

];
}
	
}
}
}
}
}
}

}











