var currentImg = "";
function showPage() {
 $('#preLoader').animate(
	{
	 opacity: 0.0
	},
	{
	 duration: 0,
	 easing: 'easeOutQuad',
	 complete: function() {
	  $("#preLoader").remove();
	 }
	});
}
$(document).ready(function() {
    
	
				
    $.plugin('jScrollPane', {
        files: ['js/jScrollPane-1.2.3.min.js',
			'js/jquery.mousewheel.js',
			'css/jScrollPane.css'],
        selectors: ['*'],
        init: function() {
        },
        callback: function() {
            $('#gridContainer').jScrollPane({ showArrows: false, scrollbarWidth: 15, scrollBarMargin: 0, dragMaxHeight: 100, dragMinHeight: 100, animateInterval: 1, animateStep: 1 });
            $('#leftScroll').jScrollPane({ showArrows: false, scrollbarWidth: 10, scrollBarMargin: 0, dragMaxHeight: 80, dragMinHeight: 10, animateInterval: 1, animateStep: 1 });

            $('#leftInfo.fabric').jScrollPane({ showArrows: false, scrollbarWidth: 10, scrollBarMargin: 0, dragMaxHeight: 80, dragMinHeight: 10});
			
		
            $.plugin('misc').get();
        }
    });

    $.plugin('misc', {
        files: ['js/jquery.disable.text.select.pack.js',
			'js/jquery.easing.1.3.js',
			'js/jquery.preload-min.js'],
        selectors: ['*'],
        init: function() {
        },
        callback: function() {
            $('#contentContainer *').disableTextSelect();
            $.preload('.gridImage img', {
                find: 'images/product/',
                replace: 'images/productLarge/'
            });

            showPage();
        }
    });
    $.plugin('jScrollPane').get();
	



});
/*
$(window).load(function(){
	$(".title", "#leftInfo").each(function(){
		$(this).css('width',$(this).width());
	});
});
*/
