// Tracking
var i = 1;
function getById(id)
{
	return document.getElementById?document.getElementById(id):(document.all?document.all(id):null);
}

function log(section, type, activity, freetext)
{
	if (i > 5)
		i = 1;
		var source = "http://stats.absolut.com/log.aspx?site=plymouthgin-com&section="+escape(section)+"&type="+escape(section_type)+"&activity="+escape(activity)+"&freetext="+escape(freetext)+"&tmp=" + Math.random();
		getById("tracker"+i).src = ""+source;
		i++;
}

// pop-up information
function termspopup(url)
{
	terms = window.open(url,"plymouth_terms","width=600,height=400,scrollbars=1,resizable=1,menubar=0");
	terms.focus();
}

function privacypopup(url)
{
	privacy = window.open(url,"privacy_policy","width=600,height=400,scrollbars=1,resizable=1,menubar=0");
	privacy.focus();
}

function responsibilitypopup(url)
{
	responsibility = window.open(url,"responsibility","width=600,height=400,scrollbars=1,resizable=1,menubar=0");
	responsibility.focus();
}
