function PhotoWindow(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    ViewPhoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function ViewPhoto(img){
  largh=foto1.width+20;
  altez=foto1.height+30;
  stringa="width="+largh+",height="+altez;
  finestra=window.open(img,"",stringa);
}
function switchMenu(obj,img) {
	var el = document.getElementById(obj);
	if ( el.style.display != "none" ) {
		el.style.display = 'none';
		document.getElementById(img).src="/images/members/plus.gif";
	}
	else {
		el.style.display = '';
		document.getElementById(img).src="/images/members/minus.gif";
	}
}
function switchMenuNoImg(obj) {
	var el = document.getElementById(obj);
	if ( el.style.display != "none" ) {
		el.style.display = 'none';
	}
	else {
		el.style.display = '';
	}
}
function switchMenuShowHide(obj, sState) {
	var el = document.getElementById(obj);
	if ( sState != "show" ) {
		el.style.display = 'none';
	}
	else {
		el.style.display = '';
	}
}
function roll(img_name, img_src)
{
document[img_name].src = img_src;
}
function confirmPop(sMsg){
var bConfirm=confirm(sMsg)
if (bConfirm == false) {
  return false; }
else {
  return true; }
}



