$(function() {//PAGELOAD
    $(".thumbnails").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
		visible: 5,
		//auto: 4500,
		scroll: 1,
		mouseWheel: "true"
    });
});

//FUNCTIONS//
$.fn.imageReplace = function(src, f){
	$("img", this).remove();
  return this.each(function(){ 
    var i = new Image(); 
    i.src = src; 
    i.onload = f; 
    this.appendChild(i);
  }); 
} 

$.fn.imgSrcReplace = function(src){
  return this.each(function(){ 
	$(this).attr('src', src);
  }); 
}
