function ESHeader(mainheader)
{ 
  this.mainheader = mainheader;
  this.show = showESHeader;
}

function showESHeader()
{  
  if(FirstHeader == true)
{buf+='<table width=100% border=0 cellspacing=0 cellpadding=0>'+
      '<tr>'+
	'<td width=50%>&nbsp;</td>'+
	'<td valign=top><center>'+
	 '<table width=700 border=0 cellspacing=0 cellpadding=0>'+
	 '<tr>'+
	 '<td colspan=3><img src=img/bgw.gif height=16 width=700 border=0></td>'+
	 '</tr>'+
	 '<tr>'+
	 '<td align=right colspan=3><a href="index.html"><img src=img/logo.gif height=50 width=288 border=0></a></td>'+
	 '</tr>'+
	 '<tr>'+
	 '<td colspan=3 align=right>'+
	  '<img src=img/bgw.gif height=19 width=340 border=0>'+
	  '<img src=img/online.gif height=19 width=55 border=0><img src=img/bgw.gif height=19 width=121 border=0><img src=img/price.gif height=19 width=114 border=0></td>'+
	 '</tr>'+
	 '<tr><td width=227 valign=top align=right><img src=img/bgw.gif width=227 height=10 border=0><br>'+
	'<nobr><i><b>Скачать прайс-лист (zip, doc) </b></i><a href="price10.html" onMouseOver=chg("11","bt10") onMouseOut=chg("1","bt10")><img src=img/buttom.gif height=11 width=18 border=0 name=bt10></a><br>'+
	'<nobr><i><b>мини АТС </b></i><a href="price1.html" onMouseOver=chg("11","bt1") onMouseOut=chg("1","bt1")><img src=img/buttom.gif height=11 width=18 border=0 name=bt1></a><br>'+
	'<nobr><i><b>средства связи </b></i><a href="price2.html" onMouseOver=chg("11","bt2") onMouseOut=chg("1","bt2")><img src=img/buttom.gif height=11 width=18 border=0 name=bt2></a><br>'+
	'<nobr><i><b>копировальная техника </b></i><a href="price3.html" onMouseOver=chg("11","bt3") onMouseOut=chg("1","bt3")><img src=img/buttom.gif height=11 width=18 border=0 name=bt3></a><br>'+
	'<nobr><i><b>системы видеонаблюдения </b></i><a href="price4.html" onMouseOver=chg("11","bt4") onMouseOut=chg("1","bt4")><img src=img/buttom.gif height=11 width=18 border=0 name=bt4></a><br>'+
	'<nobr><i><b>системы аудиоконференции </b></i><a href="price5.html" onMouseOver=chg("11","bt5") onMouseOut=chg("1","bt5")><img src=img/buttom.gif height=11 width=18 border=0 name=bt5></a><br>'+
	'<nobr><i><b>(конгресс-системы) </b></i><img src=img/bgw.gif height=11 width=18 border=0></a>&nbsp;<br>'+
	'<nobr><i><b>компьютеры, мониторы </b></i><a href="price6.html" onMouseOver=chg("11","bt6") onMouseOut=chg("1","bt6")><img src=img/buttom.gif height=11 width=18 border=0 name=bt6></a><br>'+
	'<nobr><i><b>принтеры, пишущие машинки </b></i><img src=img/bgw.gif height=11 width=18 border=0></a>&nbsp;<br>'+
	'<nobr><i><b>аудиотехника </b></i><a href="price7.html" onMouseOver=chg("11","bt7") onMouseOut=chg("1","bt7")><img src=img/buttom.gif height=11 width=18 border=0 name=bt7></a><br>'+
	'<nobr><i><b>MP3 плеер, диктофоны </b></i><img src=img/bgw.gif height=11 width=18 border=0></a>&nbsp;<br>'+
	'<nobr><i><b>кондиционеры </b></i><a href="price8.html" onMouseOver=chg("11","bt8") onMouseOut=chg("1","bt8")><img src=img/buttom.gif height=11 width=18 border=0 name=bt8></a><br>'+
	'<nobr><i><b>расходные материалы </b></i><a href="price9.html" onMouseOver=chg("11","bt9") onMouseOut=chg("1","bt9")><img src=img/buttom.gif height=11 width=18 border=0 name=bt9></a><br>'+
	'<nobr><i><br><br><br><P><FONT size=2><b>салон <i>"Оргтехника"</i></b><br><i> г.Н.Новгород, ул.Невзоровых,д.85 <br>тел/факс   (8312)78-79-86,78-79-87,78-79-88</i><br></td>'+
	'<td width=13><img src=img/bgw.gif height=1 width=33 border=0></td>'+
	'<td width=470 align=right valign=top><br><b><i>'+this.mainheader+'</i></b>'+
 	'<table width=470 border=0 cellspacing=0 cellpadding=0><tr><td><img src=img/bgw.gif width=100 height=5></td>'+
        '<td><img src=img/bgw.gif width=340 height=5></td><td><img src=img/bgw.gif width=30 height=5></td></tr>';

   FirstHeader = false;
  }
}      
/************************************************************************** Curent work place */
function Product(ID,name,description,price)
{ 
  this.ID = ID
  this.show = showProduct;
  this.name = name;
  this.price = price;
  this.description = description;
}
function showProduct()                
{  if(this.ID =="top"){buf+='<tr><td colspan=3><img src=img/bgw.gif width=450 height=15></td></tr>'+
                            '<tr><td align=left valign=top colspan=3><b>'+this.name+'</b><hr width=80% align=left valign=top></td></tr>';}
   else{if(this.ID =="down"){buf+='<tr><td align=left valign=top colspan=3><i>'+this.name+'</i><br></td></tr>';}
   else{if(this.ID ==""){buf+='<tr><td align=left valign=top>&nbsp;&nbsp;'+this.name+'</td><td align=left valign=top>'+this.description+'</td><td align=right valign=top>'+this.price+'</td></tr>';}   
   else{buf+='<tr><td align=left valign=top>&nbsp;&nbsp;<a href="descript/'+this.ID+'.html" class="td">'+this.name+'</a></td><td align=left valign=top >'+this.description+'</td><td align=right valign=top>'+this.price+'</td></tr>\n';}
}}
}


