// JavaScript to make the home page auto rotate, using jQuery cycle...
  $(document).ready(function(){
  var tabs = [];
	tabs['tab1'] = 'Rigid Waveguide';
	tabs['tab2'] = 'Flexible Waveguide';
	tabs['tab3'] = 'Coaxial Components';
	tabs['tab4'] = 'FM-HDR Products';
	tabs['tab5'] = 'Custom Applications';
	$.preloadCssImages();
		$('#tab-container-1')
		 .cycle({
				 fx: 'fade',
				 cleartype: 1,
				 timeout: 10000,
				 speed: 500,
//				 speedin: 700,
//				 speedOut: 700,
				 pager: '#tab-container-1-nav',
				 pagerEvent: 'click',
				 pagerAnchorBuilder: function(idx, slide) {
				 /*remember we have to have something in the anchor tag for ie to work - get it from the tabs array above...*/
				 return '<li class="' + jQuery(slide).attr("id") + ' "><a id="t-' + jQuery(slide).attr("id") + ' " href="#"><span>' + tabs[jQuery(slide).attr("id")] + '</span></a></li>';} 
	});
$('#tab-container-1-nav li a').hover(
        function() { $('#tab-container-1').cycle('pause');},
        function() { $('#tab-container-1').cycle('resume'); }
);  
});
