 

var numero;
numero = Math.random();
numero = Math.round(numero * 7);
				
				

function wrTop(sez){	
	var strTop = '';

	strTop += ' <table width="758" border="0" cellspacing="0" cellpadding="10" align="center" bgcolor="#FFFFFF">';
	strTop += ' <tr>';
	strTop += ' 	<td><a href="../index.htm"><img src="../img/top_'+numero+'.jpg" width="738" height="117" alt="" border="0"></a></td>';
	strTop += ' </tr>';
	strTop += ' <tr><td><img src="../img/menu_'+sez+'.gif" width="738" height="24" alt="" border="0" usemap="#menu"></td></tr>';
	
	
	strTop += ' <tr>';
	strTop += ' <td><br><br>';	
	
	strTop += ' <map name="menu">';	
	strTop += '<area alt="" coords="419,3,463,21" href="../gallery/index.htm">';	
	strTop += '<area alt="" coords="374,3,412,21" href="../index.htm">';	
	strTop += '<area alt="" coords="469,3,528,21" href="../bio/index.htm">';	
	strTop += '<area alt="" coords="535,3,568,21" href="../link/index.htm">';	
	strTop += '<area alt="" coords="574,3,619,21" href="../fineart/index.htm">';	
	strTop += '<area alt="" coords="625,3,682,21" href="../published/index.htm">';	
	strTop += '<area alt="" coords="688,3,737,21" href="mailto:noah@noahschultz.com">';	
	strTop += '</map>';	

	//strBot += '</tr></table>';

	document.write(strTop);
 }

 
	
 

function wrBot(){	
	var strBot	 = ''; 
	 strBot += '</td></tr>';
	 strBot += '<tr>';
	 strBot += '<td><img src="../img/bot.jpg" width="738" height="26" alt="" border="0"></td>';
	 strBot += '</tr>';
	 strBot += '</table>';

	document.write(strBot);
 }
 
 
 function wrMenu(){	
	var strMenu	 = ''; 
 strMenu += '<br><br><br><img src="img/msx_'+subSez+'.gif" width="87" height="66" alt="" border="0" usemap="#menuSX">';
 strMenu += '<map name="menuSX">';
 strMenu += '<area alt="" coords="0,0,62,10" href="nature.htm">';
 strMenu += '<area alt="" coords="0,12,62,24" href="landscape.htm">';
 strMenu += '<area alt="" coords="0,26,62,37" href="underwater.htm">';
 strMenu += '<area alt="" coords="0,38,62,51" href="lifestyle.htm">';
 strMenu += '<area alt="" coords="0,52,62,63" href="personal.htm">';
 strMenu += '</map>';
 
 
	document.write(strMenu);
 }
 
 
 function OpenPop(imma,subSez) {

 	
	var immaN=imma+1;
	var immaP=imma-1;
	
	if (imma==1)immaP=15
	if (imma==15)immaN=1
	
	var win="";
	  var win = window.open("","pippo", 'width=595,height=535'); // a window object
      with (win.document) {
              open("text/html", "replace");
			  
			   write('<HTML><HEAD><meta http-equiv=Content-Type content="text/html;  charset=ISO-8859-1"><title>NOAH SHULTZ ::: p h o t o g r a p h e r</title><link rel="STYLESHEET" type="text/css" href="../main.css"><script src="../js/inc.js" type="text/javascript"></script></HEAD><BODY bgcolor="#dcdcdc"><table width="552" border="0" cellspacing="0" cellpadding="1" align="center" bgcolor="#707070"><tr><td><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#ffffff" align="center"><img src="../slide/logo.gif" alt="" width="190" height="56" vspace="15" border="0"><br><table height="367" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td><img src="img/'+subSez+'/'+imma+'.jpg" border="0"></td></tr></table><a href="javascript:OpenPop('+immaP+',\''+subSez+'\')"><img src="img/btn_prev.gif" hspace="20" vspace="15" border="0"></a><a href="javascript:OpenPop('+immaN+',\''+subSez+'\')"><img src="img/btn_next.gif" hspace="20" vspace="15" border="0"></a><br><br></td></tr></table></td></tr></table></BODY></HTML>')
			  close();
  		}
		win.focus()
		
		
}




function Apri() {
	 window.open("../slide/index.htm","condizioni","width=595,height=531, resizable=no,menubar=no,scrollBars=0");
	  }
	  

