﻿/**
* Update the size of the HTML (uses browser scroll)
*/
function updateSize(height) {
	var docH = (window.innerHeight || document.body.offsetHeight);
	//document.getElementsByTagName("body")[0].style.height = (docH <= height) ? height + "px" : "100%";
}

/**
* convert site query-string to a hash-array
*/
function querySt(ji) {
	hu = window.location.search.substring(1);
	gy = hu.split("&");
	for (i=0;i<gy.length;i++) {
		ft = gy[i].split("=");
		if (ft[0] == ji) {
			return ft[1];
		}
	}
}

/**
* Google tracking. 
*/
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"));
function trackPage() {
	try {
		var pageTracker = _gat._getTracker("UA-8139429-1");
		pageTracker._trackPageview();
	} catch(err) {}
}