function showtr(theElem){
	if (navigator.userAgent.indexOf("MSIE")!=-1){
		document.getElementById(theElem).style.display = 'inline';
	} else {
		document.getElementById(theElem).style.display = 'table-row';
	}	
}
function hidetr(theElem){
	document.getElementById(theElem).style.display = 'none';
}

function showtd(theElem){
	if (navigator.userAgent.indexOf("MSIE")!=-1){
		document.getElementById(theElem).style.display = 'inline';
	} else {
		document.getElementById(theElem).style.display = 'table-cell';
	}
}
function hidetd(theElem){
	document.getElementById(theElem).style.display = 'none';
}
function showdiv(theElem){
	if (navigator.userAgent.indexOf("MSIE")!=-1){
		document.getElementById(theElem).style.display = 'inline';
	} else {
		document.getElementById(theElem).style.display = 'block';
	}	
}
function hidediv(theElem){
	document.getElementById(theElem).style.display = 'none';
}
function ShowMenu(theElem){
	document.getElementById(theElem).style.visibility = 'visible';
}
function HideMenu(theElem){
	document.getElementById(theElem).style.visibility = 'hidden';
}
function ZoomPic(picname,layout){
	if (layout == 'v'){
		window.open ('/zoompic.asp?photo='+picname, 'zoompicv', 'scrollbars=no,resizable=no,menubar=no,location=no,toolbar=no,status=no,width=408,height=593,top=75,left=250')
	}
	if (layout == 'h'){
		window.open ('/zoompic.asp?photo='+picname, 'zoompich', 'scrollbars=no,resizable=no,menubar=no,location=no,toolbar=no,status=no,width=685,height=593,top=75,left=175')
	}
}
function MorePhotos(picnames,picno){
	window.open ('/morepics.asp?album='+picnames+'&pic='+picno, 'morepics', 'scrollbars=no,resizable=no,menubar=no,location=no,toolbar=no,status=no,width=522,height=405,top=150,left=225')
}
function PrtWin(filename){
	parent.PrintWin.location.href = filename;
	window.parent.PrintWin.focus();
}
function VideoWin(clipname){
	window.open ('/videoclip.asp?clip='+clipname, 'VideoWin', 'scrollbars=no,resizable=yes,menubar=no,location=no,toolbar=no,status=no,width=390,height=405,top=80,left=150')
}
function flipimg(ImgName,ImgURL){
	document.getElementById(ImgName).src = ImgURL;
}