var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

if(top.document)
{
	var ref = top.document.referrer;
	var k,ref,med,tdl;
	var _uOsr=new Array();
	var _uOkw=new Array();
	_uOsr[0]="google";	_uOkw[0]="q";
	_uOsr[1]="yahoo";	_uOkw[1]="p";
	_uOsr[2]="msn";		_uOkw[2]="q";
	_uOsr[3]="aol";		_uOkw[3]="query";
	_uOsr[4]="aol";		_uOkw[4]="encquery";
	_uOsr[5]="lycos";	_uOkw[5]="query";
	_uOsr[6]="ask";		_uOkw[6]="q";
	_uOsr[7]="altavista";	_uOkw[7]="q";
	_uOsr[8]="netscape";	_uOkw[8]="query";
	_uOsr[9]="cnn";	_uOkw[9]="query";
	_uOsr[10]="looksmart";	_uOkw[10]="qt";
	_uOsr[11]="about";	_uOkw[11]="terms";
	_uOsr[12]="mamma";	_uOkw[12]="query";
	_uOsr[13]="alltheweb";	_uOkw[13]="q";
	_uOsr[14]="gigablast";	_uOkw[14]="q";
	_uOsr[15]="voila";	_uOkw[15]="rdata";
	_uOsr[16]="virgilio";	_uOkw[16]="qs";
	_uOsr[17]="live";	_uOkw[17]="q";
	_uOsr[18]="baidu";	_uOkw[18]="wd";
	_uOsr[19]="alice";	_uOkw[19]="qs";
	_uOsr[20]="yandex";	_uOkw[20]="text";
	_uOsr[21]="najdi";	_uOkw[21]="q";
	_uOsr[22]="aol";	_uOkw[22]="q";
	_uOsr[23]="club-internet"; _uOkw[23]="query";
	_uOsr[24]="mama";	_uOkw[24]="query";
	_uOsr[25]="seznam";	_uOkw[25]="q";
	_uOsr[26]="search";	_uOkw[26]="q";
	_uOsr[27]="wp";	_uOkw[27]="szukaj";
	_uOsr[28]="onet";	_uOkw[28]="qt";
	_uOsr[29]="netsprint";	_uOkw[29]="q";
	_uOsr[30]="google.interia";	_uOkw[30]="q";
	_uOsr[31]="szukacz";	_uOkw[31]="q";
	_uOsr[32]="yam";	_uOkw[32]="k";
	_uOsr[33]="pchome";	_uOkw[33]="q";
	_uOsr[34]="kvasir";	_uOkw[34]="searchExpr";
	_uOsr[35]="sesam";	_uOkw[35]="q";
	_uOsr[36]="ozu"; _uOkw[36]="q";
	_uOsr[37]="terra"; _uOkw[37]="query";
	_uOsr[38]="nostrum"; _uOkw[38]="query";
	_uOsr[39]="mynet"; _uOkw[39]="q";
	_uOsr[40]="ekolay"; _uOkw[40]="q";
	_uOsr[41]="search.ilse"; _uOkw[41]="search_for";
	

	
	for (var i=0;i<_uOsr.length;i++) {
		if (ref.toLowerCase().indexOf(_uOsr[i].toLowerCase()) > -1) {
			if ((l=ref.indexOf("?"+_uOkw[i]+"=")) > -1 || (l=ref.indexOf("&"+_uOkw[i]+"=")) > -1) {
				k=ref.substring(l+_uOkw[i].length+2,ref.length);
				ref=_uOsr[i];
			}
		}
	}


	var tdl = top.document.location;

	if(tdl.search !="" & top.hasSwapped == 0 & (tdl.search.indexOf('gclid')>0 || tdl.search.indexOf('utm')>0))
	{
		top.hasSwapped = 1;
		var loc = this.document.location.pathname + top.document.location.search;
		if(k != "" && typeof(k) != "undefined")
			loc += "&utm_term=" + k;

		this.document.location.replace(loc);
	}
	else if(k != "" && typeof(k) != "undefined" && ref != "" & top.hasSwapped == 0)
	{
		top.hasSwapped = 1;
		this.document.location.replace(this.document.location.pathname + "?utm_source=" + ref + "&utm_medium=organic&utm_campaign=(organic)&utm_term=" + k);
	}
	else if(ref !="" & top.hasSwapped == 0)
	{
		top.hasSwapped = 1;
		var m = ref.match(/http[s]?:\/\/(.*?)(\/[^\?]*)/);
		if(m)
		{
			ref = m[1]
			k = m[2];
			this.document.location.replace(this.document.location.pathname + "?utm_source=" + ref + "&utm_medium=referral&utm_campaign=(referral)&utm_term=" + k);
		}
	}

}

window.onload = function ()
{
	try {
	var pageTracker = _gat._getTracker("UA-6707262-1");
	pageTracker._setDomainName('premierawards.com.au');
	pageTracker._addIgnoredRef('premierawards.com.au');
	pageTracker._trackPageview();
	} catch(err) {}
}