    $(document).ready(function() {
        // If Products, Versatility, or Technology pages are displayed, show their menu as "on"
        if (location.href.indexOf("Products.aspx") > -1)
            productsOn();
        else if (location.href.indexOf("Versatility.aspx") > -1)
            versatilityOn();
        else if (location.href.indexOf("Technology.aspx") > -1)
            technologyOn();
            
            
               var CurrentMarginLeft = 0;
		var CurrentProd = 0;
		var MaxProd = $("#ProductCarouselContainer a").length - 5;
		
		if(CurrentProd >= MaxProd){
			$("#NextArrow").hide();
		}
		

		$("#NextArrow").click(function() {
		    this.blur();
		    if (CurrentProd < MaxProd) {
			CurrentProd++;
			CurrentMarginLeft -= 170;
			$("#ProductCarouselContainer").animate({ "marginLeft": CurrentMarginLeft }, 300);
			if (CurrentProd == MaxProd) {
			    $(this).fadeOut(300);
			}
			    $("#PreviousArrow").fadeIn(300);
		    }
		});
		$("#PreviousArrow").click(function() {
		    this.blur();
		    if (CurrentProd != 0) {
			CurrentProd--;
			CurrentMarginLeft += 170;
			$("#ProductCarouselContainer").animate({ "marginLeft": CurrentMarginLeft }, 300);
			if (CurrentProd == 0) {
			    $(this).fadeOut(300);
			}
			    $("#NextArrow").fadeIn(300);
		    }
		});


		//configure the tooltip events
		var MoveContainer = false;
		var WidthOffSet = 0; //offsets the container depending on it's width
		
		$('#ProductCarouselContainer a img').mousemove(function(e) {
			//check to make sure that the off set width is set first
			if(MoveContainer){
			    $("#arrowcontainer").css("margin-left", e.pageX - ((document.body.clientWidth - 928) / 2) - 60 - WidthOffSet);
			}
		});
		
		$('#ProductCarouselContainer a img').mouseover(function(e) {
		    $("#alttext").html($(this).attr("alt"));
		    WidthOffSet = $("#arrowcontainertext").width();
		    var Height = $("#alttext").height();
		    
		    if(isIE6){
          if(Height < 36){
            $("#arrowcontainertext").css({"padding-top" : (34 - Height) / 2,
                    "height" : 34 - ((34 - Height) / 2), "overflow" : "hidden"
                       });
          }
          else{
            $("#arrowcontainertext").css({"padding-top" : "0",
                        "height" : "34px", "overflow" : "hidden"
                      });
          }
		    }
		    else{
          if(Height < 36){
            $("#arrowcontainertext").css({"padding-top" : (34 - Height) / 2,
                    "height" : 34 - ((34 - Height) / 2)
                       });
          }
          else{
            $("#arrowcontainertext").css({"padding-top" : "0",
                        "height" : "34px"
                      });
          }
		    }
		    MoveContainer = true;
		});
		
		$('#ProductCarouselContainer a img').mouseout(function() {
			$("#arrowcontainer").css("margin-left", "-1000px");
			MoveContainer = false;
		});

    });