new function() {
	var oHead = first(document.getElementsByTagName("head"));
	if (oHead) {
		foreach(map(oHead.getElementsByTagName("meta")), function(oMeta) {
			if (oMeta.getAttribute("name") == "google-analytics") {
				window.googleAnalyticsCode = oMeta.getAttribute("content");
				
				return true;
			}
		});
		if (!window.googleAnalyticsCode) {
			window.googleAnalyticsCode = "UA-1371008-19";
		}
		var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
		var gaSrc = gaJsHost + "google-analytics.com/ga.js";
		var script = document.createElement("script");
		script.setAttribute("type", "text/javascript");
		script.setAttribute("src", gaSrc);
		oHead.appendChild(script);
	}
	

	function foreach(col, func) {
		if (col) {
			if (col.nodeType) {
				var child = col.firstChild;
				var i = 0;
				while(child) {
					if (child.nodeType == 1) {
						i++;
						if (func(child, i, col)) {
							return true;
						}
					}
					child = child.nextSibling;
				}
			}
			else {
				var length = col.length;
				if (length) {
					for(var i = 0; i < length; i++) {
						if (func(col[i], i, col)) {
							return true;
						}
					}
				}
			}
		}
	}

	function first(col) {
		if (col) {
			var child;
			if (child = col.firstChild) {
				while(child) {
					if (child.nodeType == 1) {
						return child;
					}
					child = child.nextSibling;
				}
			}
			else {
				if (col.length) {
					return col.length > 0 && col[0];
				}
			}
		}
		return null;
	}

	function map(col, func) {
		var result = [];
		if (col) {
			if (!func) {
				func = function(item) {
					return item;
				}
			}
			if (col.nodeType) {
				var child = col.firstChild;
				var i = 0;
				while(child) {
					if (child.nodeType == 1) {
						result.push(func(child, i, col));
					}
					child = child.nextSibling;
					i++;
				}
			}
			else {
				var length = col.length;
				if (length) {
					for(var i = 0; i < length; i++) {
						result.push(func(col[i], i, col));
					}
				}
			}
		}
		return result;
	}
}
