$(document).ready(function(){
  $("#left a:not(.active)").hover(
		  function (){
			  var pos = $(this).css('background-position');
			  pos = pos.split(" ",2);
			  posX = parseInt(pos[0]);
			  posY = parseInt(pos[1]);
			  $(this).css('background-position', (posX-4)+'px '+posY+'px');			   
		  },
		  function (){
			  var pos = $(this).css('background-position');
			  pos = pos.split(" ",2);
			  posX = parseInt(pos[0]);
			  posY = parseInt(pos[1]);
			  $(this).css('background-position', (posX+4)+'px '+posY+'px');
		  }	  
  );
  
  $(".collectionItem:not(.highlited)").hover(
		  function (){$(this).addClass('highlited2');},
		  function (){$(this).removeClass('highlited2');}	  
  );
  $(".productListItem:not(.highlited3)").hover(
		  function (){$(this).addClass('highlited3');},
		  function (){$(this).removeClass('highlited3');}	  
  );

  
  // init scrilling
  // shadows inits insile jScrollPane code!!
  $("#canvas").ready(function(){
	 //$('#canvas').jScrollPane({scrollbarWidth:18,dragMaxHeight:100,dragMinHeight:100,topCapHeight:0,bottomCapHeight:10});
//	  setTimeout(initJScrollPane, 1000);
	  initJScrollPane();
  });
  
  function initJScrollPane(){
	  $('#canvas').jScrollPane({scrollbarWidth:18,dragMaxHeight:100,dragMinHeight:100,topCapHeight:0,bottomCapHeight:10});
  }
  
  
  
  
  
});

