/ Browser Height and Device Type /
var platform = ’’;
if (s.u.match(/(kindle|silk-accelerated|android|webos|rim tablet os|windows phone)/i)) {
platform = ’mobile other’;
} else if (s.u.match(/windows/i)) {
platform = ’windows’;
}else if (s.u.match(/(iphone|ipod)/i)) {
platform = ’iphone/ipod touch’;
} else if (s.u.match(/(ipad)/i)) {
platform = ’ipad’;
}else if (s.u.match(/Mac OS X/i)){
platform = ’Mac’;
} else {
platform = ’other’;
}