
$j(document).ready(function(){

    //$j('div.optionslistCont input.checkbox').click(function(){
    //    var bijPrice = parseFloat($j(this).next('span.label').find('span.xtraprice').text());

        // prijs = parseFloat($j(this).parents('div.containItem').find('span.dePrijs').text());
    //
    //    var nieuwePrijs = prijs + bijPrice;

    //    $j(this).parents('div.containItem').find('span.dePrijs').text(nieuwePrijs);
     //   $j(this).parents('div.containItem').find('span.price').html('&#8364; ' + nieuwePrijs);

 //   });

    $j('a.tab img').hover(function(){
       $j('div.shopToolTip').css("left", $j(this).position().left + $j("div.meerWinkelTabs").position().left + 4);
       $j('div.shopToolTip').text($j(this).attr("alt"));
       $j('div.shopToolTip').show();
    }, function(){
       $j('div.shopToolTip').hide();
    });

    if( $j('table.animatie').length > 0){
      $j('table.animatie tr').each(function(e){
            $j(this).find('div').addClass('verborgen');
      });

      animatieHome();

    }

});

function animatieHome(status){
    var aantalRijen = $j('table.animatie tr').length;
    if(status == 'opnieuw'){
       $j('table.animatie tr').each(function(e){
              $j(this).find('div').animate({"opacity": "hide" }, 500, "swing", function(){ } );
        });
    }

      $j('table.animatie').everyTime(2000,'animatie' ,function(i) {
		        $j('tr.rij' + i + ' div').animate({"opacity": "show" }, 1000, "swing", function(){ } );

                if( i == 7){
                   $j('table.animatie').stopTime('animatie');
                    animatieHome('opnieuw');
                }


	  });

}
