function youTube_placer(name,width,height)
{
	document.write("<object width='"+width+"' height='"+height+"'>");
	document.write("<param name='movie' value='http://www.youtube.com/v/"+name+"&hl=en&fs=1'></param>");
	document.write("<param name='wmode' value='transparent'></params>");
	document.write("<embed src='http://www.youtube.com/v/"+name+"&hl=en&fs=1' type='application/x-shockwave-flash' wmode='transparent' width='"+width+"' height='"+height+"'></embed>");
	document.write("</object>");
}

var reqs = new Array(), jsr_proc = false;

function showCell(index, category, product)
{
	reqs[reqs.length] = new Array(index, category, ids[category][product]);
	doLoadCell();
}

function doLoadCell()
{
	if (jsr_proc)
		return;
	
	if (reqs.length) {
		jsr_proc = true;
		
		var par = new Array();
		var tmp = reqs.shift();

		par['ind'] = tmp[0];
		par['catID'] = tmp[1];
		par['prodID'] = tmp[2];

		JsHttpRequest.query(
			'/js_cell_video.php'
			, par
			, function(res,err) {
				if (parseInt(res['success'])){
					document.getElementById('vcell'+res['cell']).innerHTML = err;
				}
				jsr_proc = false;
				doLoadCell();
			}	
			, false
		)
	}
}

function showSubMenu(id,show)
{
	var menu = document.getElementById('sub'+id);
	if (!menu) return;
	menu.style.display = (show) ? "block" : "none";
}
