$(document).ready(function() {
	
	$('a.false').click(function() { return false; });
						   
	function resizeText(diff) {
		var currentSize = $('#main p').css('font-size');
		
		var strlength = currentSize.length;
		strlength = strlength - 2;
		currentSize = parseInt(currentSize.substring(0,strlength));
		
		if (diff == 'bigger') {
			currentSize = currentSize + 2;
		} else if (diff == 'smaller') {
			currentSize = currentSize - 2;
		}
		
		currentSize = currentSize + 'px';
			
		$('#main p').css({fontSize: currentSize, lineHeight: '1.5em'});
	}
	
	$('#ts-plus').click(function() {
		resizeText('bigger');
		return false;
	});
	
	$('#ts-minus').click(function() {
		resizeText('smaller');
		return false;
	});

	var playCount = 0;
	
// DO COOKIE STUFF

/*	var weHomeYet = $('#theHomePage').attr('rel');
	if (weHomeYet == 'yep') { // are we on the home page?
		// get cookie
		var theCookie = ($.cookie('been_here_before'));
		
		if ( theCookie != 1 ) { // If we don't find the cookie that says they've been here before
			$('div').hover(function() {
				if(playCount == 0) {
					$('#fancyIntroA').trigger('click');
					playCount = 1;
				}
			});
			
			//Set That Cookie
			var COOKIE_NAME = 'been_here_before';
			var options = { path: '/', expires: 0 };
			$.cookie(COOKIE_NAME, 1, options);
		}
	}
*/
		
// FANCYBOX!!!

	$('.fancy').fancybox({
		'overlayShow': true,
		'frameWidth': 685,
		'frameHeight': 425
	});
	
	
	
});