//SIMPO TAB
$(function(){
					 
	$("a.btn_act").click(function(){
		var connectCont = $("a.btn_act").index(this);
		var showCont = connectCont+1;
		$('.tabContents').css({display:'none'});
		$('#tabContent'+(showCont)).fadeIn('slow');

		$('a.btn_act').removeClass('current');
		$(this).addClass('current');
	});
	
	//透明度のロールオーバー
	$(".fadeOver img,.fadeOver:image").hover(function(){
		$(this).fadeTo(200, 0.0);
	},function(){
		$(this).fadeTo(300, 1.0);
	});


	$(".inputText[type=text], .apiBody select").focus(function(){
		$(this).addClass("focused");
	}).blur(function(){
		$(this).removeClass("focused");
	});


	//プレースフォルダー
	/*
	$('.inputText[title]').each(function() {
		if($(this).val() === '') {
			$(this).val($(this).attr('title'));	
		}
		
		$(this).focus(function() {
			if($(this).val() == $(this).attr('title')) {
				$(this).val('').addClass('focused');	
			}
		});
		$(this).blur(function() {
			if($(this).val() === '') {
				$(this).val($(this).attr('title')).removeClass('focused');	
			}
		});
	});*/


	//郵便番号のインプット
	$(".inputZip").focus(function(){
			if(this.value == "例）1600022"){
					 $(this).val("")
					 .css("color","#333")
					 .css("background-color","#ffc")
					 .css("border-color","#f60");
			}
	});
	$(".inputZip").blur(function(){
			if(this.value == ""){
					 $(this).val("例）1600022")
					 .css("color","#969696")
					 .css("background-color","#fff")
					 .css("border-color","#8391A0 #AABDD0 #AABDD0 #8391A0");
			} else {
					 $(this).css("color","#333")
					 .css("background-color","#fff")
					 .css("border-color","#8391A0 #AABDD0 #AABDD0 #8391A0");
			}
	});
	

});
