function showBorder(pictureid){
	var theid = "thumbnail_overlay_"+pictureid;
		
	var theborder = "3px solid #ad1c27";
		
	if(document.getElementById){
		document.getElementById(theid).style.border = theborder;
	}else if (document.all){
		document.all[theid].style.backgroundColor = theborder;
	}else if(document.layers){
		document.layers[theid].backgroundColor = theborder;
	}
}

function hideBorder(pictureid){
	var theid = "thumbnail_overlay_"+pictureid;
		
	if(document.getElementById){
		document.getElementById(theid).style.border = "0";
	}else if (document.all){
		document.all[theid].style.backgroundColor = "0";
	}else if(document.layers){
		document.layers[theid].backgroundColor = "0";
	}
}

