<!--

function pageLoad()
{
	dropDownFix();	

	if (document.images)
    	{
      		pio = new Image();
      		img = new Array();
      		img[0] = "Pictures/Custom/Drain1.jpg";
      		img[1] = "Pictures/Custom/Drain2.jpg";
      		img[2] = "Pictures/Custom/LeafCatch1.jpg";
      		img[3] = "Pictures/Custom/LeafCatch2.jpg";
      		img[4] = "Pictures/Custom/WaterSpouts1.jpg";
      		img[5] = "Pictures/Custom/WaterSpouts2.jpg";

       		for(var i=0; i<=5; i++)
		{
         		pio.src = img[i];
		}
    	}
}

function switchTV(tv, n)
{

	document.getElementById('brooksTVimage').src = 'tvLogo.jpg';

	if(n <= 5){
		document.getElementById('thumbs').style.width = String(n * 140) + 'px';
	}
	else{
		document.getElementById('thumbs').style.width = '700px';
	}	

	var str = "";

	switch(tv)
	{
	case 'Drain':
		for(var i=1; i<=n; i++)
		{
			str += "<a class='thumbLink' title='"
						+ tv + " " + String(i) + 
									"'><img id='thumb"
						+ String(i) + 
									"' alt='"
						+ tv + " " + String(i) + 
									"' src='Pictures/Custom/"
						+ tv + String(i) + 
									".jpg' width='138px' height='92px' onmouseOver=\"channelChange('"
						+ String(i) + 
									"', false)\" /></a>";
		}
		document.getElementById('thumbs').innerHTML = str;
		break;

	case 'LeafCatch':
		for(var i=1; i<=n; i++)
		{
			str += "<a class='thumbLink' title='Leaf Catcher "
						+ String(i) + 
									"'><img id='thumb"
						+ String(i) + 
									"' alt='Leaf Catcher "
						+ String(i) + 
									"' src='Pictures/Custom/"
						+ tv + String(i) + 
									".jpg' width='138px' height='92px' onmouseOver=\"channelChange('"
						+ String(i) + 
									"', false)\" /></a>";
		}
		document.getElementById('thumbs').innerHTML = str;
		break;

	case 'WaterSpouts':
		for(var i=1; i<=n; i++)
		{
			str += "<a class='thumbLink' title='Water Spouts "
						+ String(i) + 
									"'><img id='thumb"
						+ String(i) + 
									"' alt='Water Spouts "
						+ String(i) + 
									"' src='Pictures/Custom/"
						+ tv + String(i) + 
									".jpg' width='138px' height='92px' onmouseOver=\"channelChange('"
						+ String(i) + 
									"', false)\" /></a>";
		}
		document.getElementById('thumbs').innerHTML = str;
		break;

	default:
		alert("No Javascript case made for this choice");
	}
}




//-->