// JavaScript Document
function checkiphone () {
	var ua = navigator['userAgent'];
	var ans = true;
	//alert(ua);
	if (ua.indexOf("iPhone") != -1) {
		//ans = confirm("Hello iPhone User!\nIf you would like to use our unique Kemistry application on your iPhone please click 'OK'. Remember to add a bookmark to your Home Screen to save the page for next time. ");
		if (ans) location = "index.php?iphone=true";
	}
	if (ua.indexOf("iPad") != -1) {
		//ans = confirm("Hello iPad  User!\nIf you would like to use our unique Kemistry applicationon your iPhone please click 'OK'. Remember to add a bookmark to your Home Screen to save the page for next time. ");
		if (ans) location = "index.php?ipad=true";
	}
	if (ua.indexOf("iPod") != -1) {
		//ans = confirm("Hello iPod Touch User!\nIf you would like to use our unique Kemistry application on your iPhone please click 'OK'. Remember to add a bookmark to your Home Screen to save the page for next time. ");
		if (ans) location = "index.php?ipod=true";
	}
}
checkiphone();

