var timers = new Array ();

function isEmail(email) {
    var template = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]{2,})+$/i;
    if (template.test(email)) {
        return true;
    }

    return false;
}

function docResize () {
    $('.inner').each (function (i) {

        $('.inner-left, .inner-right', this).css ({
            'height': 'auto'
        });
        $(this).css ({
            'height': 'auto'
        });
        var h1 = $('.inner-left', this).height();
        var h2 = $('.inner-right', this).height();
        var maxh = h1>h2?h1:h2;
        var _this = this;
        if ($.browser.msie) {
            if (timers[i]) {
                clearTimeout(timers[i]);
            }
            timers[i] = setTimeout( function () {
                $('.inner-left, .inner-right', _this).css ({
                    'height': maxh + 'px'
                    })
            }, 100);
        }
        else {
            $('.inner-left, .inner-right', _this).css ({
                'height': maxh + 'px'
                })
        }
    });
    $('.wrapper').css ({
        'height': 'auto'
    });
    var bh = $(document).height();
    var wh = $('.wrapper-inner').height();
    if (bh > wh) {
        $('.wrapper').css ({
            'height': bh + 'px'
            });
    }

}

$(window).resize(function() {
    //docResize();
});

$(function() {
    $('.corners').corner('5px');
    $('label.movable').movableLabel();
    //docResize();
});
