/*@cc_on
@if ( @_jscript )

@else */
        var mttg_adaptor = function() {
                this.height = 0;
                this.width = 0;

		this.adapt   = function (h,w) {
			Werbeagentur = document.getElementById('Werbeagentur');
			Internetauftritt = document.getElementById('Internetauftritt');
			Augsburg  = document.getElementById('Augsburg');

			if( Werbeagentur && this.height != h ) {
				Werbeagentur.style.top = Math.max((h-380)/2,0);
				}

			if( Internetauftritt && this.height != h ) {
				Internetauftritt.style.top = Math.max((h-380)/2,0);
				}

			if( Augsburg ) {
				Augsburg.style.top = Math.max((h-0)/2,0);
				}

			if(Werbeagentur && Internetauftritt && Augsburg) 
					this.height = h;
			
			if( Werbeagentur && this.width != w ) {
				Werbeagentur.style.left = Math.max((w-750)/2,0);
				this.width = w;
				}
			}
        	}

	mttg_adaptPositions = new mttg_adaptor()

        window.onresize = function() { mttg_adaptPositions.adapt(window.innerHeight,window.innerWidth); }

        tmp = function() {
                Werbeagentur = document.getElementById('Werbeagentur');
                Internetauftritt = document.getElementById('Internetauftritt');
                Augsburg  = document.getElementById('Augsburg');

                mttg_adaptPositions.adapt(window.innerHeight,window.innerWidth);

                if( !(Werbeagentur && Internetauftritt && Augsburg) )
                        setTimeout(tmp,10);
        	}

        tmp();/* @end
@*/
