
function aspenGlossary( link, content ) {
	_gloss.setSource( '/de/glossary.htx/' + content );
	_gloss.slideIn();
}



if ( typeof MooTools == 'object' ) {

var _gloss_Main = new Class( {

    initialize: function() {

        this.divWin = new Element( 'div', { 'id': 'gloss_DivWin' } );
        this.divWin.injectInside( $( 'page_margins' ).getParent() );
        this.divInfo = new Element( 'div', { 'id': 'gloss_DivInfo' } );
        this.divInfo.injectInside( this.divWin );
        this.imgTip = new Element( 'img', { 'id': 'gloss_ImgTip', 'src': '/images/ktip.png' } );
        this.imgTip.injectInside( this.divInfo );
        this.AClose = new Element( 'a', { 'id': 'gloss_AClose', 'href': 'javascript:_gloss.slideOut()' } );
        this.AClose.injectInside( this.divInfo );
        this.imgClose = new Element( 'img', { 'id': 'gloss_ImgClose', 'src': '/images/close.png' } );
        this.imgClose.injectInside( this.AClose );
        this.Frame = new Element( 'iframe', { 'id': 'gloss_Frame', 'frameborder': 0 } );
        this.Frame.injectInside( this.divInfo );
    },

	setSource: function( src ) {
		this.Frame.src = src;
	},

	slideIn: function() {
		this.divWin.style.left = ( window.getWidth() / 2 - 246 ) + 'px';
        this.divWin.effect( 'top' ).start( 24 );
	},

	slideOut: function() {
        this.divWin.effect( 'top' ).start( -360 );
		this.setSource( '/de/glossary.htx' );
	}

} );

var _gloss;

window.addEvent( 'domready', function() { _gloss = new _gloss_Main(); }  );

}