window.addEvent('domready', function() {

	SqueezeBox.assign($$('a.boxed'), {
		parse: 'rel'
	});
	
	// Create MooScroll Instances
	var scrollBox1 = new MooScroll({selector:'#left', disabledOpacity:0.0});
	var scrollBox2 = new MooScroll({selector:'#tText', disabledOpacity:0.0});	
	var scrollBox3 = new MooScroll({selector:'#iGallery', disabledOpacity:0.0});
	
	var initMultiBox = new multiBox({
		mbClass: '.mb',//class you need to add links that you want to trigger multiBox with (remember and update CSS files)
		container: $(document.body), //where to inject multiBox
		descClassName: 'multiBoxDesc',//the class name of the description divs
		path: 'fileadmin/template/js/mbox/Files/',//path to mp3 and flv players
		useOverlay: true,//use a semi-transparent background. default: false;
		maxSize: {w:800, h:500},//max dimensions (width,height) - set to null to disable resizing
		addDownload: false,//do you want the files to be downloadable?
		addRollover: true,//add rollover fade to each multibox link
		addOverlayIcon: true,//adds overlay icons to images within multibox links
		addChain: false,//cycle through all images fading them out then in
		recalcTop: true,//subtract the height of controls panel from top position
		addTips: false,//adds MooTools built in 'Tips' class to each element (see: http://mootools.net/docs/Plugins/Tips)
		autoOpen: 0//to auto open a multiBox element on page load change to (1, 2, or 3 etc)
	  });		

});


function validateRegForm() {
	var ref = document.forms['regform'].elements;
	if( ref.data.checked == false){
		alert("Bitte akzeptieren Sie zunächst die Datenvereinbarung und die AGB.\Vielen Dank.");
		return false;
	}
	return true;
}


function validateRegFormEN() {
	var ref = document.forms['regform'].elements;
	if( ref.data.checked == false){
		alert("Please accept our terms and conditions first.\Thank you very much.");
		return false;
	}
	return true;
}

function validateAppForm(){
	document.getElementById('appsbb').style.fontSize = '26px';
	document.getElementById('appsbb').value= "Bitte warten ... / Please wait ...";
	return true;
}
