jQuery(document).ready(function () {
	jQuery('#exterior').each(function () {
		var nCount = jQuery('#exterior li').length - 1;

		var nCurrent = 0;
		var nLeft = 0;
		var nWidth = 162;
		jQuery('#exl').click(function () {

			if (nCurrent > 0)
			{
				nCurrent--;
				nLeft = -1 * nCurrent * nWidth;
			} else return false;

			jQuery('#exc').animate({
				left : nLeft + 'px'
			},500);
			return false;
		});
		jQuery('#exr').click(function () {
			if (nCurrent < nCount)
			{
				nCurrent++;
				nLeft =  - 1 * nCurrent * nWidth;
			} else return false;

			jQuery('#exc').animate({
				left : nLeft + 'px'
			},500);
			return false;
		});
	});
	

});

jQuery(document).ready(function () {
	jQuery('#interior').each(function () {
		var nCount = jQuery('#interior li').length - 1;

		var nCurrent = 0;
		var nLeft = 0;
		var nWidth = 162;
		jQuery('#inl').click(function () {

			if (nCurrent > 0)
			{
				nCurrent--;
				nLeft = -1 * nCurrent * nWidth;
			} else return false;

			jQuery('#inc').animate({
				left : nLeft + 'px'
			},500);
			return false;
		});
		jQuery('#inr').click(function () {
			if (nCurrent < nCount)
			{
				nCurrent++;
				nLeft =  - 1 * nCurrent * nWidth;
			} else return false;

			jQuery('#inc').animate({
				left : nLeft + 'px'
			},500);
			return false;
		});
	});
	
});

jQuery(function ($) {
	$('#sidebar li').hover(function () {
		$(this).addClass('hover');
	}, function () {
		$(this).removeClass('hover');
	});
});


