// JavaScript Document

// text for each tent
a20x20	= 	'20x20 with 4 60" Round Tables with 8 per Table';
a20x30	= 	'20x30 with 5 60" Round Tables with 8 per Table and one' + " 8' Table";
a20x40	= 	'20x40 with 7 60" Round Tables with 8 per Table and one' + " 8' Table";
a30x30	= 	'30x30 with 7 60" Round Tables with 8 per Table and 3' + " 8' Tables";
a30x45	= 	'30x45 with 10 60" Round Tables with 8 per Table and 3' + " 8' Tables and 16x12 floor";
a30x60	= 	'30x60 frame tent with 12 60" Round Tables with 8 per Table and 5' + " 8' Tables and 16x16 floor";
a40x60	= 	'40x60 with 17 60" Round Tables with 8 per Table and 6' + " 8' Tables and 16x20 floor";
a40x80	= 	'40x80 with 24 60" Round Tables with 8 per Table and 7' + " 8' Tables and 16x20 floor";
a40x100	= 	'40x100 with 30 60" Round Tables with 8 per Table and 9' + " 8' Tables";


function pictureWindow(tentSize)
{
<!-- Begin
		// initialize parameters		
		newtitle 	= a20x20;
		newSource 	= "images/tents/blank"
		tentpicSrc 	= "images/tents/blank.gif";
		picalt		= "";
		t_height 	= 0;
		t_width 	= 162;
		m_height 	= 270;
		m_width 	= 405;
		height 		= 400;
		width 		= 500;
		sqft 		= '0';
		stuppl 		= '0';
		buffppl 	= '0';
		sitdnppl 	= '0';

	// set the parameters for each tent
	if (tentSize == "20x20" ){
		newtitle = a20x20;
		newSource = "images/layouts/20x20layout"
		tentpicSrc = "images/tents/20x20_frame_tent.jpg";
		picalt = "20x20 Frame Tent";
		t_height = 162;
		sqft = '400';
		stuppl = '80';
		buffppl = '57';
		sitdnppl = '40';
	}
	else if (tentSize == "20x30") {
		newtitle = a20x30;
		newSource = "images/layouts/20x30layout"
		tentpicSrc = "images/tents/20x30_pole_tent.jpg";
		picalt = "20x30 Pole Tent";
		t_height = 108;
		sqft = '600';
		stuppl = '120';
		buffppl = '86';
		sitdnppl = '60';
	}
	else if (tentSize == "20x40") {
		newtitle = a20x40;
		newSource = "images/layouts/20x40layout"
		tentpicSrc = "images/tents/20x40_pole_tent.jpg";
		picalt = "20x40 Pole Tent";
		t_height = 81;
		sqft = '800';
		stuppl = '160';
		buffppl = '114';
		sitdnppl = '80';
	}
	else if (tentSize == "30x30") {
		newtitle = a30x30;
		newSource = "images/layouts/30x30layout"
		tentpicSrc = "images/tents/30x30_frame_tent.jpg";
		picalt = "30x30 Frame Tent";
		t_height = 162;
		sqft = '900';
		stuppl = '180';
		buffppl = '129';
		sitdnppl = '90';
	}
	else if (tentSize == "30x45") {
		newtitle = a30x45;
		newSource = "images/layouts/30x45layout"
		tentpicSrc = "images/tents/30x45_frame_tent.jpg";
		picalt = "30x45 Frame Tent";
		t_height = 108;
		sqft = '1350';
		stuppl = '270';
		buffppl = '192';
		sitdnppl = '135';
	}
	else if (tentSize == "30x60") {
		newtitle = a30x60;
		newSource = "images/layouts/30x60layout"
		tentpicSrc = "images/tents/30x60_pole_tent.jpg";
		picalt = "30x60 Pole Tent";
		t_height = 81;
		sqft = '1800';
		stuppl = '360';
		buffppl = '257';
		sitdnppl = '180';
	}
	else if (tentSize == "40x60") {
		newtitle = a40x60;
		newSource = "images/layouts/40x60layout"
		tentpicSrc = "images/tents/40x60_pole_tent.jpg";
		picalt = "40x60 Pole Tent";
		t_height = 108;
		sqft = '2400';
		stuppl = '480';
		buffppl = '343';
		sitdnppl = '240';
	}
	else if (tentSize == "40x80") {
		newtitle = a40x80;
		newSource = "images/layouts/40x80layout"
		tentpicSrc = "images/tents/40x80_pole_tent.jpg";
		picalt = "40x80 Pole Tent";
		t_height = 81;
		sqft = '3200';
		stuppl = '640';
		buffppl = '457';
		sitdnppl = '320';
	}
	else if (tentSize == "40x100") {
		newtitle = a40x100;
		newSource = "images/layouts/40x100layout"
		tentpicSrc = "images/tents/40x100_pole_tent.jpg";
		picalt = "40x100 Pole Tent";
		t_height = 65;
		sqft = '4000';
		stuppl = '800';
		buffppl = '571';
		sitdnppl = '400';
	}
	
	// set the new picture source
	maintentpic = document.getElementById("large");
	maintentpic.setAttribute("height",m_height);
	maintentpic.setAttribute("alt",picalt);
	maintentpic.setAttribute("width",m_width);
	maintentpic.setAttribute("src",tentpicSrc);
	
	// set the new layout source and attributes
	layoutpic = document.getElementById("layout");
	layoutpic.setAttribute("height",t_height);
	layoutpic.setAttribute("width",t_width);
	layoutpic.setAttribute("src",newSource + '.small.gif');
	
	// update the description text for each entry
	document.getElementById("largeWindow").firstChild.nodeValue=newtitle;
	document.getElementById("clicklayout").firstChild.nodeValue="(click image for larger picture)";
	
	// realign the table cell that holds the main picture (was 'middle' to 
	// center the initial text for display purposes)
	document.getElementById("largeTable").setAttribute("valign","top");

	// remove the initial text
	var head2 = document.getElementById("largeTable");
	var scriptTag = document.getElementById("tempTag");
	if(scriptTag){
		head2.removeChild(scriptTag);
	}
	
	// LAYOUT LINK
	paramsTag = 'height=' + height +', width=' + width + ', toolbar=0, scrollbars=0';
	newHref = "javascript:winopen('layouts/" + tentSize + ".htm','layout','" + paramsTag + "');" ;
	document.getElementById("layoutlink").setAttribute('href',newHref);
//	document.getElementById("layout").style.display="inline";
	
	// ATTRIBUTES TABLE
	
	// turn on display, background colors and table border
//	document.getElementById("tentAttributesTable").style.display="inline";
	document.getElementById("tentAttributesTable").setAttribute('border','1');
	document.getElementById("capacitycell").setAttribute("bgColor","3D9EFF");
	document.getElementById("sqftcell").setAttribute("bgColor","00FFFF");
	document.getElementById("cocktailcell").setAttribute("bgColor","00FFFF");
	document.getElementById("buffetcell").setAttribute("bgColor","00FFFF");
	document.getElementById("sitdowncell").setAttribute("bgColor","00FFFF");
	document.getElementById("sqfootcell").setAttribute("bgColor","FFFFCC");
	document.getElementById("cocktailpplcell").setAttribute("bgColor","FFFFCC");
	document.getElementById("buffetpplcell").setAttribute("bgColor","FFFFCC");
	document.getElementById("sitdownpplcell").setAttribute("bgColor","FFFFCC");
	
	// turn on headers
    document.getElementById("tentcapacity").firstChild.nodeValue = "Capacity";
	document.getElementById("sqfootage").firstChild.nodeValue = "Sq. Footage:";
	document.getElementById("cocktail").firstChild.nodeValue = "* Stand-Up/Cocktail:";
	document.getElementById("numpeople1").firstChild.nodeValue = "(# of People) ";
	document.getElementById("buffet").firstChild.nodeValue = "* Buffet Dinner:";
	document.getElementById("numpeople2").firstChild.nodeValue = "(# of People) ";
	document.getElementById("sitdown").firstChild.nodeValue = "* Sit Down Dinner:";
	document.getElementById("numpeople3").firstChild.nodeValue = "Long Tables ";
	document.getElementById("numpeople4").firstChild.nodeValue = "(# of People) ";
	
	// write capacity warning
	document.getElementById("capacitywarning").firstChild.nodeValue = "* Seating capacity does not allow for aisles, dance floors, service area, etc.";
	
	// write capacity values
	document.getElementById("sqfoot").firstChild.nodeValue = sqft;
	document.getElementById("cocktailppl").firstChild.nodeValue = stuppl;
	document.getElementById("buffetppl").firstChild.nodeValue = buffppl;
	document.getElementById("sitdownppl").firstChild.nodeValue = sitdnppl;
	
// End --> 
}
