var i=0;
function resize1()
{
  if (navigator.appName == 'Netscape') i=40;
  if (document.images[0]) window.resizeTo(document.images[0].width +46, document.images[0].height+156-i);
  self.focus();
 }
function resize()
{
  if (navigator.appName == 'Netscape') i=40;
  if (document.images[0]) window.resizeTo(document.images[0].width +46, document.images[0].height+156+50-i);
  self.focus();
 }
if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.forSubMenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span");
		if(el.style.display != "block"){ 
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="forSubMenu") 
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}
function NewWin(win){
  window.open(win,"foto","status=no, menubar=no, toolbar=no, scrollbars=yes");
  if (window.focus) {win.focus()}
	return false;
}
