$(document).ready(function() {
	// detect browser
	BrowserDetect.init();
	log( BrowserDetect.browser + " " + BrowserDetect.version + " on " + BrowserDetect.OS );
		
	// jquery blocks
	blockSoftware = $('#software-block');
	blockWeb = $('#web-block');
	blockPhoto = $('#photo-block');
	blockTravel = $('#travel-block');
	
	var winScroll = null;

	// set up link click actions
	$('#main-header #nav a, .top-icon a').click( function() {
		scrollWin( $(this).attr('href'), main_spacer );
		// return false;
	});
	
	// set up event for scrolling
	$(window).scroll( function() { timerNavbarLogic(); });
	
	// firefox: call nav logic in case the page is reloaded and already scrolled
	navbarLogic();
	
	// set up ext links
	jqExternalLinks();
	
	// set up colorbox
	$('.contact-colorbox').colorbox({ width:'700px', height:'700px', iframe:true});
	
	// set up carousel
	carouselSetup();

	// detect and open
	detectIE( false );
	
	// scroll us to a specific location if we're bookmarked
	setTimeout( 'handleAnchor( location.href )', 200 );
});