/* раздвижные картинки на основе <td> */
	function c_w(i,cc,e) {
		o_elem   = document.getElementById("p"+i);
		c=parseInt(o_elem.style.width);
		if ((c>e+x_bound) || (c<e-x_bound)) {
			if (c>e+x_bound) {
				if (ar_dir[i]==1) return true;
				c=c-10;
			}
			if (c<e-x_bound) {
				if (ar_dir[i]==0) return true;
				c=c+10;
			}
			o_elem.style.width = c+"px";
			loc_timer = setTimeout("c_w("+i+","+c+","+e+")",2);
		}
		return true;
	}
	function n_w(i) {
		for (k=1; k<=max_imgmenu; k++) {
			b_elem = document.getElementById("p"+k);
			c=parseInt(b_elem.style.width);
			if (k==i) {
				ar_dir[k]=1;
				a=c_w(k,c,elem_width);
			}else{
				ar_dir[k]=0;
				a=c_w(k,c,1);
			}
		}
		return true;
	}
	function o_w(j) {
		for (k=1; k<=max_imgmenu; k++) {
			ar_dir[k]=0;
			b_elem = document.getElementById("p"+k);
			d=b_elem.style.width;
			c=parseInt(d);
			a=c_w(k,c,1);
		}
		return true;
	}
	function onegoods(s) {
		window.open(s,"w1",'width=760,height=600,status=no,toolbar=no,location=no,directories=no,menubar=no,titlebar=no,resizable=yes,scrollbars=yes');
	return true;
	}
	function showgoods(s) {
		if (typeof('win_goods')=='W') {
			nw=true;
		}else{
			nw=false;
		}
		win_goods = window.open("/images/lens.php?id="+s,"_blank",'width=760,height=600,status=no,toolbar=no,location=no,directories=no,menubar=no,titlebar=no,resizable=yes,scrollbars=yes,alwaysRaised');
	return false;
	}
	function showlens(x,y) {
				document.getElementById('lens').style.display="block";
				document.getElementById('bord').style.display="block";
				document.getElementById('bor2').style.display="block";
				cx=x-56; if (cx>337) cx=337; if (cx<0) cx=0;
				cy=y-75; if (cy>448) cy=448; if (cy<0) cy=0;
				document.getElementById('bord').style.left= cx + "px";
				document.getElementById('bord').style.top = cy + "px";
				by=cy+120;
				document.getElementById('bor2').style.left= cx + "px";
				document.getElementById('bor2').style.top = by + "px";
				cx=cx*2;
				cy=cy*2;
				document.getElementById('lens').style.backgroundPosition="-" + cx + "px -" + cy + "px";
				return true;
			}
			function hidelens() {
				document.getElementById('lens').style.display="none";
				document.getElementById('bord').style.display="none";
				document.getElementById('bor2').style.display="none";
				return true;
			}

