var PopupImg = '';
var PopupWidth = -1
var PopupHeight = -1
var PopupFlag = 'false';
function DisplayPhoto(newPopupWidth,newPopupHeight,Text,newImg,newURL)
{PopupImg = newImg;
PopupWidth = newPopupWidth;
PopupHeight = newPopupHeight;
PopupFlag = 'true';
if(navigator.userAgent.indexOf('Mac')>0||navigator.appName=='Netscape')	
  {document.location.href=newURL;}
else
  {PhotoImage = document.images('Photo');		
  document.location.href = '#Album';
  if(PopupWidth>300)
  {PhotoImage.width=300}
  else
  {PhotoImage.width=PopupWidth}
  PhotoImage.src = newImg;
  SetPhotoText(Text);}}
function SetPhotoText(Text)
{WriteText('PhotoText',Text)}
function DisplayPopup(Path,Width2,Height2,ImgPath,UseBlank)
{if(PopupFlag=='false' && Width2>0)
	{PopupWidth = Width2
	PopupHeight = Height2}
else
	{ImgPath = '';}
if(PopupWidth>0 )
	{if(UseBlank==0)
		{window.open(Path + PopupImg + ImgPath, 'PopupPhoto', 'Width=' +PopupWidth +',Height=' +PopupHeight);}
	else
		{window.open(Path + PopupImg + ImgPath, 'PopupPhoto', '');}}}
function WriteText(strName,strContent)
{var strPreHtml='';
var strEndHtml='';
strPreHtml +='<font face="verdana" size=0">';
strEndHtml ='</font>' + strEndHtml;
if (document.all)
	{document.all(strName).innerHTML = strPreHtml + strContent + strEndHtml;
	return false;}
else if (document.layers)
	{document.layers[strName].document.open();
	document.layers[strName].document.write(strPreHtml + strContent + strEndHtml);
	document.layers[strName].document.close();
	return false;}
else if (document.getElementById)	
	{document.getElementById(strName).innerHTML = strPreHtml + strContent + strEndHtml;
	return false;}}
