//detect iphone
var WebKitDetect = {
        isWebKit : function() {
                return new RegExp(" AppleWebKit/").test(navigator.userAgent);
        },
        isMobile : function() {
                return WebKitDetect.isWebKit() && new RegExp("Mobile/").test(navigator.userAgent);
        },
        mobileDevice : function() {
                if (!WebKitDetect.isMobile()) {
                        return null;
                }
                var fields = new RegExp("(Mozilla/5.0 \\()([^;]+)").exec(navigator.userAgent);
                if (!fields || fields.length < 3) {
                        return null;
                }
                return fields[2];
        }

}; 

if (WebKitDetect.mobileDevice()) {
    //iphone
			//window.location.href = 'http://mynumo.com/iphone/ppo2008/presidental.php'; 
		}
		else{
			//not iphone
			window.location.href = 'http://mynumo.com/ppo2008/presidential.htm'; 
			//ppoflash.htm
			
		}
//end detect
