var _udn = ".shoretel.com";
function _gwoVariationWriter () {
	if (typeof(utmx_global_vd) == "object") {
		for (var i in utmx_global_vd) {
			if (utmx_global_vd[i].index > 0 && document.getElementById(i) && typeof(document.getElementById(i).innerHTML) == "string") {
				document.getElementById(i).innerHTML = utmx_global_vd[i].contents;
			}
		}
	}
	var _oldUacct = _uacct;
	_uacct = "UA-82592-9";
	if (typeof(urchinTracker) == "function") urchinTracker("/" + _gwoKey + "/test");
	_uacct = _oldUacct;
}

function _gwoLoader () {
	var x = getCookie("__utmx")
	var xx = getCookie("__utmxx")
	var h = escape(location.hash.substr(1));
	var _gwo = document.createElement('script');
	_gwo.type = "text/javascript";
	_gwo.id = "_gwojs";
	_gwo.src =
		"http://www.google-analytics.com/siteopt.js?v=1" +
		"&utmxkey=" + _gwoKey +
		"&utmx=" + (x?x:'') +
		"&utmxx=" + (xx?xx:'') + 
		"&utmxtime=" + new Date().valueOf() +
		(h ? "&utmxhash=" +h : "");
	document.getElementsByTagName('head')[0].appendChild(_gwo);
	startListening(window,"load", _gwoVariationWriter);
}

if (typeof(_gwoKey) == "string") _gwoLoader();
