// Script that contains a few helper functions for HHUD PhilFak
// (c) 2009 S. Teuber

// We need to wait for "load" instead of "domready" because there may be
// images without width/height attributes that alter the height of the content area
window.addEvent('load', function() {

	// Set shadow layer to at least the height of the viewport, if it's smaller
	var viewportHeight = window.getSize().y;
	var shadowHeight = $('schatten').getSize().y;

	if (shadowHeight < viewportHeight) {
		$('schatten').setStyle('height', viewportHeight + 'px');

	}
});

// This outputs an @
function obscureAddMid() {
    document.write('&#64;');
}

// This outputs a '.'
function obscureAddEnd() {
    document.write('&#46;');
}
