//検索窓

//j$(document).ready(function(){j$("input[name='keyword']").toggleVal({populateFrom: "custom",text: "ゲットしたい商品名をどうぞ！！"});});

//IE6対策
j$(document).ready(function(){j$("undercolumn h2+h3.title").css("margin-top","0");});
j$(document).ready(function(){j$("under02column h2+h3.title").css("margin-top","0");});
//フォーカス
//j$(document).ready(function(){
	// Old jQuery 1.1 Functionality
//	j$("input,textarea").focusFields("#B8F402");
//});
/* Form Text Style */
j$(document).ready(function() {
        j$('input[type=password], input[type=text]').addClass('jText');

        j$('input[type=password], input[type=text], textarea').focus(function() {
                j$(this).addClass('jFocus');
        });

        j$('input[type=password], input[type=text], textarea').blur(function() {
                if (j$(this).find('.jFocus')) {
                        j$(this).removeClass('jFocus');
                }
        });
});
//ツールチップ
//jsに記載
//トップページタブ
function init(){
	var stretchers = document.getElementsByClassName('box');
	var toggles = document.getElementsByClassName('tab');
	var myAccordion = new fx.Accordion(
		toggles, stretchers, {opacity: false, height: true, duration: 600}
	);
	//hash functions
	var found = false;
	toggles.each(function(h3, i){
		var div = Element.find(h3, 'nextSibling');
			if (window.location.href.indexOf(h3.title) > 0) {
				myAccordion.showThisHideOpen(div);
				found = true;
			}
		});
		if (!found) myAccordion.showThisHideOpen(stretchers[0]);
}
