jQuery(document).ready(function(){

jQuery(function(){
	$('ul.sf-menu').superfish();
});	

jQuery(".pt1").click(function () { 
	$(".pt1").addClass("tab_active");
	$(".pt2").removeClass("tab_active");
	$(".pt3").removeClass("tab_active");
	$(".pt4").removeClass("tab_active");
	$(".pt5").removeClass("tab_active");
	$(".flower1").show();
	$(".flower2").hide();
	$(".flower3").hide();
	$(".flower4").hide();
	$(".flower5").hide();
});
jQuery(".pt2").click(function () { 
	$(".pt2").addClass("tab_active");
	$(".pt1").removeClass("tab_active");
	$(".pt3").removeClass("tab_active");
	$(".pt4").removeClass("tab_active");
	$(".pt5").removeClass("tab_active");
	$(".flower2").show();
	$(".flower1").hide();
	$(".flower3").hide();
	$(".flower4").hide();
	$(".flower5").hide();
});
jQuery(".pt3").click(function () { 
	$(".pt3").addClass("tab_active");
	$(".pt1").removeClass("tab_active");
	$(".pt2").removeClass("tab_active");
	$(".pt4").removeClass("tab_active");
	$(".pt5").removeClass("tab_active");
	$(".flower3").show();
	$(".flower1").hide();
	$(".flower2").hide();
	$(".flower4").hide();
	$(".flower5").hide();
});
jQuery(".pt4").click(function () { 
	$(".pt4").addClass("tab_active");
	$(".pt1").removeClass("tab_active");
	$(".pt2").removeClass("tab_active");
	$(".pt3").removeClass("tab_active");
	$(".pt5").removeClass("tab_active");
	$(".flower4").show();
	$(".flower1").hide();
	$(".flower2").hide();
	$(".flower3").hide();
	$(".flower5").hide();
});
jQuery(".pt5").click(function () { 
	$(".pt5").addClass("tab_active");
	$(".pt1").removeClass("tab_active");
	$(".pt2").removeClass("tab_active");
	$(".pt3").removeClass("tab_active");
	$(".pt4").removeClass("tab_active");
	$(".flower5").show();
	$(".flower1").hide();
	$(".flower2").hide();
	$(".flower3").hide();
	$(".flower4").hide();
});
	

jQuery('#advice_email').addClass("idleField");
jQuery('#advice_email').focus(function() {
	jQuery(this).removeClass("idleField").addClass("focusField");
	if (this.value == this.defaultValue){ 
		this.value = '';
	}
	if(this.value != this.defaultValue){
		this.select();
	}
});
jQuery('#advice_email').blur(function() {
	jQuery(this).removeClass("focusField").addClass("idleField");
	if (jQuery.trim(this.value) == ''){
		this.value = (this.defaultValue ? this.defaultValue : '');
	}
});
jQuery('#member_name').addClass("idleField");
jQuery('#member_name').focus(function() {
	jQuery(this).removeClass("idleField").addClass("focusField");
	if (this.value == this.defaultValue){ 
		this.value = '';
	}
	if(this.value != this.defaultValue){
		this.select();
	}
});
jQuery('#member_name').blur(function() {
	jQuery(this).removeClass("focusField").addClass("idleField");
	if (jQuery.trim(this.value) == ''){
		this.value = (this.defaultValue ? this.defaultValue : '');
	}
});
jQuery('#keyword').addClass("idleField");
jQuery('#keyword').focus(function() {
	jQuery(this).removeClass("idleField").addClass("focusField");
	if (this.value == this.defaultValue){ 
		this.value = '';
	}
	if(this.value != this.defaultValue){
		this.select();
	}
});
jQuery('#keyword').blur(function() {
	jQuery(this).removeClass("focusField").addClass("idleField");
	if (jQuery.trim(this.value) == ''){
		this.value = (this.defaultValue ? this.defaultValue : '');
	}
});
jQuery('#member_password').addClass("idleField");
jQuery('#member_password').focus(function() {
	jQuery(this).removeClass("idleField").addClass("focusField");
	if (this.value == this.defaultValue){ 
		this.value = '';
	}
	if(this.value != this.defaultValue){
		this.select();
	}
});
jQuery('#member_password').blur(function() {
	jQuery(this).removeClass("focusField").addClass("idleField");
	if (jQuery.trim(this.value) == ''){
		this.value = (this.defaultValue ? this.defaultValue : '');
	}
});
});
