function LoadGallery(pictureName,imageFile,titleCaption,captionText)
{
  var picture = document.getElementById(pictureName);
  if (picture.filters)
  {
    picture.style.filter="blendTrans(duration=0.5)";
    picture.filters.blendTrans.Apply();
  }
  picture.src = imageFile;
  if (picture.filters)
  {
    picture.filters.blendTrans.Play();
  }
  document.getElementById(titleCaption).innerHTML=captionText;
}

function popUp(strURL,strWidth,strHeight) {
	var strType = 'fixed';
	var strOptions="";
	//if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
	if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
	//if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
	window.open(strURL, 'newWin', strOptions);
}

function formVisibility(c, vis, cascade)
{
	var form = document.getElementById(c);
	
	var up = 'up' + cascade;
	var down = 'down' + cascade;
	
	var upA = document.getElementById(up);
	var downA = document.getElementById(down);
	
	if(vis == "on")
	{
		form.style.display = "block";
		upA.style.display = "block";
		downA.style.display = "none";
	}
	else
	{
		form.style.display = "none";
		upA.style.display = "none";
		downA.style.display = "block";
	}
	
	
}
