// JavaScript Document

function pictureWindow(linenColor)
{
<!-- Begin
	// initialize parameters
		color = '';		
		newSource = "tents/images/blank.gif"
		width = 133;
		height = 132;
		a_round1 = 0;
		a_round2 = 0;
		a_banquet = 0;
		a_napkins = 0;		


	
	
	// set the parameters for each tent
	if (linenColor == "white" ){
		color = 'White';		
		newSource = "images/linens/swatch_white.jpg";
		a_round1 = 1;
		a_round2 = 1;
		a_banquet = 1;
		a_napkins = 1;
	}
	else if (linenColor == "beige") {
		color = 'Beige';		
		newSource = "images/linens/swatch_beige.jpg";
		a_round1 = 1;
		a_round2 = 1;
		a_banquet = 1;
		a_napkins = 1;
	}
	else if (linenColor == "burgundy") {
		color = 'Burgundy';		
		newSource = "images/linens/swatch_burgundy.jpg";
		a_round1 = 1;
		a_round2 = 1;
		a_banquet = 1;
		a_napkins = 1;
	}
	else if (linenColor == "champ") {
		color = 'Champagne';		
		newSource = "images/linens/swatch_champ.jpg";
		a_round1 = 1;
		a_round2 = 1;
		a_banquet = 1;
		a_napkins = 1;
	}
	else if (linenColor == "gold") {
		color = 'Gold';		
		newSource = "images/linens/swatch_gold.jpg";
		a_round1 = 1;
		a_round2 = 1;
		a_banquet = 1;
		a_napkins = 1;
	}	
	else if (linenColor == "green") {
		color = 'Hunter Green';		
		newSource = "images/linens/swatch_green.jpg";
		a_round1 = 1;
		a_round2 = 1;
		a_banquet = 1;
		a_napkins = 1;
	}
	else if (linenColor == "lavender") {
		color = 'Lavender';		
		newSource = "images/linens/swatch_lav.jpg";
		a_round1 = 1;
		a_round2 = 1;
		a_banquet = 1;
		a_napkins = 1;
	}	
	else if (linenColor == "lemon") {
		color = 'Lemon Yellow';		
		newSource = "images/linens/swatch_lemon.gif";
		a_round1 = 1;
		a_round2 = 0;
		a_banquet = 0;
		a_napkins = 1;
	}
	else if (linenColor == "ltblue") {
		color = 'Light Blue';		
		newSource = "images/linens/swatch_ltblue.jpg";
		a_round1 = 1;
		a_round2 = 1;
		a_banquet = 1;
		a_napkins = 1;
	}
	else if (linenColor == "navy") {
		color = 'Navy Blue';		
		newSource = "images/linens/swatch_navy.jpg";
		a_round1 = 1;
		a_round2 = 1;
		a_banquet = 1;
		a_napkins = 1;
	}


	// set the new picture source
/*	document.getElementById("large").setAttribute("src",tentpicSrc);
	
/*/	// set the new layout source and attributes
	swatch = document.getElementById("linenSwatch");
	swatch.setAttribute("src",newSource);
	swatch.setAttribute("height",height);
	swatch.setAttribute("width",width);
	
	// Make the available table headers appear
	document.getElementById("linenheader").firstChild.nodeValue="Available Sizes";
	document.getElementById("roundheader").firstChild.nodeValue="Round";
	document.getElementById("banquetheader").firstChild.nodeValue="Banquet";
	document.getElementById("napkinsheader").firstChild.nodeValue = "Napkins";

	// display color name
	document.getElementById("colorfield").firstChild.nodeValue = color;

	// display availability
	if((a_round1 == 1) && (a_round2 == 1))
	{
		document.getElementById("availableround1").firstChild.nodeValue = '90"' ;
		document.getElementById("availableround2").firstChild.nodeValue = '120"';
	}else if((a_round1 == 1) && (a_round2 == 0))
	{
		document.getElementById("availableround1").firstChild.nodeValue = '90"';
		document.getElementById("availableround2").firstChild.nodeValue = '';
	}else if((a_round1 == 0) && (a_round2 == 1))
	{
		document.getElementById("availableround1").firstChild.nodeValue = '120"';
		document.getElementById("availableround2").firstChild.nodeValue = '';
	}

	
	if(a_banquet == 1)
	{
		document.getElementById("availablebanquet").firstChild.nodeValue = '72"x120"';
	}else
	{
		document.getElementById("availablebanquet").firstChild.nodeValue = '';
	}
	
	if(a_napkins == 1)
	{
		document.getElementById("availablenapkins").firstChild.nodeValue = 'Yes';
	}
	else
	{
		document.getElementById("availablenapkins").firstChild.nodeValue = 'No';
	}

	// remove the initial text
	var head2 = document.getElementById("linenwindow");
	var scriptTag = document.getElementById("tempTag");
	if(scriptTag){
		head2.removeChild(scriptTag);
	}
	
	
// End --> 
}
