$(document).ready(function() {
	
	/* Get rid of IE browsers */
	if ($.browser.msie && $.browser.version <= 7) {
		$('#wrap, #options').css('opacity','0.1');
		$('body').append('<div id="browser-error"><h4>Oh, it seems that you are using wrong browser!</h4> <p>Please fix that and use one of these, for real web experience:<br> <a href="http://www.mozilla.org/en-US/firefox/new/">Mozilla Firefox</a> <small>|</small> <a href="https://www.google.com/chrome/">Google Chrome</a></p></div');
	}
		
	/* Content triggers */
	$(".content-trigger").click(function(){
		var contentScroll = $(this).attr('href');
		$('html,body').animate({scrollTop: $(contentScroll).offset().top},'slow', 'easeInOutExpo');
		return false;
	});
	$(".work-trigger").click(function(){
		var workScroll = $(this).attr('href');
		$('html,body').animate({scrollTop: $(workScroll).offset().top},'slow', 'easeInOutBack');
		return false;
	});
	
	/* Tooltip */
	$(".tooltip").tipTip({maxWidth: "auto", edgeOffset: 5, defaultPosition: "left", delay: 50});
	$(".tooltip-top").tipTip({maxWidth: "auto", edgeOffset: 5, defaultPosition: "top", delay: 50});
	
	
});
