function webPageInit() {
	initNavigation();
}
if (!window.parent || window.parent == window) {
	Event.observe(window, 'load', webPageInit);
}

function initNavigation() {
	if (window.attachEvent || navigator.appVersion.indexOf('iphone') != -1) {
		var sfEls = document.getElementById("naviWrapper").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			var elem = sfEls[i];
			var hoverFunction = function() {
				this.className += " sfhover";
			};
			elem.onmouseover = hoverFunction;

			if (elem.ontouchstart) {
				elem.addEventListener("touchstart", hoverFunction, false);
			}
			var blurFunction = function() {
				this.className = elem.className.replace(new RegExp(" sfhover\\b"), "");
			};
			elem.onmouseout = blurFunction;
			if (elem.ontouchend) {
				elem.addEventListener("touchend", blurFunction, false);
			}
		}
	}
}
