<!--
function $() { return document.getElementById(arguments[0]); }

  function foto2(id,name,desc,kod,foto, width, height,weight)
  {

  	bigfoto=$("bigfot");
  	var foto_path="/photo/catalog/";
  	var desc=$("desc_"+id).innerHTML;
  	var body="";

  	var body="<table class=box_catalog><tr><td valign=top><img src="+foto_path+foto+" OnClick=\"javascript:foto('"+id+"','"+name+"','','"+kod+"','"+foto+"','"+width+"','"+height+"','"+weight+"');\" height=300px OnMouseOver=\"this.style.cursor='hand';\" title=\"Увеличить\"></td><td valign=top id=otstup><H1 id=name_item>"+unescape(name)+"</H1><p id=desc_item>"+unescape(desc)+"</p><br><H1 id=price_item></H1></td></tr></table>";

  	bigfoto.innerHTML=body;

  }

// функция для вывода большого фото товара
  function foto(id,name,desc,kod,foto, width, height,weight)
  {
	var foto_path="/photo/catalog/";
  	var desc=desc.replace("&nbsp;"," ");
  	myfoto=open("", "fotoWindow","width="+width+", height="+height+", status=no, toolbar=no, menubar=no, scrollbars=no, left=20, top=20, screenx=20, screeny=20");
  	var body="";
  	var body='<img src='+foto_path+foto+' alt='+unescape(name)+' OnClick="window.close(self)">';
  	myfoto.document.open();
  	myfoto.document.write('<html><head><title>Фото '+unescape(name)+'</title><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><link rel=stylesheet type="text/css" href="style.css"></head><body style="padding:0px; margin:0px; font-family:Arial; color:#2e6db4">');
  	myfoto.document.write(body);
  	myfoto.document.write("</body></html>");
//закрыть документ - (но не окно!)
  	myfoto.document.close();
    myfoto.moveTo(0, 0);
    myfoto.focus();
  	var width=0;
  	var height=0;
  }
function AddFavorite()
{
window.external.AddFavorite('http://it-fabrika.ru','Создание сайта, хостинг, продвижение');
}

//-->

