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/spet.gif height=19 width=247 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_s1.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>без упаковки и Secondhand </b></i><a href="price_s2.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>от компании D-Pro </b></i><a href="price_s3.html" onMouseOver=chg("11","bt4") onMouseOut=chg("1","bt4")><img src=img/buttom.gif height=11 width=18 border=0 name=bt4></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=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 colspan=3><b>'+this.name+'</b><hr width=80% align=left></td></tr>';}
   if(this.ID =="down"){buf+='<tr><td align=left colspan=3><i>'+this.name+'</i><br></td></tr>';}
   if(this.ID ==""){buf+='<tr><td align=left>&nbsp;&nbsp;'+this.name+'</td><td align=left>'+this.description+'</td><td align=right>'+this.price+'</td></tr>';}   
}


