/* 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 (jQuery.browser.msie && jQuery.browser.version == 7) { 
        $("hr").wrap('<div class="hr" />');
        $("hr").remove();
    }
   
    $('#header-image').cycle({ 
        fx:     'scrollHorz', 
        speed:  1500, 
        timeout: 6000
            
    });

    // only initialize it, if it's needed
    if (typeof Shadowbox == "object") { Shadowbox.init(); }
    
 
});





















