// JavaScript Document

// alert(navigator.userAgent.toLowerCase());

//if (screen.width <= 699) {
//document.location = "http://www.attorneykennugent.com/mobile";
//}


//if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
//   location.replace("http://www.attorneykennugent.com/mobile");
//}

// FOR ALL MOBILE DEVICES 
// CHANGE LOCATION.REPLACE location
 var redirectagent = navigator.userAgent.toLowerCase();
 var redirect_devices = ['symbian', 'nokia', 'samsung', 'windows ce','blackberry', 'palm', 'palmsource','smartphone', 'ipaq','iphone','ipod', 'android', 'htc', 'dream', 'webos'];
 for (var i in redirect_devices) {
 if (redirectagent.indexOf(redirect_devices[i]) != -1) {
 location.replace("http://treasurecoast-injurylawyer.com/mobile/");
 }
}
