  lastswitch = '';

function switchdown(id) {

	if(document.getElementById(id).style.display == 'none') {
		
		document.getElementById(id).style.display = 'inline';
		
		
	}
	else {
		document.getElementById(id).style.display = 'none';
		
	}
	
	if(lastswitch != '' && lastswitch != id) {
		document.getElementById(lastswitch).style.display = 'none';
	}
	lastswitch = id;
	
}

function zoomwindow(file,name,width,height) {
	scr="no";
  if((width+60)>screen.width) {
  	width=(screen.width-60);
  	scr="yes";
  }
  if((height+90)>screen.height) {
  	height=(screen.height-90);
  	scr="yes";
  }
  zoomwin=window.open(file, name, "height="+height+",left=20,location=no,menubar=no,resizable=no,screenX=20,screenY=20,scrollbars="+scr+",status=no,toolbar=no,top=20,width="+width);
  zoomwin.resizeTo(width,height);
  zoomwin.focus();
}


