/**
 * @author Joe Ray Gregory
 * @company: WebSeason
 * @Zuletzt bearbeitet am 14.04.2007
 * @Version 0.2a
 * @Todo in Version 0.2a
 *	nothing yet


window.onload = function(){
	
	var height = window.getScrollHeight();
	var width = window.getScrollWidth();

	
	
	var logo_src = '/fileadmin/template/images/logo-tranz.gif';
	var overlayimg = '/fileadmin/user_upload/images/ansprechpartner/overlay/'+GlobOverlayImg;
	var frame_width = 900;
	
	
	
	
	

	// Create the div overlay
	new Element('div', {
		'id': 'overlay'
	}).injectInside($$('body')[0]);

	//Get your Span Class wich wrapped your link
	$$('.frame').each(function(el) {
		//Start the onclick function of your link
		el.getChildren()[0].onclick = function() {
		var winScroller = new Fx.Scroll(window);
		winScroller.toTop();
			//Create the overlay logo Element


			//Create the Iframe Element			
			new Element('iframe', {
				styles: {
					'opacity': '0'
				},
				src: el.getChildren()[0].href,
				width:frame_width,
				frameborder:0,
				'id':'frameset'
			}).injectInside($$('body')[0]);
			
			//Set styles to your new element div layer 
				$('overlay').setStyles({
					'width': width+'px',
					'height': height+'px',
					'opacity': '0',
					'zIndex':'1'
				});
				
				//Start Effect Fade In for your overlay
				$('overlay').effects().start({
				'opacity':[0,.7]
				}).addEvent('onComplete', function(){
					//Set Styles to your new element frame after complete fade in of overlay
					$('frameset').setStyles({
						'opacity': '0',
						'zIndex':'10',
						'position':'absolute',
						'top':'200px',
						'left':'50%',
						'marginLeft':'-450px'
					});
					//Set Effect Slide in of your element frame
					$('frameset').effects().start({
						'height':[0,600],                // H�HE IFRAME
						'opacity':[0, 1]
					});
				
				});
				
				//Create the Close Button
				new Element('img', {
					'id': 'close',
					src: overlayimg
				}).injectInside($$('body')[0]);
				
				//Set options for the Close Button
				$('close').onclick = function() {
					$('frameset').effect('height').start(600,0).addEvent('onComplete', function(){
						$('frameset').remove();
						$('overlay').effect('opacity').start(.8,0)
					});
					this.remove()
				}
				return false;
			}
	});
}
**/