

var tb_pathToImage = "http://www.uchida-k.co.jp/wp-includes/js/thickbox/loadingAnimation.gif";
var tb_closeImage  = "http://www.uchida-k.co.jp/wp-includes/js/thickbox/tb-close.png";

function jPageOpen( tgg, wnn, opp)
{
	if(!opp){
	    opp = 'location=yes, menubar=no, toolbar=no, resizable=yes, scrollbars=yes';
	}
	
	var w = window.open(tgg, wnn, opp);
	w.focus();
	return false;
}


jQuery(document).ready(function(){
	ddsmoothmenu.init({
		mainmenuid: "smoothmenu", //menu DIV id
		orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
		//classname: 'ddsmoothmenu', //class added to menu's outer DIV
		//customtheme: ["#1c5a80", "#18374a"],
		contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
	});							
});

jQuery(window).ready(function(){
	
	
	jQuery('a.jWindowOpen').click(function(){

		var w = window.open(this.href, this.target);
		w.focus();
		return false;
	});
	
	
	jQuery('ul.fadeInOutAction li p').hover(
	function(){
		jQuery(this).find('span').stop().animate({'opacity' : '0'}, 500); 
		//alert("ddddd");

	},
	function(){
		jQuery(this).find('span').stop().animate({'opacity' : '1'}, 500); 
		//alert("kkkk");
	}
	);
	
	jQuery('ul.fadeInOutAction-with-color1 li:not(.selectedState) p').hover(
	function(){
		jQuery(this).stop().fadeTo(500, 0.8);
		//jQuery(this).animate({backgroundColor: '#3e3e3e'}, 500); 
	},
	function(){
		jQuery(this).stop().fadeTo(300, 1);
		//jQuery(this).animate({backgroundColor: '#1e1e1e'}, 500); 
	}
	);
	
	jQuery('div.fadeInOutAction-with-color1-img').hover(
	function(){
		jQuery(this).find('img').stop().fadeTo(300, 0.7);
		//jQuery(this).animate({backgroundColor: '#3e3e3e'}, 500); 
	},
	function(){
		jQuery(this).find('img').stop().fadeTo(300, 1);
		//jQuery(this).animate({backgroundColor: '#1e1e1e'}, 500); 
	}
	);
	
	jQuery('div.fadeInOutAction-with-color2-img').hover(
	function(){
		jQuery(this).find('img').stop().fadeTo(300, 0.0);
		//jQuery(this).animate({backgroundColor: '#3e3e3e'}, 500); 
	},
	function(){
		jQuery(this).find('img').stop().fadeTo(300, 1);
		//jQuery(this).animate({backgroundColor: '#1e1e1e'}, 500); 
	}
	);
	
	
	jQuery('#nav li').hover(
		function () {
			/*
			if(jQuery('ul', this).queue().length == 0){
				jQuery('ul', this).slideDown(500);
			}
			*/
			jQuery('ul', this).stop(false, true).slideDown(500);		
		}, 
		function () {
			jQuery('ul', this).stop(false, true).slideUp(300);
		}
	);
	
	jQuery('#sub-nav li').hover(
		function(){
		jQuery(this).find('p').stop().fadeTo(300, 0.0);
		//jQuery(this).animate({backgroundColor: '#3e3e3e'}, 500); 
		},
		function(){
			jQuery(this).find('p').stop().fadeTo(300, 1);
			//jQuery(this).animate({backgroundColor: '#1e1e1e'}, 500); 
		}
	);
	
	jQuery('img.over_effect_type_a').hover(
	function(){
		j$(this).css('border-color', '#018dee');
	},
	function(){
		j$(this).css('border-color', '#3E3E3E');
	}
	);
	
	jQuery('input.over_effect_type_a').hover(
		function(){
			j$(this).css('border-color', '#018dee');
		},
		function(){
			j$(this).css('border-color', '#3E3E3E');
		}
	);

	jQuery('img.over_effect_type_b').hover(
		function(){
			var ih = jQuery(this).height();
			var ihh = '0 ' + '-' + ih + 'px';
			jQuery(this).css('background-position', ihh);
		},
		function(){
			jQuery(this).css('background-position', '0 0');
		}
	);

	jQuery('input.over_effect_type_b').hover(
		function(){
			var ih = jQuery(this).height();
			var ihh = '0 ' + '-' + ih + 'px';
			jQuery(this).css('background-position', ihh);
		},
		function(){
			jQuery(this).css('background-position', '0 0');
		}
	);

	jQuery('li.over_effect_type_b').hover(
		function(){
			var ih = jQuery(this).height();
			var ihh = '0 ' + '-' + ih + 'px';
			jQuery(this).css('background-position', ihh);
		},
		function(){
			jQuery(this).css('background-position', '0 0');
		}
	);
	
	
	
	
	
	
	
});





