/*

lastupdate:2011/02/01

*/
var add = {
	winkRollover:function(){
		$('.wink img').mouseover(function(){
			$(this).css({
				opacity:0.2
			});
			$(this).fadeTo('slow',1);
		});
	},
	
	currentOpen:function(){
		$('#navi > ul ul').hide();
		$('#navi .current').parents().show();
		$('#navi .current').parent().children().show();
	},
	
	defText:function(){
		var txtField = $("#headerR input");
		var defTxt = 'サイト内検索';
		var valTxt = txtField.val();
		var txtColor = '#44545E';
		
		if(!valTxt){
			txtField.val(defTxt).css("color",txtColor);
		}
		
		txtField.focus(function(){
			if(this.value == defTxt){
				$(this).val("").css("color","#333");
			}
		});
		
		txtField.blur(function(){
			if(this.value == ""){
				$(this).val(defTxt).css("color",txtColor);
			}else{
				$(this).css("color","#333");
			}
		});
	},
	
	opaRollover:function(){
		$('div#bannerArea a img').hover(function(){
			$(this).css('opacity', 0.7);
		},function(){
			$(this).css('opacity', 1);
		}
		);
	}
}

$(function(){
	add.winkRollover();
});


window.onload = function(){
	//$('').flatHeights();
}



