/* Description: This javascript will detect the browser used. If the browser is iphone or ipod, then it will be redirected to the station's mobile site else do not redirect.
*
*  Usage:
*  1. include this javascript after <head> and before </head>
*  Contact: support@tunekast.com
* 
*  Updated:
* 
*  Version: 1.0
*
*/
addEventListener("load", function() {setTimeout(browser_check, 0);
}, false);

function browser_check() {
var agent=navigator.userAgent.toLowerCase();
var is_iphone=(agent.indexOf("iphone")!=-1);
var is_ipod=(agent.indexOf("ipod")!=-1);

if (is_iphone || is_ipod){window.location = "http://fm1021milwaukee.tunekast.com"}        
}
