function tyk(item, w, c, c2, w2, hh1, hh2, q)
   {
	   var a = $(c).val();
	   var b = $(item).find("option:selected").attr("title");
	   var pricee =  a*b;
	   pricee = pricee / 1000;
	   pricee = pricee.toFixed(1);
	   pricee = pricee*1000;
	   
	   
	   var a2 = $(c2).val();
	   var pricee2 =  a2*b;
	   pricee2 = pricee2 / 1000;
	   pricee2 = pricee2.toFixed(1);
	   pricee2 = pricee2*1000;
	   
	   $(w).attr("value",pricee);
	   $(w2).attr("value",pricee2);
	   
	   var h = $(item).find("option:selected").attr("id1");
	   var h2 = $(item).find("option:selected").attr("id2");
	   
	   $(hh1).html(h);
	   $(hh2).html(h2);
	   
	   if ((h == 0) && (h2 == 0)) {
		   $(q).attr("value","Нет в наличии");
		   $(q).attr("disabled","disabled");
	   } else {
		   $(q).attr("value","В корзину");
		   $(q).attr("disabled","");
	   }
	   
   }
   
   function tyk2(item, w, c, c2, w2, hh1, hh2, q)
   {
	   var a = $(c).val();
	   var b = $(item).find("option:selected").attr("title");
	   var pricee =  a*b;
	   pricee = pricee / 1000;
	   pricee = pricee.toFixed(1);
	   pricee = pricee*1000;
	   
	   var a2 = $(c2).val();
	   var pricee2 =  a2*b;
	   pricee2 = pricee2 / 1000;
	   pricee2 = pricee2.toFixed(1);
	   pricee2 = pricee2*1000;
	   $(w).attr("value",pricee);
	   $(w2).attr("value",pricee2);
	   
	   var h = $(item).find("option:selected").attr("id1");
	   var h2 = $(item).find("option:selected").attr("id2");
	   
	   $(hh1).html(h);
	   $(hh2).html(h2);
	   
	   if ((h == 0) && (h2 == 0)) {
		   $(q).attr("value","Нет в наличии");
		   $(q).attr("disabled","disabled");
	   } else {
		   $(q).attr("value","В корзину");
		   $(q).attr("disabled","");
	   }
	   
   }
 
 
 	function show(item, a)
	{
		if ($(item).html == 'раскрыть' ) 
			{$(item).html('скрыть'); }
		if ($a.attr("class") == "invisible") {$(a).attr("class","visible");}
		if ($(a).attr("class") == "visible") {$(a).attr("class","invisible");}
	}
