/**
 * Description
 * @author tjunghans, Namics AG, www.namics.com
 * @class search
 * @namespace MEDELA.locationfinder
 * @requires jQuery
 */

/* JSLint Stuff */
/*globals jQuery */

var MEDELA = MEDELA || {};
MEDELA.locationfinder = MEDELA.locationfinder || {};

(MEDELA.locationfinder.search = function () {
    var init = null,
        getHeight = null,
        $dom = null;

    /**
     * Holds collection of jQuery objects, to minimize jQuery requests
     * @property $dom
     * @type object
     */
    $dom = {};

     /**
     * Locationfinder has a default min-height of 500px
     * The Filter (first column) determines the height (= 100%) of the application.
     * If the user resizes the brower window, that determines the height of the application.
     * @author tjunghans, Namics AG, www.namics.com
     * @method getHeight
     * @namespace MEDELA.locationfinder
     * @return {int} height in pixels
     */
    getHeight = function () {
        return parseInt($dom.medelaLocationfinderSearch.height(), 10);
    };

    init = function () {
        $dom.medelaLocationfinderSearch = jQuery('#medelaLocationfinderSearch');
        return true;
    };

    return {
        getHeight : getHeight,
        init : init
    };

}());