/* Author:
    Reto Ryter - reto.ryter@comvation.com
*/

jQuery.noConflict();
jQuery(document).ready(function($){

    if( $("table.tablesorter")){
        $("table.tablesorter").tablesorter();
    }

    if($('#slideshow')){
        $('#slideshow')
        .before('<div id="slideNav">')
        .cycle({
            fx:     'fade',
            speed:  'fast',
            timeout: 4000,
            pager:  '#slideNav'
        });
    }
    
    if($( "#tabs" )){
        $( "#tabs" ).tabs().css('display','block');
    }

    if($('#mediadirNavigationPlacholder')){
        $('#mediadirNavigationPlacholder li a').click(function(event){
            event.stopPropagation();
            if($(this).parents('ul.products').attr('class') != "products clearfix"){
               return false;
                
            }
        });
    }

    jQuery(document).ready(function(){
        Shadowbox.init({
            handleOversize: "drag",
            modal: true
        });
    });


});

