/**
 *   Tabs Module
 */
(function ($) {
	/**
	 * Initializes Tab Modules having CSS class:
	 * - tab-wrapper
	 *
	 * Requires: jQuery UI Tabs 1.7.2
	 */
	Intel.mod.tabsMod = function () {
		$('.mod-tabs .tab-wrapper').each(function () {
			if (!$.support.opacity) {
				$(this).tabs();
			} else {
				$(this).tabs({
					fx: { opacity: 'toggle' }
				});
			}
			$(this).find('.tab-contents').each(function () {
				$(this).find('.two-columns:last').css({'padding-right' : '0', 'margin-right' : '0', 'border-right' : 'none'});
				$(this).find('.three-columns:last').css({'padding-right' : '0', 'margin-right' : '0', 'border-right' : 'none'});

				if ($.browser.msie && $.browser.version === '6.0') {
					$(this).find('.two-columns:last').css({'float' : 'none'});
					$(this).find('.three-columns:last').css({'float' : 'none'});
				}
			});
		});
		$('.mod-tabs').css('visibility', 'visible');
	};
}(jQuery));
/**
 * Append to Global JS Initializations using jQuery
 */
jQuery(document).ready(function () {
	Intel.mod.tabsMod();
});

