
			// *** Start additions by Ben Fox
			// As an aside, I prefer not to use jQuery UI whenever possible.
			// Most items in jQuery UI seem to be buggy at times
			var rotateTimeout;

			// Long version of $();
			$(document).ready(function() {

				$('#home_banner> div:not(:first)').hide();
				/* ADDED BY AKS.  STARTS AND STOPS THE ROTATION WHEN MOUSEOVER AND MOUSEOUT HAPPENS */
				$('#home_banner').mouseover(function(){clearInterval(rotateTimeout);});
				$('#home_banner').mouseout(function(){rotateTimeout = setInterval('rotateFeatured()', 5000);});
				
				// Set the var to be a handle for the interval so we can use it later
				rotateTimeout = setInterval('rotateFeatured()', 5000); // 6 Second timeout between slides

				// Set an on click for each of the tabbed numbers - Please note the change from using href to using rel
				// This will change the current tab to the clicked tab, but also reset the interval to start running again after 6 seconds
				$('#home_banner> ul:first li a').click(function() {
					clearInterval(rotateTimeout);

					rotateFeatured($(this).attr('rel'));

					//setInterval('rotateFeatured()', 8000); // 8 second timeout to start rotating after manually jumping to a slide
				});
				
				
				
				
			});

			// The actual rotator function
			// If 'to' is provided, it will jump to that one, else, it will go to next in list
			function rotateFeatured(to) {
				var currentFeaturedDiv =  $('#home_banner> div:visible');

				var showNext;

				if(to == '' || to == undefined || to == null) {
					if($(currentFeaturedDiv).attr('id') == $('#home_banner> div:last').attr('id')) {
						showNext = $('#home_banner> div:first').attr('id');
					} else {
						showNext = $(currentFeaturedDiv).next().attr('id');
					}
				} else {
					showNext = to;
				}


				$('#home_banner > ul > li a').css('background', 'url(styles/images/link-module-off.png)').css('color','#cbe6f7')

				$('#home_banner > ul > li a[rel="' + showNext + '"]').css('background', 'url(styles/images/link-module-on.png)').css('color', '#fff')

				$(currentFeaturedDiv).fadeOut(500, function() { // 0.6 Second fade in / fade out time
					$('#' + showNext).fadeIn(500);
				});
			}
			// *** End additions by Ben Fox



			/* added by bjett */
			var isie = false;
			if (window.ActiveXObject) { isie = true; }

			$(function() {
				//$('#home_banner> ul').tabs({ fx: { opacity: 'toggle' } });
				//jQuery('#home_banner').mouseover(function(){clearInterval(rotateTimeout);});
				//jQuery('#home_banner').mouseout(function(){setInterval('rotateFeatured()', 5000);});


			});

			$(function() {
				//$('#tab_home > ul').tabs({ fx: { opacity: 'toggle' } });
				
			});

			$(function() {
				$('#home_banner ul:first li').each(function(i) {

					$(this).find('a').click(function() {
						$('#tab_featured').queue([]).stop();
					});

					if (i > 0) {

						/* modified by bjett */
						if (isie) {
							//$('#home_banner> ul').tabs('select', i);
						} else {
						$('#tab_featured').animate({visibility: "visible"}, 5000, function() {
							//$('#home_banner> ul').tabs('select', i);
						});
					}
				}
			});

			/* modified by bjett */
			if (isie) {
				//$('#home_banner> ul').tabs('select', 0);
			} else {
			$('#tab_featured').animate({visibility: "visible"}, 5000, function() {
				//$('#home_banner> ul').tabs('select', 0);
			});
		}
	})

