<!--
function swapImage(path, largePath, cnt, displayImageId, displayImageAnchorId, largeImagePopupLinkId) 
{
		jQuery(displayImageId).attr("src", path);

		jQuery(".sc_menu img").css("border", "1px solid #fff");
		jQuery(cnt).css("border", "1px solid #999");
		if (largeImagePopupLinkId != "")
		{
			if (largePath.indexOf("defaultImage") == -1 || largePath == null) 
			{
				if (displayImageAnchorId != "")
				{
					jQuery(displayImageAnchorId).attr("href", largePath);
					jQuery(displayImageAnchorId).click(function () 
					{
						loadWindow(largePath, 640, 665);
						return false;
					});
				}
				jQuery(largeImagePopupLinkId).hide(500);
			}
			else
			{
				if ( jQuery(largeImagePopupLinkId).is(':hidden') ) 
				{
					jQuery(largeImagePopupLinkId).show(500);
				} 
	
				jQuery(largeImagePopupLinkId).attr("href", largePath);
				jQuery(largeImagePopupLinkId).click(function () 
				{
					loadWindow(largePath, 640, 665);
					return false;
				});
	
				if (displayImageAnchorId != "")
				{
					jQuery(displayImageAnchorId).attr("href", largePath);
					jQuery(displayImageAnchorId).click(function () 
					{
						loadWindow(largePath, 640, 665);
						return false;
					});
				}
			}			
		}
}

function showImageSlider(theDiv, theUl)
{
	// Get our elements for faster access and set overlay
	// width
	var div = jQuery(theDiv),
		ul = jQuery(theUl),
		ulPadding = 15;
					
	// Get menu width
	var divWidth = div.width();
		 
	// Remove scrollbars
	div.css({overflow: 'hidden'});
	
	// Find last image container
	var lastLi = ul.find('li:last-child');
					
	// When user move mouse over menu
	div.mousemove(function(e)
	{
		// As images are loaded ul width increases,
		// so we recalculate it each time
		var ulWidth = lastLi[0].offsetLeft + lastLi.outerWidth() + ulPadding;	
		var left = (e.pageX - div.offset().left) * (ulWidth-divWidth) / divWidth;
		div.scrollLeft(left);
	});
};// -->
