/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Jeremy Keith / Anonymous | http://www.alistapart.com/articles/imagegallery/ */
function showPic(photo) {
	if (document.getElementById) {
		document.getElementById('placeholder').src = photo.href;
		/*if (photo.title) {
			document.getElementById('desc').childNodes[0].nodeValue = photo.title;
		} else {
			document.getElementById('desc').childNodes[0].nodeValue = photo.childNodes[0].nodeValue;
		}*/
		return false;
	} else {
		return true;
	}
}

function ShowText(photo_id) {	
	var photo_text_div_id = "photo_text_div" + photo_id;
	var author_div_id = "author_div" + photo_id;
	
	if (previous_photo_text_div) previous_photo_text_div.style.display = "none";
	if (previous_author_text_div) previous_author_text_div.style.display = "none";
	
	photo_text_div = document.getElementById(photo_text_div_id);
	author_text_div = document.getElementById(author_div_id);
	
	if (photo_text_div) {
		previous_photo_text_div = photo_text_div;
		photo_text_div.style.display="block";
	}
	if (author_text_div) {
		previous_author_text_div = author_text_div;
		previous_author_text_div.style.display="block";
	}
	return true;
}

/*
var previousToggle=null;
function toggleMe(a){
  var e=document.getElementById(a);
  if(!e)return true;
  if(e.style.display=="none"){
    e.style.display="block";
    if(previousToggle)previousToggle.style.display="none";
    previousToggle=e;
  }
  
  return true;
}
*/
