	allH=(screen.availHeight-100)/2;
	allW=(screen.availWidth-100)/2;
function open_Picture(id, name, w, h, title) {
	vvv=open('',id+'pic', 'width='+w+',height='+h+', top=40, left=50, toolbar=0, location=0, directories=0, status=0,menuBar=0,scrollBars=0,resizable=1'); 
	vvv.document.write('<html><head><title>'+title+'</title></head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>'); 
	vvv.document.write('<img border=0  ondblclick="window.close();" alt="Окно закрывается по двойному щелчку" src="'+name+'"  width='+w+' height='+h+'>');
	vvv.document.write('</body></html>'); 
	vvv.document.close(); 
	vvv.focus();
}
function detail(id) {
	vvv=open('/catalogue/detail/?num='+id,id+'pic', 'width=400,height=400, top=40, left=50, toolbar=0, location=0, directories=0, status=0,menuBar=0,scrollBars=1,resizable=1'); 
	vvv.focus();
}
idbin=false;
function loadbin () {
	ldbin=true;
	if (idbin) document.images[idbin].src="/images/binfull.gif";
}
function binplus(id) {
	if (ldbin) {
		ldbin=false;
		document.bin.src="/code/bin/"+id+".gif";
		idbin="bin"+id;
	} else {
		alert ("Подождите! Данные еще заносятся в корзину.");
	}
}
