<html>
<head>
<meta name="description" content="Bedlam Automapper" />
<meta name="keywords" content="bedlam,map,automapper,mud,rpg,mmmorpg,game,app" />
<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0"/>
<link href="bedlam.css" rel="stylesheet" type="text/css" />
<script src="header.js"></script>
</head>
<body style="width: 320px; padding-left:16px; padding-top:10px">
<script>
if (window.location.search)
	document.location = "map.php" + window.location.search;
else {
/*
if (!navigator.userAgent.match(/(Safari)/)) 
	document.body.innerHTML += '<div id="main"><span id="title">BEDLAM AUTOMAPPER</span> [open beta]' +
	'<br><em>(log in the char you wish to track)</em>' +
	'<form method="post" onsubmit="popupform(this);"><br>' +
	'Character: <input type="text" name="c" />' +
	'<div style="height: 8px"/></div>' +
	'Password: <input type="password" name="p" />' +
	'<div style="height: 8px"/></div>' +
	'<input type="submit" value="Tune In" name="Tune In"/>' +
	'</form></div>';
else
*/
	document.body.innerHTML += '<div id="main"><span id="title">BEDLAM AUTOMAPPER</span> [open beta]' +
	'<br><em>(log in the char you wish to track)</em>' +
	'<form method="post" action="map.php"><br>' +
	'Character: <input type="text" name="c" />' +
	'<div style="height: 8px"/></div>' +
	'Password: <input type="password" name="p" />' +
	'<div style="height: 8px"/></div>' +
	'<input type="submit" value="Tune In" name="Tune In"/>' +
	'</form></div>';
	
	if (!navigator.userAgent.match(/(iPod|iPhone|iPad)/)) {
		document.body.style.backgroundColor = "#000000";
		function popupform(myform) {
				//if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) document.forms[0].submit();
				if (!window.focus) return true;
				window.open('map.php', 'Bedlam Automapper', 'height=720,width=700,status=0,toolbar=0,menubar=0,resizable=0,scrollbars=0,location=0,titlebar=0') 
				myform.target=windowname;
				return true;
		}
	}
}
</script>
<!--<script>
</script>-->
</body>
</html>