 function openWin(url1,title)
 {
   var url1;
   img = window.open("","","width=800,height=600,scrollbars=no, resizable=yes");  
   img.document.write('<title>'+title+'</title><body leftmargin=5 rightmargin=5 marginwidth=5 topmargin=5 bottommargin=5 marginheight=5><center><img src="'+url1+'" border=1 style="border-color: DEDEDE"><br><br><a href="#" style="font-family : Verdana, Geneva, Arial; color : 3399FF; font-size : 11px;" onclick="window.close()"><b>закрыть</b></a><br><br></center></body>');
  }		
 
 function openWin2(url1,title)
 {
   var imGo = new Image();
   imGo.src = url1;
     var w = imGo.width;
   var h = imGo.height;
 
   if (w > 970 || w==0) {
     h = (h * 970)/w
     w = 970;
     }
   if (h > 730 || h==0 ) {
     w = (w * 730)/h
 	h = 730;
 	}
   if (w>0 && h>0) {	
   img = window.open("","","width="+(w+30)+",height="+(h+70)+",scrollbars=no, resizable=yes");
   img.document.write('<title>'+title+'</title><body leftmargin=5 rightmargin=5 marginwidth=5 topmargin=5 bottommargin=5 marginheight=5><center><img src="'+url1+'" border=1 width="'+w+'" height="'+h+'" style="border-color: #DEDEDE"><br><br><a href="#" style="font-family : Verdana, Geneva, Arial; color : 3399FF; font-size : 11px;" onclick="window.close()"><b>закрыть</b></a><br><br></center></body>');
   }
   else
   {
   img = window.open("","","width=1000,height=800,scrollbars=no, resizable=yes");
   img.document.write('<title>'+title+'</title><body leftmargin=5 rightmargin=5 marginwidth=5 topmargin=5 bottommargin=5 marginheight=5><center><img src="'+url1+'" border=1 style="border-color: #DEDEDE"><br><br><a href="#" style="font-family : Verdana, Geneva, Arial; color : 3399FF; font-size : 11px;" onclick="window.close()"><b>закрыть</b></a><br><br></center></body>');
   }
  }
  
  
  
  startList = function() {
      if (document.all) {
            navRoot = document.getElementById("nav");
            for (i=0; i<navRoot.childNodes.length; i++) {
                  node = navRoot.childNodes[i];
                  if (node.nodeName=="LI") {
                        node.onmouseover=function() {
                              this.className+=" over";
                        }
                        node.onmouseout=function() {
                              this.className=this.className.replace(" over", "");                              
                        }
                  }
            }
      }
}



	function onvalidate(){
		if (document.bron.phone.value=="") {
		alert("Номер телефона не указан!");
		document.bron.phone.focus();
		return false;
		}
	}



window.onload=startList;

