function clickBooth(boothNum)
{
}

function colourBooth(boothNum)
{
	if (!document.getElementById)
		return;
	var colour = boothColour(boothNum);
	if (boothNum < 0)
		boothNum = -boothNum;
	document.getElementById('booth_'+boothNum).style.backgroundColor = colour;
}

function hilightBooth(boothNum, choiceName)
{
	if (!document.getElementById)
		return;
	if (boothNum < 0)
		boothNum = -boothNum;
	document.getElementById('booth_'+boothNum).style.backgroundColor = 'cyan';
}

function unhilightBooth(boothNum)
{
	if (!document.getElementById)
		return;
	if (boothNum < 0)
		boothNum = -boothNum;
	document.getElementById('booth_'+boothNum).style.backgroundColor = 'transparent';
}

function boothColour(boothNum)
{
	return 'transparent';
}

function complimentaryBoothName(id)
{
	switch (id)
	{
         // copy following from 'c:\cms\db\[floorplan.xls]complimentary'!I
         case 3011: return "K";
         case 3010: return "J";

         case 3008: return "H";
         case 3007: return "G";

         case 3006: return "F";
         case 3005: return "E";

         case 3004: return "D";

         case 3003: return "C";

         case 3002: return "B";
         case 3001: return "A";

         case 3026: return "Z";
         case 3025: return "Y";
         case 3024: return "X";
         case 3023: return "W";
         case 3022: return "V";
         case 3021: return "U";
         case 3020: return "T";
         case 3019: return "S";
         case 3018: return "R";
         case 3017: return "Q";
         case 3016: return "P";
         case 3015: return "O";
         case 3014: return "N";
         case 3013: return "M";
         case 3012: return "L";

         case 3009: return "I";

		default:
			return "";
	}
}

function boothUnavailable(boothNum, exhName)
{
	if (boothNum < 0)
		boothNum = -boothNum;
	booth = getFormElement('booth_' + boothNum);
	if (booth == null)
		return;
	booth.style.borderColor = 'gray';
	booth.title = exhName;
//	if (boothNum % 100 < 50 || boothNum % 100 == 99)
	        booth.innerHTML = boothName(boothNum);
        booth.style.cursor = 'arrow';
}

function boothName(boothNum)
{
	if (boothNum >= 3000)
		return complimentaryBoothName(boothNum);
	else
		return boothNum;
}
