/**
 *   Spotlight Tabs Module (as seen on Business landing page)
 */
(function ($) {
	/**
	 * Initializes Tab Modules having CSS classes:
	 * - tab-wrapper
	 * - subtab-wrapper (can be nested within the above class)
	 */
	Intel.mod.tabsSpotlight = function () {
		if ($.browser.msie && $.browser.version === "6.0") {
			$('.mod-spotlight-tabs .tab-wrapper .tab-contents').css('height', '210px');
		} else {
			$('.mod-spotlight-tabs .tab-wrapper .tab-contents').css('min-height', '210px');
		}
		$('.mod-spotlight-tabs .tab-wrapper').each(function () {
			$(this).tabs();
			if (!$.support.opacity) {
				var navTabs = $(this).find('li a').not('.subtab-wrapper li a');
				navTabs.bind('click', function () {
					navTabs.each(function () {
						$(this).css('filter', $(this).css('filter').replace(/-on\./, '-off.'));
						$(this).next().css('filter', $(this).next().css('filter').replace(/-on\./, '-off.'));
					});
					$(this).css('filter', $(this).css('filter').replace(/-off\./, '-on.'));
					$(this).next().css('filter', $(this).next().css('filter').replace(/-off\./, '-on.'));
				});
			}
		});
		$('.mod-spotlight-tabs').css('visibility', 'visible');
	};
}(jQuery));
/**
 * Append to Global JS Initializations using jQuery
 */
jQuery(document).ready(function () {
	Intel.mod.tabsSpotlight();
});

