var iWebkit;

if (!iWebkit) {
	
	iWebkit = window.onload = function () {
			

			
			iWebkit.init = function () {
				fullscreen();
				hideURLbar();
			};
			iWebkit.init();
			if (activateGPSonLoad == 'yes')
			{
				activateGPS();
			}
		};
}

function hideURLbar() 
{
	window.scrollTo(0, 0.9);
}

function fullscreen() 
{
	var a = document.getElementsByTagName("a");
	for (var i = 0; i < a.length;i++) {
		if (a[i].className.match("noeffect")) {
		}
	else {
			a[i].onclick = function () {
				window.location = this.getAttribute("href");
				return false;
			};
		}
	}
}

function toggleDivVisibility(ID) {
	var d = document.getElementById(ID);
	if (d.style.display == "none")
	d.style.display="block";
	else
	d.style.display="none";
}

function showContent() {
	var d = document.getElementById("mnu1");
	d.style.display="none";
}

function btnMenuClick() {
	toggleDivVisibility('mnu1');
	toggleDivVisibility('content');
}


var btnMenu;

function myLoad() {
	
	fullscreen();

	btnMenu = document.getElementById('btnMenu');
	showContent();
}

function backhref(a) { 
if (document.referer == a.href) { 
history.back(); 
return false 
} 
} 
