
// this code opens new windows - verify the width and heights work for this particular website
	function open_new_window(url, window_name)
	{
		window.open(url,window_name,'width=600,height=500,toolbar=1,scrollbars=1,directories=1,location=1,status=1,menubar=1,resizable=1');
	}
// end of code opening new windows
// this code controls the dhtml code activated by onclick of the links
	var contentObj;
	var page_loaded = "false";
	function init()
	{
		contentObj = addLayer('content');
		setLayerSize(contentObj,600,280);
		setLayerClip(contentObj,0,600,260,0);
		moveLayerTo(contentObj,160,200);
		showLayer(contentObj);
		setLayerHTML(contentObj,sBeginning_code);
		page_loaded = true;
		preloadImages();
	}		
	window.onload = init;
	function load_1(code_def)
	{
		if(page_loaded == true)
		{
			setLayerHTML(contentObj,code_def);

		}
	}

// code to write the beginning table tags for the opening display in each section - to cut down on load time

	var setup_code = "";
	setup_code =  "<table width='600' border='0' cellpadding='0' cellspacing='0'>\n";
	setup_code += "<tr>\n";
	setup_code += "<td width='600' align='left'>"; 	
//code to set the dynamic html display for the opening homepage content

	var sBeginning_code = "";
	var sSec_0_code = "";
	sSec_0_code =  setup_code;
	sSec_0_code += "<h1>Pastry</h1><p>Even though we’ve become known for our traditional Italian pastries, we have a hard time picking our favorite items here at Gencarelli\’s.  Our daily pastry selection includes everything from Mousse cakes to \“Old World\” treats that have been in our family for generations!  Take a look at some of our more popular items:\n";
	sSec_0_code += "</td></tr></table>";
	sBeginning_code = sSec_0_code;

	var pastry1 = "";
	var sSec_1_code = "";
	sSec_1_code =  setup_code + "<p><img src='images/pastry1.jpg' align='right' hspace='8' vspace='5'><h1>Fruit Tarts</h1>\n";
	sSec_1_code += "<p>Like all the treats you’ll find at Gencarelli’s, our fruit tarts are made with only the freshest ingredients … in this case, a variety of fruits and fresh cream.  They’re almost too pretty to eat … of course, they key word is \“almost\”!  They won’t stay around the house for long!\n";
	sSec_1_code += "</td></tr></table>";
	pastry1 = sSec_1_code;

	var pastry2 = "";
	var sSec_2_code = "";
	sSec_2_code =  setup_code + "<p><img src='images/pastry2.jpg' align='right' hspace='8' vspace='5'><h1>White Chocolate Mousse</h1>\n";
	sSec_2_code += "<p>On the order of fine European tradition, our White Chocolate Mousse is a dessert sure to please everyone!  Light, sweet and mouth-watering, we use only the freshest chocolate to create this incredible treat.\n";
	sSec_2_code += "</td></tr></table>";
	pastry2 = sSec_2_code;

	var pastry3 = "";
	var sSec_3_code = "";
	sSec_3_code =  setup_code + "<p><img src='images/pastry3.jpg' align='right' hspace='8' vspace='5'><h1>Gianduia</h1>\n";
	sSec_3_code += "<p>Another traditional Italian treat, Gianduia is a rich hazelnut mousse, with a wonderful taste and texture!  This treat is reminiscent of the finest praline, crunchy as well as palate-pleasing! Forget the Lay’s potato chips!  Here’s a treat of which you’re sure not to be able to eat just one!\n";
	sSec_3_code += "</td></tr></table>";
	pastry3 = sSec_3_code;	

	
	var pastry4 = "";
	var sSec_4_code = "";
	sSec_4_code =  setup_code + "<p><img src='images/pastry5.jpg' align='right' hspace='8' vspace='5'><h1>Capuccino Bombe</h1>\n";
	sSec_4_code += "<p>This capuccino mousse delight is made at Gencarelli’s using the freshest butter crème!  They’re light and fluffy with an absolutely magnificent cappuccino flavor! When you bring these treats home, everyone will say “You’re the ‘bombe’!!!!”\n";
	sSec_4_code += "</td></tr></table>";
	pastry4 = sSec_4_code;

	var pastry5 = "";
	var sSec_5_code = "";
	sSec_5_code =  setup_code + "<p><img src='images/pastry4.jpg' align='right' hspace='8' vspace='5'><h1>Black Forest Pastries </h1>\n";
	sSec_5_code += "<p>Just like the cake, this Black Forest mousse is richer than our other mousses!  Fresh chocolate and vanilla with black forest cherries, this is a taste sensation that’s simply irresistible.  We invite you to stop in and bring home an assortment of our pastry today!\n";
	sSec_5_code += "</td></tr></table>";
	pastry5 = sSec_5_code;
	

