/*------------ サイト内検索の表示が消えたり現れたり ------------*/
jQuery(function(){
	$("#sitesearch").focus(
		function() {
			if($(this).val() == $(this).attr('defaultValue')) {
				$(this).css('color', '#000').val('');
			}
		}
	).blur(
		function() {
			if(jQuery.trim($(this).val()) == "") {
				$(this).css('color', '#999').val($(this).attr('defaultValue'));
			}
		}
	);
});
jQuery(function(){
	$("#sitesearch2").focus(
		function() {
			if($(this).val() == $(this).attr('defaultValue')) {
				$(this).css('color', '#000').val('');
			}
		}
	).blur(
		function() {
			if(jQuery.trim($(this).val()) == "") {
				$(this).css('color', '#999').val($(this).attr('defaultValue'));
			}
		}
	);
});



/*------------ スライドダウン、アップ ------------*/
/*未使用
jQuery(document).ready(function(){
	jQuery('#ticket').click(function() {
	    jQuery('#ticket-toggle').slideToggle('slow');
	});
	jQuery('#partnerbutton').click(function() {
	    jQuery('#partner-toggle').slideToggle('slow');
	});
});
*/



/*------------ hoverで背景をグレー ------------*/
jQuery(function() {
	$('.hoverbgcolorgray').hover(
		function() {
			$(this).css('background-color', '#f5f5f5');
		},
		function() {
			$(this).css('background-color', '');
		}
	);
});



/*------------ focusで背景をグレー ------------*/
jQuery(function(){
	$("form input,form textarea").focus(
		function() {
			$(this).css('background-color', '#f5f5f5');
		}
	).blur(
		function() {
			$(this).css('background-color', '');
		}
	);
});



/*------------ end of file ------------*/
