// Get the current domain
var CURR_DOMAIN = document.domain;
// URL prefix for non-secure absolute paths
var HTTP_PREFIX = '';
// URL prefix for secure absolute paths
var HTTPS_PREFIX = '';

switch (CURR_DOMAIN) {
	case 'uawww.asx.com.au':
	case 'uamyasx.asx.com.au':
		HTTP_PREFIX = 'http://uawww.asx.com.au';
		HTTPS_PREFIX = 'https://uamyasx.asx.com.au';
		break;
	case 'qawww.asx.com.au':
	case 'qamyasx.asx.com.au':
		HTTP_PREFIX = 'http://qawww.asx.com.au';
		HTTPS_PREFIX = 'https://qamyasx.asx.com.au';
		break;
	case 'www.asx.com.au':
	case 'myasx.asx.com.au':
		HTTP_PREFIX = 'http://www.asx.com.au';
		HTTPS_PREFIX = 'https://myasx.asx.com.au';
		break;
}
