function isBrowserMobile(){
	var isMobile = false;

	var mobileUAgents = ["alcatel",	"android",	"amoi",	"amoi",	"iphone", "asus", "kddi", "cdm", "audiovox", "audio", "benq", "bird", "blackberry", "bleu",	"cect",
	"capitel", "dbtel", "docomo", "dopod", "eastcom", "ericsson", "fly", "gplus", "gionee", "gradiente", "hpipaq", "htc", "haier", "hedy", "holleycomm", "huawei",
	"hyundai", "iac", "inno", "kejian",	"konka", "kwc", "kyocera", "lge", "lg", "lenovo", "mot", "moto", "motorola", "motorazr", "nec", "newgen", "nokia", "philips", "samsung",
	"sch", "sec-sgh", "sph", "sec", "sgh", "palm", "treo", "panasonic", "pantech", "pantech", "sanyo", "sagem",	"sharp", "sie",	"softbank",	"sony",	"sonyericsson",
	"skyworth",	"spice", "tcl",	"telit", "tianyu",	"utec",	"utstar", "utstarcom", "zte", "zmem", "zmkn", "zonda", "i-mate", "i-mobile", "midp-2.1 configuration/cldc-1.1",
	"midp-2.0 configuration/cldc-1.0", "midp-1.0 configuration/cldc-1.0", "series60", "windows mobile"];

	for (var uaItem in mobileUAgents) {
		if (!isNaN(uaItem)) {
			if (navigator.userAgent.toLowerCase().indexOf(mobileUAgents[uaItem]) != -1 &&
					navigator.userAgent.toLowerCase().indexOf('internet explorer') == -1 &&
					navigator.userAgent.toLowerCase().indexOf('msie') == -1) {
				mobileUAgents[uaItem];
				isMobile = true;
			}
		}
	}

	return(isMobile);
}

function isBrowserIPhone(){
	return (navigator.userAgent.match(/iphone/i) != null) ? true : false;
}

function isBrowserIPad(){
	return (navigator.userAgent.match(/ipad/i) != null) ? true : false;
}

