jQuery accordion for iPhone only
<p>Is there a better way of making an accordion work for iPhone only? </p>

<pre><code>$(document).ready(function () {
var device = navigator.userAgent.toLowerCase();
var ios = device.match(/(iphone|ipod|ipad)/);
if (ios) {
    $("#Main_Box_Section .box2:not(:first)").hide();
    $("#Main_Box_Section h3").click(function () {
        $(this).next(".box2").slideToggle("slow").siblings(".box2:visible").slideUp("slow")
    })
}
});
</code></pre>
