// loader, aangeroepen in body wanneer nodig doet alleen images.
function doLoader(selector, callback) {
  var files = []; 
  $(selector).each(function() {
    var f = $(this).attr('src');
    if(typeof f != 'undefined') { files.push([f, 'img']); }
  });
  $.preLoadGUI(files, callback);
}

//Cufon font replacement setup
Cufon.replace('.sf-menu a,.listTitle', {hover: true, fontFamily: 'Pill Gothic 600mg Lt' });
Cufon.replace('h1,h2,h3,h4,h5,h6,.fr,.infoMeta strong', { fontFamily: 'Pill Gothic 600mg Rg' });

jQuery(document).ready(function(){    
/* veel te traag
	$(".fullDescText p:first-child,#productTextWrapper #producttext #omschrijving p:first-child,tr:first-child,tr td:first-child,.homepage_news .morenewsblock div:first-child,#resultswrapper div.results:first-child,dt:first-child,#homepageitems .window:first-child, #indexholder div:first-child").addClass('first');
	$(".fullDescText p:last-child,#productTextWrapper #producttext #omschrijving p:first-child,tr:last-child,tr td:last-child,.homepage_news .morenewsblock div:last-child,#resultswrapper div.results:last-child,dt:last-child,#homepageitems .window:last-child, #indexholder div:last-child").addClass('last');
*/
   	   		
	//Opacity Hover
	$('.opahvr').css('opacity', '0.5').hover(function () { $(this).animate({opacity: "1.0"}, 200 ) }, function () { $(this).animate({opacity: "0.5"}, 200 ) });
	
});


