
/*function show_div(id){document.getElementById(id).className='showblock';}
function hide_div(id){document.getElementById(id).className='hidden';}*/
function hover_main(id)
{
	//alert(id);
	$("#main"+id).addClass('td'+id+'_h');
	$("#sub"+id).addClass('showblock');
	//document.getElementById(id).className='showblock';
}
function out_main(id)
{
	$("#main"+id).removeClass('td'+id+'_h');
	$("#main"+id).addClass('td'+id);
	$("#sub"+id).removeClass('showblock');
	$("#sub"+id).addClass('hidden');
	
	//$(".tab").addClass('hidden');
	//document.getElementById(id).className='showblock';
}

function select(tab,tabhead)
{
	$(".tab").addClass('hidden');
	$("#"+tab).removeClass('hidden');
	
	$(".tabhead").removeClass('tab_a');
	$(".tabhead").addClass('tab_p');
	$("#"+tabhead).removeClass('tab_p');
	$("#"+tabhead).addClass('tab_a');
	return false;
} 

function basketAdd(id)
{
	$('#ba'+id).load('/basket/add/id/'+id);
	return false;
}
function basketRemove(id)
{
	$('#basket').load('/basket/remove/id/'+id);
	return false;
}
function basketClean(id)
{
	$('#basket').load('/basket/clean/');
	return false;
}
function ingoPrint(current)
{
	document.getElementById("printBody").style.visibility = "hidden";
	document.getElementById(current).style.visibility = "visible";
	document.getElementById(current).style.position = "absolute";
	document.getElementById(current).style.left = "20px";
	document.getElementById(current).style.top = "20px";
	print(current);
	document.getElementById("printBody").style.visibility = "visible";
	document.getElementById(current).style.left = "0px";
	document.getElementById(current).style.top = "0px";
	document.getElementById(current).style.position = "relative";
}
