//**************************
		// Detects if the current device is an Android OS-based device.
		function DetectAndroid()
		{
				var deviceAndroid = "android";
				var uagent = navigator.userAgent.toLowerCase();
				
			 if (uagent.search(deviceAndroid) > -1) 
		      return true;
		   else
		      return false;
		}


window.onload = function(evt) {
	

	if(DetectAndroid()) {
		//android user
	
		document.getElementById("beta_button").href="http://market.android.com/search?q=pname:net.protoap.id";
	
	} else {
		//non android user
				
	
				
		document.getElementById("beta_button").onclick = function() {
			alert("Please use this link on your Android handset");
		}
		
	}
	
	
	
	
}
