var useAcrobat = navigator.mimeTypes &&
navigator.mimeTypes["application/pdf"] 