


function omniLinkCall(element,omniTag) {
	setOmniValues(element,'o',omniTag,'','','',0,'','');
	}

// gus functions
function personaRedirect() {
	var returnTo = encodeURIComponent(this.document.location);
	var personaLink = $('#gusChangePersona').attr('href');
	if (personaLink.indexOf('?') > -1) {
		if (personaLink.indexOf('&') > -1) {
			personaLink = personaLink + "&";
		}
	} else {
		personaLink = personaLink + "?";
	}
	this.document.location = personaLink + "surl=" + returnTo;
}
function logoutRedirect() {
	var returnTo = encodeURIComponent(this.document.location);
	var logoutLink = $('#gus_logout_link').attr('href');
	if (logoutLink.indexOf('?') > -1) {
		if (logoutLink.indexOf('&') > -1) {
			logoutLink = logoutLink + "&";
		}
	} else {
		logoutLink = logoutLink + "?";
	}
	this.document.location = logoutLink + "&surl=" + returnTo;
}
function loginRedirect() {
	var returnTo = encodeURIComponent(this.document.location);
	var loginLink = $('#gus_login_link').attr('href');
	this.document.location = loginLink + "&surl=" + returnTo;
}
function registerRedirect() {
	var returnTo = encodeURIComponent(this.document.location);
	var regLink = $('#gus_register_link').attr('href');
	this.document.location = regLink + "&surl=" + returnTo;
}

function openPopup(url, name, width, height, status, scrollbars, moreProperties) {
	var agent = navigator.userAgent.toLowerCase();
	var x, y = 0;
	if (screen) {
      x = (screen.availWidth - width) / 2;
      y = (screen.availHeight - height) / 2;
   }
   if (!status) status = '';

	// Adjust width if scrollbars are used (pc places scrollbars inside the content area; mac outside)
	width += (scrollbars != '' && scrollbars != null && agent.indexOf("mac") == -1) ? 16 : 0;

	var properties = 'width=' + width + ',height=' + height + ',screenX=' + x + ',screenY=' + y + ',left=' + x + ',top=' + y + ((status) ? ',status' : '') + ',scrollbars' + ((scrollbars) ? '' : '=no') + ((moreProperties) ? ',' + moreProperties : '');

	winReference = window.open(url, name, properties);
	return winReference;
}