var $gclContentRotatorLinks;
var $gclContentRotatorContents;
var gclContentRotatorLinkCurPos = 0;

$(document).ready(function() {

  $gclContentRotatorLinks    = $("#vSlideNav li a");
  $gclContentRotatorContents = $("#gcl-content-rotator li");
  $gclContentRotatorLinks.attr({'href': 'javascript:void(0)'});
  
  $gclContentRotatorContents.slice(1).hide();

  //if ($.browser.msie) { gclContentRotatorLinkHeight += 2; }
  
  $gclContentRotatorLinks.click(function () { 
	if(gclContentRotatorLinkCurPos != $gclContentRotatorLinks.index(this)) {
		gclContentRotatorLinkCurPos = $gclContentRotatorLinks.index(this);
		//$("#gcl-content-rotator-arrow").animate({ top:(gclContentRotatorLinkCurPos*gclContentRotatorLinkHeight)+gclContentRotatorLinkTop }, "fast");
		$gclContentRotatorLinks.show("fast");
		$(this).animate({opacity: "hide"}, 10);  
		
		$gclContentRotatorContents.hide("fast");
		$gclContentRotatorContents.eq(gclContentRotatorLinkCurPos).show("slow");
	}
  });

 

});