// actual page file name
var fileName = "nesting-dolls.htm";
var pageId = "Nesting Dolls"; // used for menus
var category = "Nesting Dolls";

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

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

// 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("NDollDemo1.gif", "");



var introductionStr = "<div class = 'contents' >" + sp +sp + sp + sp + sp +
"These unique gifts are coming from the heart of Russia, bearing a rich tradition and the artist's personal touch. " +
"Your Dolls will be treasured for generations to come. " +
"Introduced by Russian toy makers in 1890, the Nesting Dolls quickly emerged as an all-embracing symbol of Mother Russia "  +
"and the inevitable triumph of successive generations - a sort of national toy.  "    +
"The name itself, 'Matryoshka', which has the Latin root 'mater',  meaning 'mother', " + 
"conjures up the image of the staid family matron for which Russia is known. " + crLf + crLf +
  sp +sp + sp + sp + sp + "Art centers, such as Sergiev-Possad, " +
"developed unique styles in producing the finest dolls. Taking aged linden wood, a craftsman turns each set of dolls " +
"individually, the smallest one first. Then the Artist begins the process of painting and lacquering - work that never " +
"seems to end as one doll leads to the next.   " +
"The original smiling peasant girl in festive costume has been joined by village characters, religious figures, " +
"and the artist's fantasy to entertain collectors around the world. " +
"</div>";

// Gallery header
var hdStr = "Russian Nesting Dolls";
var uhdStr = "All Nesting Dolls are hand-painted and signed by the Artist on a bottom.";

var pageIds = ["Russian Nesting Doll (Matryoshka)","Russian Nesting Dolls"]; // used for menus
var pageIdUnderHeaderStrs = "All Nesting Dolls are hand-painted and signed by the Artist on a bottom."; // used for menus

function PghdStr(pgN) {

		return pageIds[pgN];

}
function PguhdStr(pgN) {


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

}
// subdir prefix for imgs path
function PgImgDirStr(pgN) {

		return "NestDolls";

}
 //image height;
function imageH(pgN) {

		return "145";

}


var imgDir = "NestDolls";


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)
//image width;
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(1)">';
	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 Nesting Doll (Matryoshka)", "Main", "javascript:GoToPageName(0)", "",
	"Russian Nesting Dolls", "Nesting Dolls Gallery", "javascript:GoToPageName(1)", ""

];

if (parent.pageId==1){
// format: image,description,price,set
//Nesting Dolls database
iArray = [
	 'RM104', '2.75" Tall', '12.00','5-set',
	 'RM138', '3.75" Tall', '12.00','5-set',
	 'RM105', '3" Tall', '12.00','5-set',
	 'RM113', '3 1/4" Tall', '15.00','5-set',
     'RM109', '2.75" Tall', '16.00','5-set',
	 'RM114', '4.25" Tall', '16.00','5-set',
     'RM101', '2.75" Tall', '20.00','3-set',
	 'RM123', '5" Tall', '20.00','5-set',
	 'RM107', '4.25" Tall', '20.00','5-set',
	 'RM106', '4.00" Tall', '20.00','5-set',
     'RM112', '3.75" Tall', '20.00','5-set',
	 'RM126', '5" Tall', '20.00','5-set',
	 'RM134', '4.50" Tall', '20.00','5-set',
	 'RM154', '3.50" Tall', '22.00','5-set',
	 'RM196', '4" Tall', '22.00','3-set',
     'RM116', '6" Tall', '25.00','5-set',
     'RM100', '2.75" Tall', '30.00','3-set',
	 'RM103', '6.25" Tall', '35.00','5-set',
	 'RM155', '6.25" Tall', '35.00','5-set',
     'RM197', '2.75" Tall', '35.00','3-set',          
     'RM199', '3.25" Tall', '35.00','3-set',
	 'RM102', '6" Tall', '40.00','5-set',
     'RM136', '4.25" Tall', '40.00','5-set',
	 'RM198', '3.25" Tall', '40.00','8-set',
	 'RM117', '5.25" Tall', '40.00','3-set',
	 'RM132', '5.25" Tall', '40.00','5-set',
	 'RM133', '5.25" Tall', '40.00','5-set',
	 'RM127', '5.75" Tall', '42.00','5-set',
     'RM157', '6.50" Tall', '48.00','5-set',
	 'RM108', '6" Tall', '50.00','5-set',
     'RM118', '5.50" Tall', '50.00','5-set',
	 'RM119', '6.75" Tall', '50.00','5-set',
	 'RM124', '6" Tall', '50.00','5-set',
	 'RM128', '7.50" Tall', '50.00','5-set',
         'RM135', '4" Tall', '50.00','10-set',
	 'RM147', '3.75" Tall', '50.00','10-set',
	 'RM150', '6.75" Tall', '50.00','5-set',
	 'RM120', '6.25" Tall', '60.00','5-set',
	 'RM131', '6" Tall', '60.00','5-set',
	 'RM151', '7" Tall', '60.00','5-set',
         'RM152', '7" Tall', '60.00','5-set',
	 'RM145', '6" Tall', '80.00','4-set',
	 'RM110', '4" Tall', '80.00','10-set',
	 'RM125', '4.5" Tall', '100.00','10-set',
	 'RM130', '6" Tall', '120.00','10-set',
	 'RM122', '9.50" Tall', '180.00','10-set',
	 'RM129', '6" Tall', '180.00','10-set',
	 'RM146', '9.25" Tall', '240.00','10-set',
	 'RM121', '11" Tall', '300.00','15-set',
	 'RM140', '10" Tall', '400.00','10-set',
	 'RM141', '10" Tall', '400.00','10-set'
	 ];
}else{

iArray = [

];
}

