/* ============================================================
special.js
 javascripts for
 http://books.livedoor.com/special/
  created: 2008-10-16
  modified:
  $Date:: 2009-06-11 11:11:22#$
  $Author: j-yuze $
  $Revision: 87851 $
============================================================ */

(function($) {
	//execute right now

	//execute when document's ready
	$(function() {
		$("#newFeatureContent ul.itemListB01 li").each(function() {new cau1Lib.Class.setTitleToInput(this,{nameArea:"dt a:first"});});
		$("#newFeatureContent ul.itemListB02 li").each(function() {new cau1Lib.Class.setTitleToInput(this);});
		$("#specialRecommend").load("/special_recommend");
	});

	//execute when window.load(after img has loaded)
	$(window).load(function() {
		//setting box height equal
		$("#newFeatureContent ul.itemListB02").each(function() {
			new cau1Lib.Class.heightEqualizer($(this).find("li> p"));
			$(this).find("div.texts").each(function() {
				$(this).find("p").wrapAll('<div class="heightWrapper" />');
			});
			new cau1Lib.Class.heightEqualizer($(this).find(".heightWrapper"));
		})
	});
})(jQuery);
