// used to redirect to mobile site, or stay on full site
function getsMobileSite() {
	if (isIphone() || isIpodTouch()) {
		return true;
	} else {
		return false;
	}
}

// send mp4 video direct to browser, or deliver through other method (e.g. Flash)
function getsMp4Video() {
	if (isIphone() || isIpodTouch() || isIpad()) {
		return true;
	} else {
		return false;
	}
}

function isIphone() {
	return (navigator.userAgent.match(/iPhone/i)); 
}

function isIpodTouch() {
	return (navigator.userAgent.match(/iPod/i));
}

function isIpad() {
	return (navigator.userAgent.match(/iPad/i));	
}

function isAndroid() {
	return (navigator.userAgent.match(/Android/i));
}

