//same height
$(function() {
  var h, $e = $('<div>', {text:'A', fontSize:'1em'}).hide().appendTo('body');
  setInterval(function() {
    if(h != $e.css('font-size')) {
      h = $e.css('font-size');
      $('#home .section02 li span')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile();
      $('.presentList .presentListInner .info')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(2);
      $('.presentList .presentListInner')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(2);
      $('.sectionPresent02 .presentList .presentListInner .info')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(3);
      $('.sectionPresent02 .presentList .presentListInner')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(3);
      $('.sectionVoice .presentList .presentListInner .info')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(3);
      $('.sectionVoice .presentList .presentListInner')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(3);
      $('.sectionNew .spotList .name')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(4);
      $('.sectionNew .spotList .info')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(4);
      $('#main #search .sectionList .cafeList .info')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(2);
      $('#main #search .sectionShop div.thumbs ul li span.notes')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(3);
      $('#main #modelBbs .sectionList .bbsList .bbsListInner')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(4);
      $('#main #contest .sectionVote .voteList p.name')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(4);
      $('#contents #contest #mainLeft .contestDetail2 .presentList3 p.txt')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(3);
      $('#main #event .sectionEvent .eventList .info')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(4);
      $('#main #event .sectionEvent02 .eventList .info')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(4);
      $('#main #event .sectionEvent03 .eventList .info')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(4);
      $('#main #event .sectionEvent04 .eventList .info')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(4);
      $('#main #model .rightSection .hotList p.txt')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(3);
      $('#main #trend .section02 .hotList p.txt')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(3);
      $('#main #trend .section03 .hotList p.txt')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(5);
      $('#main #trend .section06 .hotList p.txt')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(4);
      $('#main #trend .sectionPickup .pickupList .info')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(3);
      $('#main #mypage_present .voiceList .info')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(3);
      $('#main #mypage_present .voiceList .voiceListInner')
        .css('height', 'auto')
        .each(function() {
          if(this.removeProperty) this.removeProperty('height');
          if(this.removeAttribute) this.removeAttribute('height');
        })
        .tile(3);
		
	 	
      
    }
  }, 2*$.fx.interval);
}); 

//jGarouselLite
$(function() {
	$(".section_album .jCarouselLite").jCarouselLite({
		btnNext: ".next",
		btnPrev: ".prev",
		visible: 2
	});
});


