function download(release_id, url)
{
	overlay();
	protoAjax = new Ajax.Request (acturl,
	{
		method: 'get',
		parameters:{
					act: "download_product",
					release_id: release_id
				},
		onComplete : download_begin
	}, url);
}

function download_begin(t, url)
{
	overlay();	
	document.location = url;
}

function get_free()
{
	document.location = "/products/buy.php?mode=free&product_id=" + product_id + "&edition_id=" + cbb_edition.value + "&hid=" + tb_hid.value;
}

function faq_clicked(e)
{
	var dl = get_sender(e);
	while(dl.tagName.toLowerCase() != "dl")
		dl = dl.parentNode;
		
	var dd = dl.getElementsByTagName('dd')[0];
	
	if(dl.className == "collapsed_faq_question")
	{
		dl.className = "expanded_faq_question";
		start_expand(dd);
	}
	else
	{
		start_collapse(dd, faq_collapsed);
	}
}

function faq_collapsed(dd)
{
	dd.parentNode.className = "collapsed_faq_question";
}