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=20 border=0><img src=img/opt.gif height=19 width=215 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>мини АТС </b></i><a href="price_o1.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="price_o2.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="price_o3.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="price_o4.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="price_o5.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="price_o6.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="price_o7.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="price_o8.html" onMouseOver=chg("11","bt9") onMouseOut=chg("1","bt9")><img src=img/buttom.gif height=11 width=18 border=0 name=bt9></a><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=80 height=5></td>'+
        '<td><img src=img/bgw.gif width=270 height=5></td>'+
	'<td><img src=img/bgw.gif width=40 height=5></td><td><img src=img/bgw.gif width=40 height=5></td><td><img src=img/bgw.gif width=40 height=5></td></tr>';

   FirstHeader = false;
  }
}      
/************************************************************************** Curent work place */
function Product(ID,name,description,pricea,priceb,pricec)
{ 
  this.ID = ID
  this.show = showProduct;
  this.name = name;
  this.pricea = pricea;
  this.priceb = priceb;
  this.pricec = pricec;
  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 colspan=2><b>'+this.name+'</b><hr width=80% align=left></td>'+
                            '<td align=right><i>от<br>10000</td><td align=right><i>от<br>5000</td><td align=right><i>от<br>2000</td></tr>';}
  else{if(this.ID =="down"){buf+='<tr><td align=left colspan=3><i>'+this.name+'</i><br></td></tr>';}
  else{if(this.ID ==""){buf+='<tr><td align=left>&nbsp;&nbsp;'+this.name+'</td><td align=left>'+this.description+'</td>'+
	 	   '<td align=right>'+this.pricea+'</td><td align=right>'+this.priceb+'</td><td align=right>'+this.pricec+'</td></tr>';}   

  else{buf+='<tr><td align=left valign=top><a href="descript/'+this.ID+'.html">&nbsp;&nbsp;'+this.name+'</a></td><td align=left valign=top >'+this.description+'</td>'+
   '<td align=right>'+this.pricea+'</td><td align=right>'+this.priceb+'</td><td align=right>'+this.pricec+'</td></tr>';}   
// '<td align=right valign=top>'+this.price+'</td></tr>';}
}}
}


