
// 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 += "<h1>Wedding Cakes</h1><p>Your special day is arriving, and you want to make sure everything is perfect! Let Gencarelli’s help! We’ve been serving the needs of area brides for almost 30 years, and have been a part of what’s made thousands of weddings the special day it’s supposed to be!  Each cake is custom-made, and we invite you to make an appointment with one of our staff to discuss your particular Wedding.  Feel free to take a look at the sample photographs above.</p>\n";
	sSec_0_code += "</td></tr></table>";
	sBeginning_code = sSec_0_code;

	var wed1 = "";
	var sSec_1_code = "";
	sSec_1_code =  setup_code + "<p><img src='images/cake1.jpg' align='right' hspace='8' vspace='5'><h1>Traditional #1</h1>\n";
	sSec_1_code += "<p>We use that word loosely around here.  At Gencarelli’s, nothing is traditional … except for the picture of the bride and groom serving a piece of cake to each other!  Every cake is custom-made … the cake pictured here served 180-200 people and included beautiful pink flowers to match the bridesmaid dresses.</p>\n";
		sSec_1_code += "</td></tr></table>";
	wed1 = sSec_1_code;
	
	var wed2 = "";
	var sSec_2_code = "";
	sSec_2_code =  setup_code + "<p><img src='images/cake5sm.jpg' align='right' hspace='8' vspace='5'><h1>Traditional #2</h1>\n";
	sSec_2_code += "<p>We take special care with every cake we create … an approach you’ll appreciate when we meet with you to discuss your special day!  You have your choice of filling, type of cake, colors,  flowers … please come in and tell us what you’re looking for!\n";
	sSec_2_code += "</td></tr></table>";
	wed2 = sSec_2_code;

	var wed3 = "";
	var sSec_3_code = "";
	sSec_3_code =  setup_code + "<p><img src='images/cake3.jpg' align='right' hspace='8' vspace='5'><h1>Basket Weave</h1>\n";
	sSec_3_code += "<p>This is another “traditionally-styled” Gencarelli cake featuring a basket-weave using rolled fondant.  We can create cakes to match any size wedding – from 50 to 500.  We’d love to hear from you about your special day.  Call us today to make an appointment.\n";
	sSec_3_code += "</td></tr></table>";
	wed3 = sSec_3_code;

	var wed4 = "";
	var sSec_4_code = "";
	sSec_4_code =  setup_code + "<p><img src='images/cake4.jpg' align='right' hspace='8' vspace='5'><h1>Spring Wedding</h1>\n";
	sSec_4_code += "<p>Are you getting the picture yet?  These are just a few of the many styles of cakes we’ve designed over the years! In fact, Gencarelli’s has been a part of thousands of special wedding days \… from the first cake we made in 1975 to today, we approach every wedding as the truly unique event it is!\n";
	sSec_4_code += "</td></tr></table>";
	wed4 = sSec_4_code;

	var wed5 = "";
	var sSec_5_code = "";
	sSec_5_code =  setup_code + "<p><img src='images/cake2.jpg' align='right' hspace='8' vspace='5'><h1>Spring Wedding</h1>\n";
	sSec_5_code += "<p>Designed for a spring wedding, this beautiful cake served approximately 300 guests and featured a wonderful variety of flowers created with rolled fondant.  We love helping to make weddings the special days they’re meant to be, and promise to come up with a cake that is totally customized to your particular need!\n";

	sSec_5_code += "</td></tr></table>";
	wed5 = sSec_5_code;
	

