function showDescription(id,x,y){
	var x_p = (screen.availWidth - x)/2;	
	var y_p = (screen.availHeight - y)/2;	

	window.open('/showItem.php?id='+id,'changecat','height='+y+',width='+x+',top=100,left='+x_p+',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,titlebar=no');
}

function printOrder(x,y){
	var x_p = (screen.availWidth - x)/2;	
	var y_p = (screen.availHeight - y)/2;	
	window.open('/printOrder.php','changecat','height='+y+',width='+x+',top=100,left='+x_p+',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,titlebar=no');
}

	function thisMovie(movieName) {
    		if (navigator.appName.indexOf("Microsoft") != -1) {
       		 	return window[movieName]
    		}
    		else {
        		return document[movieName]
    		}
	}

	function showF(id){
		t = $("header");
//		alert(t);
		t.showIn(id);	

		//document.header5.showInFlash(id);
	}

	function hideF(){
		$("header").hideIn();	
	}

	function showDiv(id){
if ($("#subm_"+id))
{
		if ($("#subm_"+id).css("display")== 'block') 
			$("#subm_"+id).hide('clip',{},300);
		else
			$("#subm_"+id).show('clip',{},300);
}
	}


function showPic(src,x,y){
	var x_p = (screen.availWidth - x)/2;	
	var y_p = (screen.availHeight - y)/2;	
	window.open(src,'changecat','height='+(y+10)+',width='+(x+20)+',top=100,left='+x_p+',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,titlebar=no');
}

		function addNotepad(id,cid) {
	
				JsHttpRequest.query(
					'/include/js_back.php', // backend
					{
						// pass a text value 
						'a': 'add-notepad',
						'id':id,
						'cid':cid
					},
					// Function is called when an answer arrives. 
					function(result, errors) {
						alert("Документ добавлен в блокнот!");
					},
					false  // do not disable caching
				);
		}

