//throw alerts when testing
var testing = false;
function testAlert(str){
	if (testing) alert(str);
}

//ch is optional
function trackSection(pn, ch){
	testAlert("trackSection('"+ pn +"', '"+ ch +"');");
	if (s && pn){
		testAlert("trackSection: s and pn valid");
		if (ch) { s.channel = ch; testAlert("trackSection: ch valid"); }
		s.pageName = pn;
		void(s.t());
	}
}

function trackAction(action){
	testAlert("trackAction('"+ action +"');");
	if (s){
		testAlert("trackAction: s valid");
		s.prop5 = 'Game Action '+ action;
		void(s.tl()); //tl doesn't count as a page view
	}
}