// JavaScript Document



//ラインナップ　カテゴリページ用　-----------------------------------
$(function(){
    /* div要素を2つずつの組に分ける */
    var sets = [], temp = [];
    $('#lineup_list > div ').each(function(i) {
        temp.push(this);
        if (i % 2 == 1) {
            sets.push(temp);
            temp = [];
        }
    });
    if (temp.length) sets.push(temp);

    /* 各組ごとに高さ揃え */
    $.each(sets, function() {
        $(this).flatHeights();
    });
});



//ラインナップ　メイクカテゴリ例外ページ用　-----------------------------------
$(function(){
    /* div要素を2つずつの組に分ける */
    var sets = [], temp = [];
    $('#lineup_list_ex > div ').each(function(i) {
        temp.push(this);
        if (i % 2 == 1) {
            sets.push(temp);
            temp = [];
        }
    });
    if (temp.length) sets.push(temp);

    /* 各組ごとに高さ揃え */
    $.each(sets, function() {
        $(this).flatHeights();
    });
});



//ラインナップ　共通　-----------------------------------
$(function(){
    /* div要素を2つずつの組に分ける */
    var sets = [], temp = [];
    $('.Height1 > div ').each(function(i) {
        temp.push(this);
        if (i % 2 == 1) {
            sets.push(temp);
            temp = [];
        }
    });
    if (temp.length) sets.push(temp);

    /* 各組ごとに高さ揃え */
    $.each(sets, function() {
        $(this).flatHeights();
    });
});
$(function(){
    /* div要素を2つずつの組に分ける */
    var sets = [], temp = [];
    $('.Height2 > div ').each(function(i) {
        temp.push(this);
        if (i % 2 == 1) {
            sets.push(temp);
            temp = [];
        }
    });
    if (temp.length) sets.push(temp);

    /* 各組ごとに高さ揃え */
    $.each(sets, function() {
        $(this).flatHeights();
    });
});
$(function(){
    /* div要素を2つずつの組に分ける */
    var sets = [], temp = [];
    $('.Height3 > div ').each(function(i) {
        temp.push(this);
        if (i % 2 == 1) {
            sets.push(temp);
            temp = [];
        }
    });
    if (temp.length) sets.push(temp);

    /* 各組ごとに高さ揃え */
    $.each(sets, function() {
        $(this).flatHeights();
    });
});
$(function(){
    /* div要素を2つずつの組に分ける */
    var sets = [], temp = [];
    $('.Height4 > div ').each(function(i) {
        temp.push(this);
        if (i % 2 == 1) {
            sets.push(temp);
            temp = [];
        }
    });
    if (temp.length) sets.push(temp);

    /* 各組ごとに高さ揃え */
    $.each(sets, function() {
        $(this).flatHeights();
    });
});
