$(function(){
	$("a img").mouseover(function(){
		$(this).css("opacity", 0.75);
	});

	$("a img").mouseout(function(){
		$(this).css("opacity", 1);
	});
		
	
	// lightBox
	$("a[rel='lightbox']").lightBox();
	
	
	// navi
	$(".navi1, .navi2, .navi3, .navi4, .navi5, .navi6").mouseover(function(){
		$(this).stop(true, false).animate({
			opacity: 0.75
		}, 'fast');
	});

	$(".navi1, .navi2, .navi3, .navi4, .navi5, .navi6").mouseout(function(){
		$(this).stop(true, false).animate({
			opacity:1
		}, 'fast');
	});
	
	
	// search
	$("#search").css("color", "#999");
	$("#search").focus(function() {
        if($(this).val() === $(this).attr('defaultValue'))
        	$(this).css("color", "#000");
            $(this).val('');
    }).blur(function() {
        if(jQuery.trim($(this).val()) === "") {
        	$(this).css("color", "#999");
            $(this).val($(this).attr('defaultValue'));
        }
    });	
	
	$(".searchButton").mouseover(function(){
		$(this).css("opacity", 0.75);
	});
	
	$(".searchButton").mouseout(function(){
		$(this).css("opacity", 1);
	});
	
	
	// comment
	$("#comment-preview, #comment-submit, #comment-cancel").mouseover(function(){
		$(this).css("opacity", 0.75);
	});
	
	$("#comment-preview, #comment-submit, #comment-cancel").mouseout(function(){
		$(this).css("opacity", 1);
	});
	

	
});

