I have it set up now for portrait and landscape on the index page, but I have a problem. The dropdown javascript is still being called for the landscape version of the tablet.css, so the navigation dissapears when the user clicks on any of the links. How can I make sure that the function is not called for the landscape version of the tablet.css?
I have the script load via an “if” statement in the header testing “userAgent” for all mobile devices with “document.write” to insert the script tag into the header.