function Global(){
	
    this.init = function(){
    	(function($) {
    		self.updateColumnHeight();
    	})(jQuery);
    }
	
    this.doSearch = function(){
    	(function($) {
    		$('immoSearchForm').submit();
    	})(jQuery);
    }

    this.toggleCheckbox2 = function(){
    	(function($) {

    	var cb = $('#cb'+str);
    	var span = $('#span'+str);
    	
    	if($(cb).attr('checked')){
    		$(span).removeClass('checked');
    		$(cb).removeAttr('checked');
    	}else{
    		$(span).addClass('checked');
    		$(cb).attr('checked','checked');
    	}
    	
    	if($('#immoSearchForm .checkbox:checked').length > 0) {
    		$('#immoSearchFormSubmit').removeAttr('disabled');
    		$('#immoSearchFormSubmit').removeClass('disabled');
    	}
    	else {
    		$('#immoSearchFormSubmit').attr('disabled', 'disabled');
    		$('#immoSearchFormSubmit').addClass('disabled');
    	}
    	})(jQuery);
    }
    
    this.updateColumnHeight = function(){
    	(function($) {
    		var x = Math.max($('div#middle .colLeft').height(),$('#middle .colCenter').height(), $('#middle .colRight').height(), $('#middle .colBigRight').height());
    		
    		$('div#middle .colLeft').height(x+10);
    		$('div#middle .colCenter').height(x);
    		$('div#middle .colRight').height(x);
			
    	})(jQuery);
    }
    
    var self = this;
}

var global = new Global();

(function($) {
	$(document).ready(function(){
		
	});

})(jQuery);
