
//detect iPad
function isiPad(){
    return (
        (navigator.userAgent.indexOf("iPad") != -1)        
    );
}
if(isiPad()){
    window.location = "mobile/";
}


//detect iPod/iPhone
function isiPhone(){
    return (
        (navigator.userAgent.indexOf("iPhone") != -1)        
    );
}
if(isiPhone()){
    window.location = "mobile/";
}


//detect Android
function isAndroid(){
    return (
        (navigator.userAgent.indexOf("Android") != -1)        
    );
}
if(isAndroid()){
    window.location = "mobile/";
}

//detect Blackberry
function isBlackberry(){
    return (
        (navigator.userAgent.indexOf("Blackberry") != -1)        
    );
}
if(isBlackberry()){
    window.location = "mobile/";
}
