/* Author: 
    Philipp Ringli, Sichtwerk GmbH, sichtwerk.com
*/

$(document).ready(function() {
    
    
    if (jQuery.browser.msie && jQuery.browser.version < 7) { 
        
        // ieHoverFix
        $("nav li").hover( 
           function() {
               $(this).addClass("ieHoverFix");
           },
           function() {
               $(this).removeClass("ieHoverFix");      
           });  
       
       // $("#page p + h2").css({'margin-top':'1.3em'});
       
    }

    
    if (!$('.leftPage').hasClass("noScroll")) {
        $('.leftPage').jScrollPane();
    }
    if (!$('.rightPage').hasClass("noScroll")) {
        $('.rightPage').jScrollPane();
    }
   
    
    // if ($'.leftPage').next()
    
    
    
    // if (jQuery.browser.msie && jQuery.browser.version <= 7) { 
    //     
    //     $("nav ul li > a").not("nav ul li ul a").mouseover( function() {
    //         $(this).next().css("list-style", "none");
    //         $("nav ul li ul").css("list-style", "none");
    //     });
    //     
    // 
    // }
    // 
    // 
    // var menuCurrentlyShowing;
    // 
    // var menuPoint = $("nav ul li > a").not("nav ul li ul a");
    // menuPoint.mouseover( function() {
    //         // log($(this).find("ul"));
    //         var cssObj = { 'display' : 'none'
    //                     }
    //     // $(this).next().css(cssObj);
    //     log($(this).next().css("display"));
    //     if ($(this).next().css("display") != "block") {
    //         $(this).next().fadeIn("fast", function() {
    //               // Animation complete.
    //         });
    //     }
    // });
    //       
    // $("nav ul li ul").not("nav ul li ul li ul").mouseleave( function() {
    //     
    //     var cssObj = {
    //         'display' : 'block'
    //         }
    //         
    //     $(this).css(cssObj);
    //     
    //     $(this).fadeOut("fast", function() {
    //           // Animation complete.
    //     }); 
    //     
    // });    
});





















