// Thomas C. Chung functions 

$.noConflict();
	jQuery(document).ready(function($) {
		
		// Hovers
		$("a").hover(
			function () { $(this).stop(true, true).animate({ opacity: 0.6 }, 500, function() {}); $(this).addClass('pointer'); },
			function () { $(this).stop(true, true).animate({ opacity: 1 }, 800, function() {}); }
		);
		
		$("#login_form_toggle").hover(
			function () { $(this).stop(true, true).animate({ opacity: 0.6 }, 500, function() {}); $(this).addClass('pointer'); },
			function () { $(this).stop(true, true).animate({ opacity: 1 }, 800, function() {}); }
		);
		
		// Show / Hide Login Form DIV
		$('#login_form_toggle').click(function() {
			$('#login_form').slideToggle(100);
			return false;
		});
		
		
		// Image 
		$(".tile").hover(
			function () {
				$(this).children(".tileImage").stop(true, true).animate({ opacity: 0.5 }, 200, function() {}); 
				$(this).children(".tileText").addClass('active');
				$(this).addClass('pointer');
			},
			function () {
				$(this).children(".tileImage").stop(true, true).animate({ opacity: 1 }, 600, function() {});
				$(this).children(".tileText").removeClass('active');
				$(this).removeClass('pointer');
			}
		);
	  
		$(".tileEnd").hover(
			function () {
				$(this).children(".tileImage").stop(true, true).animate({ opacity: 0.5 }, 200, function() {}); 
				$(this).children(".tileText").addClass('active');
				$(this).addClass('pointer');
			},
			function () {
				$(this).children(".tileImage").stop(true, true).animate({ opacity: 1 }, 600, function() {});
				$(this).children(".tileText").removeClass('active');
				$(this).removeClass('pointer');
			}
		);
		
		$("#news img").hover(
			function () {
				$(this).stop(true, true).animate({ opacity: 0.45 }, 200, function() {}); 
				$(this).addClass('pointer');
			},
			function () {
				$(this).stop(true, true).animate({ opacity: 1 }, 600, function() {});
				$(this).removeClass('pointer');
			}
		);
		
		// Logo
		$("#name img").hover(
			function () {
				$(this).stop(true, true).animate({ opacity: 0.2 }, 200, function() {}); 
			},
			function () {
				$(this).stop(true, true).animate({ opacity: 1 }, 600, function() {});
			}
		);
	
	}
);
