if((navigator.userAgent.match(/iPhone/i))) {
document.write("<meta http-equiv=\"refresh\" content=\"0;url=#\" \/>");
document.write("<meta name=\"viewport\" content=\"width=480\" \/>");
}
else if((navigator.userAgent.match(/iPad/i))) {
document.write("<meta name=\"viewport\" content=\"initial-scale=1.0\" \/>");
}
else {
document.write("<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \/>");
}
