// JavaScript Document
var SITE = {
	init: function() {
		/*
		* Sortiertmenu auf der Mitgliederseite mit onchangefunction ausstatten
		*/
		this.sortMenus = $$('.sortThis');
		if (this.sortMenus) this.attachSortMenus();
		
	},
	resizeContent: function() {
		this.elContent = $('content');
		this.elWrapper = $('wrapper');
		this.winHeight = Window.getHeight().toInt();
		this.elContent.setStyles({
			'height': (this.winHeight - 70) + 'px',
			'top': '70px'
		});
	},
	attachSortMenus: function() {
		var selectNames = new Array();
		this.sortMenus.addEvents({
			'change': function() {
				this.getParent('form').submit();
			}
		});
	}
}

window.onload = function() {
	SITE.init();
	if (Browser.Engine.trident4) {
		// IE6 Hookups
		SITE.resizeContent();
		window.onresize = SITE.resizeContent; 
	}
		
}