var _gaq = _gaq || [];
_gaq.push( [ '_setAccount', 'UA-575071-4' ]);
_gaq.push( [ '_trackPageview' ]);

(function() {
	var ga = document.createElement('script');
	ga.type = 'text/javascript';
	ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl'
			: 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0];
	s.parentNode.insertBefore(ga, s);
})();

// dynamic menu for ie 
// doesn't work for 2nd level (ie sucks!)

if (window.navigator.systemLanguage && !window.navigator.language) {

	function searchUL(UL) {
		do {
			if (UL)
				UL = UL.nextSibling;
			if (UL && UL.nodeName == "UL")
				return UL;
		} while (UL);
		return false;
	}

	function mouseIn() {
		var UL = searchUL(this.firstChild);
		UL.style.display = "block";
		// if (this.name == "Gear") {
		//	h1.data = "check : "+this.firstChild.nextSibling.firstChild.firstChild.href;
		//	this.firstChild.nextSibling.firstChild.firstChild.nextSibling.style.display = "block";
		// }
	}

	function mouseOut() {
		var UL = searchUL(this.firstChild);
		UL.style.display = "none";
	}
	
	function instrument() {
		var allLi = document.getElementsByTagName("li");
		for (var i = 0; i < allLi.length; i++) {
			var myLi = allLi[i];
			if (myLi.id == "navi") {
				myLi.onmouseover = mouseIn;
				myLi.onmouseout = mouseOut;
			}
		}
	}

	window.onload = instrument;
}
