﻿$().ready(function () {
    //ipad and iphone fix
    if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
        $("#top_menu ul li, #left_menu ul li").click(function () {
            //we just need to attach a click event listener to provoke iPhone/iPod/iPad's hover event
            //$(this).focus();
        });
        //$('#top_menu ul li, #left_menu ul li').hover(function () {
        //    $(this).addClass('phover');
        //}, function () {
        //    $(this).removeClass('phover');
        //});
        //$('#top_menu ul li, #left_menu ul li').focus(function () {
        //    $(this).addClass('phover');
        //});
        //$('#top_menu ul li, #left_menu ul li').blur(function () {
        //    $(this).removeClass('phover');
        //});
        //$("#top_menu ul li, #left_menu ul li").bind('touchstart', function () {
        //    $(this).addClass('phover');
        //});
        //$("#top_menu ul li, #left_menu ul li").bind('touchend', function () {
        //    $(this).removeClass('phover');
        //});
    }
});
