/// is Mobile function
/// Written by Paul Oostenrijk
/// Yes, you can have it. Its just a checker :)

var isHandHeld = {

	isIpad:function () {
		if (navigator.userAgent.match(/iPad/i)) {
			return true;
		}
		else {
			return false;
		}
	},
	check:function () {
			if( navigator.userAgent.match(/Android/i) ||
 navigator.userAgent.match(/webOS/i) ||
 navigator.userAgent.match(/iPhone/i) ||
 navigator.userAgent.match(/iPod/i) ||
 navigator.userAgent.match(/iPad/i)
 ){
	return true; 
 }
 else {
	return false; 
 }
	},
	isAndroid: function() {
		if( navigator.userAgent.match(/Android/i)) {
			return true;
		}
		else { return false; }
	},
	isIpod:function () {
		if(navigator.userAgent.match(/iPod/i)) {
			return true;
		}
		else {
			return false;
		}
	},
	isIphone: function () {
		if(navigator.userAgent.match(/iPhone/i)) {
			return true;
		}
		else {
			return false;
		}
	}
	
}

