var is_iphone = navigator.userAgent.match(/iPhone/i);
var is_ipad = navigator.userAgent.match(/iPad/i);
//var is_iphone = true;