function mch(v) {
	document.getElementById(v).style.display = (document.getElementById(v).style.display == 'none') ? 'inline' : 'none';
}
function chlang(l) {
	document.cookie = 'lspa='+l;
	window.location.reload();
}
var win, uri = null;
function pop(url, snm, vw, vh) {
  if (win == null || win.closed || uri != url) {
	  uri = url;
	  wx = vw ? ((screen.width/2)-(vw/2)) : 0;
	  wy = vh ? ((screen.height/2)-(vh/2)) : 0;
	  dx = vw ? vw : 600;
	  dy = vh ? vh : 400;
	  win = window.open(url, snm, "menubar=no,location=no,resizable=yes,scrollbars=yes,width="+dx+",height="+dy+",left="+wx+",top="+wy);
  }
  win.focus();
}
var ni = 1;
var nm = 9;
function vnav(nk) {
	if (nk >= 1 && nk <= nm) {
		document.getElementById('pimg').src='img/spa-'+nk+'.jpg';
		document.getElementById('vbinfo').innerHTML=nk-1;
		document.getElementById('vfinfo').innerHTML=nm-nk;
		ni=nk;
	}
}