// JAVASCRIPT FUNCTIONS // AUTOMATED SCROLLING $(document).ready(function(){ $('[href*=#]').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var $target = $(this.hash); $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']'); if ($target.length) { var targetOffset = $target.offset().top; $('html,body') .animate({scrollTop: targetOffset}, 900); return false; } } }); }); function showhide(id){ if (document.getElementById){ var obj = document.getElementById(id); if (obj.style.display == "none"){ obj.style.display = "block"; } else { obj.style.display = "none"; } } } function getReader(){ var confirmLeave = confirm('You have selected a link to a Web site that exists outside of the TWYNSTA Pro Web site. Boehringer Ingelheim Pharmaceuticals, Inc. provides access to these sites as a service to TWYNSTA Pro visitors, and is not responsible or liable for content and information presented within any external site.'); if (confirmLeave==true) { window.open("http://get.adobe.com/reader/"); } else { //return false; } }