// source for common gbtribune.com code

/* ------------- TABS ------------ */
function tabHide (tabName)
	{
	var elem = document.getElementsByTagName('span');
	var arry = new Array();
	
	for (i = 0, j = 0; i < elem.length; i ++)
		{
		att = elem[i].getAttribute('name');
		
		if (att == tabName)
			{
			arry[j] = elem[i];
			j++;
			}
		}
		
	i = 0;	
	while ( arry[i] )
		{
		arry[i].className = 'tabdeactive';
		
		document.getElementById(tabName+'_'+i+'_content').style.display = 'none';
		i++;
		
		}
	}

function tabOver (tabId, tabName)
	{
	tabHide(document.getElementById(tabId).getAttribute('name'));
	document.getElementById(tabId).className = 'tabactive';
	document.getElementById(tabId+'_content').style.display = 'inline';
	}
	
/* ------------- DISPLAY LARGE PIC WHEN MOUSE OVER THUMBNAIL------------ */
function showImage(image)
	{
	document.getElementById('largeImage').src = image;
	}