$(document).ready(function() { 
	
	//load default calendar
	LoadCalendar(input);
	
	//load default collage
	LoadCollage(input2);
	
	
	$(".company_flip td").hover(
		function() {
			$(this).addClass("_company_menu_hover");
		},
		function() {
			$(this).removeClass("_company_menu_hover");
		}
	);


	$(".white_text_flip td").hover(
		function() {
			$(this).css({color:'black'});
			$(this).addClass("_other_menu_hover");
		},
		function() {
			$(this).css({color:'#444444'});
			$(this).removeClass("_other_menu_hover");
		}
	);
	
	$(".gray_text_flip td").hover(
		function() {
			$(this).css({color:'black'});
			$(this).addClass("_other_menu_hover");
		},
		function() {
			$(this).css({color:'#444444'});
			$(this).removeClass("_other_menu_hover");
		}
	);

	$(".CollageTrigger").hover(
		function() {
			$(this).addClass("CollageTriggerHover");
			$("#CollageTxt").html($(this).attr('title'));
		},
		function() {
			$(this).removeClass("CollageTriggerHover");
		}
	);	
});

function LoadCalendar(input) {
	// load preloader
	$("#calendar").fadeOut("fast")
	//$("#calendar").html("<img src='http://www.lusamericafish.com/_images/buttons/loader.gif' width='66' height='66' vspace='25'>");
	
	// Calendar
	$.ajax({
		url: "http://www.lusamericafish.com/_ajax/calendar.asp?"+input,
		cache: false,
		success: function(html){
			$("#calendar").html(html).fadeIn("slow");
		}
	});
}

function LoadCollage(input2) {
	// load preloader
	$("#collage").html("<img src='http://www.lusamericafish.com/_images/buttons/loader.gif' width='66' height='66' vspace='25'>");
	
	// Calendar
	$.ajax({
		url: "http://www.lusamericafish.com/_ajax/collage.asp?"+input2,
		cache: false,
		success: function(html){
			$("#collage").html(html);
		}
	});
}


