$(document).ready(function(){
	$('#fade').innerfade({
		speed: 1500,
		timeout: 4000,
		type: 'sequence',
		containerheight: '180px',
		containerwidth: '497px'
	});
	//INPUT ELEMENTS	
		var st = '#4c4c4c';
		var en = '#9a9a9a';
		
		$('input[type=hidden]').each(function(){
			$(this).css('display', 'none');
		});
			
		$(':input').focus(function(){
			if($(this).val() == $(this).attr('rel')){
				$(this).css('color', en);
				$(this).keydown(function(){
					if($(this).val() == $(this).attr('rel')){					
						$(this).val('');
						$(this).css('color', st);
					}
				});
			}
		}).blur(function(){
			if($(this).val() == '' || $(this).val() == $(this).attr('rel')){
				var atty = $(this).attr('rel');
				$(this).val(atty).css('color', st);
			}
		});
		
		//CHECKBOX
		$('input[type=checkbox]').each(function(){
			$(this).css({'display' : 'inline', 'width' : 'auto', 'padding' : '0px', 'margin-right' : '5px'});
		});
	//INPUT ELEMENTS
	
	//FIND LOGO
	$('#logo').css('cursor', 'pointer').bind('click', function(){
		window.location = './?page=home';
	});
	$('#foot_logo').css('cursor', 'pointer').bind('click', function(){
		window.location = './?page=home';
	});
	
	//LINE HEIGHT
	var h1 = $("#content_left").height();
	var h2 = $("#content_right").height();
	
	if(h2 >= h1){
		$("#line").css("height", h2+'px');
	}else{
		$("#line").css("height", h1+'px');
	}
	
	//CALENDAR SHOW
	$('.showDescription').toggle(function(){
		$(this).next().show(1000);
		$(this).css('font-weight', 'bold');
	},function(){
		$(this).next().hide('slow');
		$(this).css('font-weight', 'normal');
	});
});
