$(document).ready(function() {

	$('#inset').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		speed: 4000
	});

	$(function () {
	
	  var msie6 = $.browser == 'msie' && $.browser.version < 7;

	  if (!msie6) {
	    var top = $('#navSub').offset().top - parseFloat($('#navSub').css('margin-top').replace(/auto/, 0));
	    $(window).scroll(function (event) {
	      // what the y position of the scroll is
	      var y = $(this).scrollTop();
	
	      // whether that's below the form
	      if (y >= top) {
	        // if so, ad the fixed class
	        $('#navSub').addClass('fixed');
	      } else {
	        // otherwise remove it
	        $('#navSub').removeClass('fixed');
	      }
	    });
	  }  
	});

});
