
// 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,220);
		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 += "<p><h1>Cookies</h1><p>At Gencarelli’s, we have a large selection of cookies for your enjoyment, especially traditional Italian cookies!  Our emphasis is to use only the freshest and best-quality ingredients.  Everything is baked daily, too. Take a look at some of our cookies here.\n";
	sSec_0_code += "</td></tr></table>";
	sBeginning_code = sSec_0_code;

	var cookie1 = "";
	var sSec_1_code = "";
	sSec_1_code =  setup_code + "<p><img src='images/cookie1.jpg' align='right' hspace='8' vspace='5'><h1>Pignoli</h1>\n";
	sSec_1_code += "<p>This traditional Italian cookie has a soft, chewy center, and is coated with pine nuts.  We make our Pignoli with the freshest almond paste, so they’re always pleasantly sweet and delicious.  While they’re usually thought of as a Christmas cookie, We have Pignoli all year round, so stop in a pick some up today! </p>\n";
	sSec_1_code += "</td></tr></table>";
	cookie1 = sSec_1_code;
	
	var cookie2 = "";
	var sSec_2_code = "";
	sSec_2_code =  setup_code + "<p><img src='images/cookie2.jpg' align='right' hspace='8' vspace='5'><h1>S Cookies</h1>\n";
	sSec_2_code += "<p>Another traditional Italian cookie, \“S\” cookies are a great \“start your day off, coffee-dunking\” cookie, made from short dough.  They’re a great addition to an assortment tray, but they won’t stay in the cookie jar for very long!!!</p>\n";
	sSec_2_code += "</td></tr></table>";
	cookie2 = sSec_2_code;

	var cookie3 = "";
	var sSec_3_code = "";
	sSec_3_code =  setup_code + "<p><img src='images/cookie3.jpg' align='right' hspace='8' vspace='5'><h1>Hazelnut Biscotti</h1>\n";
	sSec_3_code += "<p>In Italian, biscotti means \“twice-cooked\”. They’re light, crunchy and sweet, with a delicious, nutty flavor.  These biscotti are superb with fine coffees or dessert wines!  We offer a variety of flavored biscotti … come in a take a look at our wonderful selection!</p>\n";
	sSec_3_code += "";
	sSec_3_code += "";
	sSec_3_code += "</td></tr></table>";
	cookie3 = sSec_3_code;

	var cookie4 = "";
	var sSec_4_code = "";
	sSec_4_code =  setup_code + "<p><img src='images/cookie4.jpg' align='right' hspace='8' vspace='5'><h1>Chocolate Hazelnut Biscotti</h1>\n";
	sSec_4_code += "<p>A slight variation of the traditional hazelnut, these biscotti are covered in rich, delicious chocolate!  We use only the freshest ingredients, and make our biscotti every day!  An assortment makes a wonderful housewarming gift.  Give us a call and we’ll tell you more about our assortment trays.</p>\n";
	sSec_4_code += "</td></tr></table>";
	cookie4 = sSec_4_code;

	var cookie5 = "";
	var sSec_5_code = "";
	sSec_5_code =  setup_code + "<p><img src='images/cookie5.jpg' align='right' hspace='8' vspace='5'><h1>Regina Sesame Cookies</h1>\n";
	sSec_5_code += "<p>This is another of our traditional favorites, originating in Regina, Italy.  These cookies are similar to the \“S\” cookie, but are covered with fresh sesame seeds.  Our Regina Sesame cookies are soft and sweet.  Pick some up on your way to the office, and see the smiles you get!</p>\n";
	sSec_5_code += "</td></tr></table>";
	cookie5 = sSec_5_code;
	
