    jQuery(function() {
			if (jQuery.browser.msie && jQuery.browser.version <= 7) {
				jQuery("form button").click(function() {
					jQuery(this).closest("form").submit();	
				});
				jQuery("form input").keyup(function(e) {
					if ( e.which == 13 ) {
						jQuery(this).closest("form").removeAttr("target").submit();	
					}
				});
			}

			// Code for intro story
			var opts = { timeout: 7000, speed: 500, delay: 4000 };
			if (jQuery.browser.msie && jQuery.browser.version < 9) { opts.speed = 0; }
			jQuery("#intro-story").cycle(opts).find("li").each(function() {
			  jQuery(this).attr("title", jQuery(this).text()); 
			});
			

			// Code for logo scroller
			var prev = jQuery("<a id='p-prev' href='#' title='Scroll logos to left'>Prev</a>");
			var next = jQuery("<a id='p-next' href='#' title='Scroll logos to right'>Next</a>");
			jQuery("#home-partners").append(prev).append(next);

			// Setup Scroll Points
			var containerWidth = jQuery("#home-partners").outerWidth(true);
			var itemWidth = 0;
			var scrollItems = jQuery("#home-partners li");
			scrollItems.each(function(i,o) {
				itemWidth += jQuery(this).outerWidth(true);
				if (i == 0 || itemWidth >= containerWidth) {
          var jQueryitem = jQuery(scrollItems[Math.max(i-1,0)]);
					var left = 0 - jQueryitem.position().left;
					jQueryitem.addClass("scrollTo").data("left", left);
					itemWidth = 0;
				}
			});

			var scrollIndex = 0;
			var scrollCount = jQuery("#home-partners li.scrollTo").length;
			
			var setScroll = function() {
				var left = jQuery(jQuery("#home-partners li.scrollTo").get(scrollIndex)).data("left");
				jQuery("#home-partners ul").stop().animate({left: left}, 500, "swing");
				updateArrows();
			};
			
			var updateArrows = function() {
				jQuery("#p-prev").css("opacity", scrollIndex == 0 ? .2 : 1);
				jQuery("#p-next").css("opacity", scrollIndex == (scrollCount-1) ? .2 : 1);
			};
			
			updateArrows();
			
			jQuery("#p-prev").click(function(e) {
				e.preventDefault();

				scrollIndex--;
				if (scrollIndex < 0) {
					scrollIndex = 0;
				}
				setScroll();

				return false;
			});
			
			jQuery("#p-next").click(function(e) {
				e.preventDefault();

				scrollIndex++;
				if (scrollIndex >= scrollCount) {
					scrollIndex = scrollCount-1;
				}
				setScroll();

				return false;
			});
			
			// Scroll the logos by default
			var startScroll = function() {
				scrollIndex = 1;
				updateArrows();
				
				var totalWidth = 0;
				jQuery("#home-partners li").each(function(i,o) {
					totalWidth += jQuery(o).outerWidth(true);
				});
				var left = 0 - (totalWidth - jQuery("#home-partners-wrap").width());
				jQuery("#home-partners ul").animate({left: left}, 40000, "linear", function() {
						scrollIndex = scrollCount - 1;
						updateArrows();
				});
			};
			setTimeout(startScroll, 1000);
		});
