jQuery().ready(function(){


	$('li[id*=itemcontentleft]').css('background', 'url(/img/vscoller_bg.gif) no-repeat -20px top');
	$('#itemcontentleft1').css('background', 'url(/img/product_velo_hover.png) no-repeat -20px top');
	$('li[id*=itemcontentleft]').hover(
	  function () {
	    $(this).css('background', 'url(/img/product_velo_hover.png) no-repeat -20px top');
	  },
	  function () {
	  var whichActive = $(this).attr("id").replace("itemcontentleft", "");
	  if($('div:visible[id*=itemcontentright]').attr("id") != "itemcontentright"+whichActive)
	   $(this).css('background', 'url(/img/vscoller_bg.gif) no-repeat -20px top');
	  }
	);



});

function init_dw_Scroll() {
 var wndoVert = new dw_scrollObj('vertScroller', 'vertList');
    wndoVert.setUpScrollControls('scrollContentLinks');
}

// if code supported, link in the style sheet and call the init function onload
if ( dw_scrollObj.isSupported() ) {
    //dw_writeStyleSheet('cssscroll/scroll.css');
    dw_Event.add( window, 'load', init_dw_Scroll);
}


function switchItemContent(which) {
	//alert("clicked id: "+$('#itemcontentright'+which).attr("id"));
	$('div[id*=itemcontentright]').hide();
	$('li[id*=itemcontentleft]').css('background', 'url(/img/vscoller_bg.gif) no-repeat -20px top');
	$('#itemcontentleft'+which).css('background', 'url(/img/product_velo_hover.png) no-repeat ');
	$('#itemcontentleft'+which).css({backgroundPosition: '-20px 0px'});
	$('#itemcontentright'+which).show();
}
