/* Event.observe
-----------------------------------------------------------------------------
Programmer's Name:	Bryan Black
Company: ETSU: Emergeing Technology Center
Creation Date: 11/18/2008                    Date of Last Modification:11/18/2008
e-mail address:zbjb35@goldmail.etsu.edu
----------------------------------------------------------------------------
Purpose - 
	getGallery will grab all the photos from the database from the current 
	album the user has chosen it will return only the raw data no formatting 
-----------------------------------------------------------------------------
Identifier dictionary

-----------------------------------------------------------------------------
Notes on specifications, special algorithms, and assumptions.

-----------------------------------------------------------------------------
*/
Event.observe(window,'load',function(){
	var thumbDiv = document.getElementById('thumbs'); 
	var thumbContent = document.getElementById('thumb_content'); 
	var numImg = thumbDiv.getElementsByTagName('img').length;
	var width = ((numImg * 145) + (numImg * 5) + (numImg * 2)); 
	
	if(numImg > 0) {
		thumbContent.style.width = width + 'px'; 
	}




	
 
})