// OurGA.js - version 1.0
// created by Ron Sneh on 26/1/2011
var currentUrl = document.location.href;
var currentScriptArr = currentUrl.split("/");
var currentScript = currentScriptArr[currentScriptArr.length-1];

function OurGAToPlay(pos){
	if (currentScript == "") currentScript = "HomePage";
	try {
		GAEvent('Play/'+userStatusGa,currentScript,pos);
	}catch(err){}
	play(null,'/skin/play.php');
}
function OutGAToCashier(pos) {
	if (currentScript == "") currentScript = "HomePage";
}
function OutGAToReg(pos) {
	if (currentScript == "") currentScript = "HomePage";
	try {
		GAEvent('Reg/'+userStatusGa,currentScript,pos);
	}catch(err){}
	location.href="/skin/register.php";
}
function GAEvent(cat,act,val) {
	pageTracker._trackEvent(cat, act, val);
}
