function updateContent() {
	$('videoiframe').className = 'video';				

	// grab all links within the thumbs container to set behavior
	var thumbs = $ES('a', 'thumbs-col');
	
	for (var i = 0; i < thumbs.length; i++) {

		thumbs[i].addEvent('mouseenter', function() {
			// the last section of the link id matches the id of the elt that holds the description
			var match = this.id.split('link-');
			match = match[1];

			$(match).firstChild.nodeValue = ": " + this.firstChild.alt;
		});
		
		
		thumbs[i].addEvent('mouseleave', function() {
			// the last section of the link id matches the id of the elt that holds the description
			var match = this.id.split('link-');
			match = match[1];
		
			$(match).firstChild.nodeValue = "";
		});


		thumbs[i].onclick = function() {
			// reset thumbs so none are highlighted
			var aList = $ES('a', 'thumbs-col');
			for(var i=0; i<aList.length; i++) {
				aList[i].className = "";
			}

			// highlight the clicked link
			this.className = 'here';

			// reset the video or image being displayed
			frames['videoiframe'].location.href = this.href;
			
    var iframe = frames['videoiframe'];
    var doc = null; 
    
    if(iframe.contentDocument)  
       // Firefox, Opera  
       iframe.doc = iframe.contentDocument;  
    else if(iframe.contentWindow)  
       // Internet Explorer  
       iframe.doc = iframe.contentWindow.document;  
    else if(iframe.document)  
       // Others?  
       iframe.doc = iframe.document;  
   
    if(iframe.doc == null)  
       throw "Document not initialized";  

			// get the id from the url of the clicked thumb
			var match = this.id.split('-link');
			match = match[0];

			// get the image or video number from the url of the clicked thumb
			var cur = parseInt(match.replace(/\D/g,'')); 

			// select the matching blurb from the hidden list of blurbs
			var blurbList = $ES('li', $('blurbs'));
			var selected = blurbList[cur-1];

			// update the displayed blurb text
			if(selected) {
				var blurbTxt = "";
				if (selected.className == "smaller") {
					$('cur-blurb').className = "smaller";	
				} else {
					$('cur-blurb').className = "";
				}
				for(var i = 0; i < selected.childNodes.length; i++){
					// this is not an ideal solution but it was a quick design demand well after launch to be able to have breaks in the blurb text.
					if (selected.childNodes[i].nodeValue) {
						blurbTxt += selected.childNodes[i].nodeValue;
					} else {
						blurbTxt += "<br />";
					}					
				}
				$('cur-blurb').innerHTML = blurbTxt;
							
				// classify iframe according to media type being displayed
				if (this.href.indexOf('html') == -1) {	
					$('videoiframe').className = 'image';				
				} else {
					$('videoiframe').className = 'video';				
				}
			}
			
			return false;
		};
	} // close for loop

}



//window.addEvent('domready', updateContent);
