
	function hideInputBg(field)
	{
		ipField = document.getElementById(field);
		ipField.style.background = "#fff";
	}
	
	
	function IE_Refresh(){
		if (document.all) location.reload();
	}
	window.onresize = IE_Refresh;
	
	
/* Standard Popup functions */
	function StandardPopup(Attrs){
		// @params IE and Gecko-Browser compatible window parameter attributes.
		this.params = ['left', 'top', 'location', 'menubar', 'resizable', 'scrollbars', 'status', 'toolbar', 'height', 'width'];
		this.href = Attrs.href ? Attrs.href : 'http://www.google.de'; // url to the popup content
		this.name = Attrs.name ? Attrs.name : 'standardPopup'; // standard window name
		this.height = Attrs.height ? Attrs.height : '550'; // standard height opened window
		this.width = Attrs.width ? Attrs.width : '650'; // standard width opened window
		this.left = Attrs.left ? Attrs.left : null; // window left position from the upper left corner of the client screen
		this.top = Attrs.top ? Attrs.top : null; // window top position from the top of the client screen
		this.locationbar = Attrs.location ? Attrs.location : 'no'; // ['yes', 'no'] display the locationbar
		this.menubar = Attrs.menubar ? Attrs.menubar : 'no'; // ['yes', 'no'] display the menubar
		this.resizable = Attrs.resizable ? Attrs.resizable : 'yes'; // ['yes', 'no'] allows the user to change the window size
		this.scrollbars = Attrs.scrollbars ? Attrs.scrollbars : 'yes'; // ['yes', 'no'] show scrollbars if necessary
		this.status = Attrs.status ? Attrs.status : 'no'; // ['yes', 'no'] show statusbar
		this.toolbar = Attrs.toolbar ? Attrs.toolbar : 'no'; // ['yes', 'no'] show toolbar
		this.wRef = null // window reference to make changes on the opened window
	}
	
	StandardPopup.prototype._formatParams = function()
	{
		var str = '\'';
		var objParam;
		for (var i = 0; i < this.params.length; ++i){
			objParam = this.params[i] == 'location' ? 'locationbar' : this.params[i];
			p = eval("this." + objParam);
			if (p){
				str += this.params[i] + '=' + p + ',';
			}
		}
		str = str.substring(0, str.length -1);
		str += '\'';
		return str;
	}
	
	StandardPopup.prototype.open = function(){
		var paraStr = this._formatParams();
		this.wRef = window.open(this.href, this.name, paraStr);
		if (this.wRef)
			this.wRef.focus();
		return false;
	}

	
/* >> GES startpage icons */
	var SwitchText = {
		timer: null,
		stdElm: null,
		elmList: null,
		oldImgId: null,
		changeTo: function(id, elm){
			var stdElm = null;
			if (this.stdElm) stdElm = document.getElementById(this.stdElm);
			for (var i = 0; i < this.elmList.length; ++i){
				var t = document.getElementById(this.elmList[i]);
				if (this.elmList[i] == id){
					if (this.timer){
						clearTimeout(this.timer);
						this.timer = null;
					}
					if (this.stdElm){
						stdElm.style.display = 'none';
						var that = this;
						//this.timer = setTimeout(function(){that.changeTo(that.stdElm, this);}, this.resetTime);
					}
					this.changeSrc(elm);
					t.style.display = 'block';
				}else{
					if (! id){
						this.changeSrc(null);
						t.style.display = 'none';
						if (this.stdElm){
							var stdEl = document.getElementById(this.stdElm);
							stdEl.style.display = 'block'
						}
					}else{
						t.style.display = 'none';
					}
				}
			}
			if (id == this.stdElm){
				stdElm.style.display = 'block';
			}
		},
		changeSrc: function(elm){
			if (elm){
				var src = elm.src;
				var path = src.substring(0, src.lastIndexOf('/') +1);
				var file = src.substring(src.lastIndexOf('/') +1, src.length);
				var fileName = file.substring(0, file.lastIndexOf('.'));
				var fileExt = file.substring(file.lastIndexOf('.') +1, file.length);
				elm.src = path + fileName + '_act.' + fileExt;
				this.oldImgId = elm.id;
			}else{
				if (this.oldImgId){
					var oldImg = document.getElementById(this.oldImgId);
					oldImg.src = oldImg.src.replace(/_act./g, '.');
				}
			}
		},
		init: function(attrs){
			this.stdElm = attrs.stdElmId ? attrs.stdElmId : null;
			this.resetTime = attrs.resetAfter ? attrs.resetAfter : 8000;
			this.elmList = attrs.elmIdList ? attrs.elmIdList : [];
		}
	}
/* << */


/* >> GES Group product configurator requires jQuery 1.2.6*/
	ProductConfiguratorSearchHandler = {
		selects: null,
		pool: {},
		cache: [],
		initI18n: function(){
			$.lang('categories',
				{
					'de': '- Alle Kategorien -',
					'en': '- All categories -',
					'fr': '- Tous catégoriser -',
					'it': '- All categories -',
					'es': '- All categories -'
				}
			);
			$.lang('ajaxLoadingFinished',
				{
					'de': 'Aktualisierung beendet.',
					'en': 'Update controls has finish.',
					'fr': 'Actualisation fini.',
					'it': 'Update controls has finish.',
					'es': 'Update controls has finish.'
				}
			);
			$.lang('ajaxLoading',
				{
					'de': 'Aktualisierung...',
					'en': 'Update controls...',
					'fr': 'Actualisation...',
					'it': 'Update controls...',
					'es': 'Update controls...'
				}
			);
		},
		getCategoryTitle: function(n){
			return $('select[name=searchCategory' + n + ']')
				.parents('td[class*=field]')
				.prev('td[class*=prompt]')
				.find('span')
				.text();
		},
		init: function(){
			this.initI18n();
			this.selects = selects = $('select[name*=searchCategory]');
			$('table.elsMain td.go').prepend($('<div id="scriptShell"></div>').css({'position': 'relative', 'text-align': 'left'}));
			var message = $('<div></div>').attr({'id': 'modalMessage'});
			$('#scriptShell').append(message);
			this.cacheCurrentOptionPool(selects);
			this.prepareSelectControls(selects);
			$('div.pager').css({'visibility': 'hidden'});
			this.filterWithCurrentPoolData(true);
			this.makeResetButton();
			this.makeListDetailWrapperShell();
		},
		prepareSelectControls: function(selects){
			var self = this;
			selects.each(
				function(n){
					$(this).bind('change',
						function(e){self.handleSelectControlChange($(this).val(), e);}
					);
				}
			);
		},
		cacheCurrentOptionPool: function(selects){
			var self = this;
			selects.each(function(i){
				name = $(this).attr('name');
				$(this).children().each(function(j){
					$this = $(this);
					if (! isNaN(parseInt($this.val()*1))){
						var option = {};
						option.name = name;
						option.selected = $this.attr('selected');
						option.text = $this.text();
						self.pool[$this.val()] = option;
					}
				})
			});
		},
		setCurrentSelectionState: function(val, e){
			var controlName = $(e.target).attr('name');
			for (var k in this.pool){
				var o = this.pool[k];
				if (o.name == controlName){
					o.selected = false;
					if (k == val) o.selected = true;
				}
			}
		},
		filterWithCurrentPoolData: function(showResults){
			this.showMessageAndBlockFieldsIfBusy('busy');
			var self = this;
			$.getJSON('/productconfigurator', this.getSubmitData(), function(data, textStatus){
				if (textStatus == 'success'){
					var ids = data.ids ? data.ids : data;
					self.updateSelectControls(ids, textStatus);
					if (showResults && data.result){
						self.updateResultListAndConnectLinkedElements(data.result);
					}
				}
			});
		},
		handleSelectControlChange: function(val, e){
			this.setCurrentSelectionState(val, e);
			this.filterWithCurrentPoolData(true);
			this.handleBackButtonClick();
		},
		handleDetailLink: function(dId, e){
			e.preventDefault();
			e.stopPropagation();
			var self = this;
			$('#scrollingPane').append('<div id="detailWrapper" style="width: 711px; float: left;"></div>');
			var lang = $.lang();
			if (lang != 'de') lang = 'en';
			$('#detailWrapper').load('/productconfigurator/detail?lang=' + lang + '&id=' + dId, function(){
				self.makeBackButton();
				$('#listDetailWrapper').scrollTo('#detailWrapper', {'axis': 'x', 'duration': 1000});
			});
		},
		handleBackButtonClick: function(){
			$('#listDetailWrapper').scrollTo('table.prodConfOvTable', {
				'axis': 'x', 'duration': 1000,
				'onAfter': function(){$('#detailWrapper').remove()}
			});
		},
		getSubmitData: function(){
			var self = this;
			var l = [];
			for (var k in this.pool){
				o = this.pool[k];
				if (o.selected) l.push(k);
			}
			var lang = $.lang();
         if (lang != 'de') lang = 'en';
			return {'s': l, 'lang': lang};
		},
		updateSelectControls: function(data, textStatus){
			var self = this;
			setTimeout(function(){self.showMessageAndBlockFieldsIfBusy(textStatus)}, 1000);
			var nos = $('<option></option>').attr({'value': 'nothingSelected'}).text($.lang('categories'));
			var self = this;
			this.selects.children().remove().end().attr({'disabled': true}).append(nos);
			var cnt = 0;
			for (var k in this.pool){
				var o = this.pool[k];
				if ($.inArray(k*1, data) > -1){
					var sbox = $('select[name=' + o.name + ']').attr({'disabled': false});
					if (cnt == 0){
						sbox.append(nos);
						cnt++;
						continue;
					}
					sbox.append(
						$('<option></option>').attr(
							{'value': k, 'selected': o.selected}
						).text(o.text)
					);
				}
				cnt++;
			}
		},
		updateResultListAndConnectLinkedElements: function(data){
			var coid = location.href;
			coid = coid.substring(coid.lastIndexOf('_id_') + 4, coid.lastIndexOf('_.htm'));
			var ext = '.htm';
			data = data.replace(/\$coid\$/g, coid);
			data = data.replace(/\$ext\$/g, ext);
			var self = this;
			$('table.prodConfOvTable').fadeOut('slow', function(){
				$(this).find('.prodConfOvItem')
					.remove()
					.end()
					.find('tbody')
					.append(data)
					.end()
					.fadeIn('slow')
					.find('.prodConfOvItem')
					.each(function(n){
						var href = $(this).find('a').attr('href');
						var dId = href.substring(href.lastIndexOf('_dId_') + 5, href.lastIndexOf('_'));
						$(this).find('a').bind('click', function(e){self.handleDetailLink(dId, e)});
					})
			});
		},
		makeBackButton: function(){
			var self = this;
			var b = $('<div id="detailBackButton"></div>').append(
				$('<input type="image">').attr(
					{'name': 'back', 'src': 'gesGroup/04/img/en/prodConfBackButton.gif'}
				).bind(
					'click',
					function(e){e.preventDefault(); self.handleBackButtonClick(e)}
				)
			)
			$('#detailWrapper').append(b);
		},
		makeResetButton: function(){
			$('td.go input[name=submit]').hide();
			var button = $('<input type="image">').css(
				{
					'position': 'relative',
					'left': '628px',
					'z-index': '33'
				}
			).attr(
				{'name': 'reset', 'src': 'gesGroup/04/img/en/prodConfResetButton.gif'}
			).bind(
				'click',
				function(e){e.preventDefault(); window.location = $('table.baseNav td.res a').attr('href')}
			).hide();
			$('#scriptShell').append(button).find('input[name=reset]').fadeIn('slow');
		},
		makeListDetailWrapperShell: function(){
			$('table.prodConfOvTable').wrap('<div id="listDetailWrapper" style="width: 711px; overflow: hidden;"><div id="scrollingPane" style="width: 1422px;"></div></div>').css({'float': 'left', 'width': '711px'});;
		},
		showMessageAndBlockFieldsIfBusy: function(requestStatus){
			var text = $.lang('ajaxLoadingFinished'); 
			var styles = {
				'position': 'absolute',
				'left': '0',
				'top': '4px',
				'z-index': '11',
				'border': '1px solid #fe2695',
				'padding': '2px 5px 2px',
				'background': '#fff'
			}
			if (requestStatus != 'success'){
				this.selects.attr({'disabled': true});
				text = $.lang('ajaxLoading');
				styles = $.extend(
					styles,
					{
						'background': '#fff url(gesGroup/04/img/loadingRotor.gif) 4px 50% no-repeat',
						'padding': '2px 5px 2px 20px'
					}
				);
				;
			}
			$('#modalMessage').fadeOut('fast', function(){
				$(this).css(styles).text(text).fadeIn('fast');
			});
		}
	}
/* << */


// >> Infokartensteuerung AKW requires Mochikit 1.4+
	var Infocard = {
		topLinks: null,
		bottomLinks: null,
		offset: null,
		balloon: null,
		balloonDisplay: null,
		textContainer: null,
		lang: 'en',
		config: {
			de_top: [
				{'title': 'Brasilien', 'x': 207, 'y': 295, 'content': 'info_brasilien', 'htmlBreak': false},
				{'title': 'China', 'x': 499, 'y': 197, 'content': 'info_china', 'htmlBreak': false},
				{'title': 'Dänemark', 'x': 314, 'y': 133, 'content': 'info_daenemark', 'htmlBreak': false},
				{'title': 'Deutschland', 'x': 318, 'y': 154, 'content': 'info_deutschland', 'htmlBreak': false},
				{'title': 'Frankreich', 'x': 300, 'y': 157, 'content': 'info_frankreich', 'htmlBreak': true},
				{'title': 'Golf-Staaten', 'x': 360, 'y': 192, 'content': 'info_golfstaaten', 'htmlBreak': false},
				{'title': 'Indien', 'x': 446, 'y': 214, 'content': 'info_indien', 'htmlBreak': false},
				{'title': 'Italien', 'x': 315, 'y': 166, 'content': 'info_italien', 'htmlBreak': false},
				{'title': 'Kasachstan', 'x': 409, 'y': 170, 'content': 'info_kasachstan', 'htmlBreak': false},
				{'title': 'Korea', 'x': 514, 'y': 185, 'content': 'info_korea', 'htmlBreak': false},
				{'title': 'Österreich', 'x': 326, 'y': 160, 'content': 'info_oesterreich', 'htmlBreak': false},
				{'title': 'Polen/Slowenien', 'x': 327, 'y': 137, 'content': 'info_polenslowenien', 'htmlBreak': false}
			],
			de_bottom: [
				{'title': 'Russland/GUS-Staaten', 'x': 365, 'y': 129, 'content': 'info_russlandgusstaaten', 'htmlBreak': false},
				{'title': 'Singapur', 'x': 470, 'y': 254, 'content': 'info_singapur', 'htmlBreak': false},
				{'title': 'Schweiz', 'x': 311, 'y': 158, 'content': 'info_schweiz', 'htmlBreak': false},
				{'title': 'Spanien/Portugal/Chile', 'x': 287, 'y': 173, 'content': 'info_spanienportugalchile', 'htmlBreak': true},
				{'title': 'Tschechien/Slowakei', 'x': 336, 'y': 152, 'content': 'info_tschechienslowakei', 'htmlBreak': false},
				{'title': 'Türkei', 'x': 344, 'y': 176, 'content': 'info_tuerkei', 'htmlBreak': false},
				{'title': 'Venezuela', 'x': 172, 'y': 235, 'content': 'info_venezuela', 'htmlBreak': false},
				{'title': 'Weißrussland', 'x': 349, 'y': 137, 'content': 'info_weissrussland', 'htmlBreak': false}
			],
			en_top: [
				{'title': 'Austria', 'x': 326, 'y': 160, 'content': 'info_austria', 'htmlBreak': false},
				{'title': 'Brazil', 'x': 207, 'y': 295, 'content': 'info_brazil', 'htmlBreak': false},
				{'title': 'China', 'x': 499, 'y': 197, 'content': 'info_china', 'htmlBreak': false},
				{'title': 'Czech Republic/Slovakia', 'x': 336, 'y': 152, 'content': 'info_czechrepublicslovakia', 'htmlBreak': true},
				{'title': 'Denmark', 'x': 314, 'y': 133, 'content': 'info_denmark', 'htmlBreak': false},
				{'title': 'France', 'x': 300, 'y': 157, 'content': 'info_france', 'htmlBreak': false},
				{'title': 'Germany', 'x': 318, 'y': 154, 'content': 'info_germany', 'htmlBreak': false},
				{'title': 'India', 'x': 446, 'y': 214, 'content': 'info_india', 'htmlBreak': false},
				{'title': 'Italy', 'x': 315, 'y': 166, 'content': 'info_italy', 'htmlBreak': false},
				{'title': 'Jordan/Saudi Arabia', 'x': 360, 'y': 192, 'content': 'info_jordansaudiarabia', 'htmlBreak': false},
				{'title': 'Kazakhstan', 'x': 409, 'y': 170, 'content': 'info_kazakhstan', 'htmlBreak': false}
			],
			en_bottom: [
				{'title': 'Korea', 'x': 514, 'y': 185, 'content': 'info_korea', 'htmlBreak': false},
				{'title': 'Poland/Slovenia', 'x': 327, 'y': 137, 'content': 'info_polandslovenia', 'htmlBreak': false},
				{'title': 'Rebuplic of Belarus', 'x': 349, 'y': 137, 'content': 'info_republicofbelarus', 'htmlBreak': false},
				{'title': 'Russia/CIS', 'x': 365, 'y': 129, 'content': 'info_russiacis', 'htmlBreak': false},
				{'title': 'Singapore', 'x': 470, 'y': 254, 'content': 'info_singapore', 'htmlBreak': true},
				{'title': 'Spain/Portugal/Chile', 'x': 287, 'y': 173, 'content': 'info_spainportugalchile', 'htmlBreak': false},
				{'title': 'Switzerland', 'x': 311, 'y': 158, 'content': 'info_switzerland', 'htmlBreak': false},
				{'title': 'Turkey', 'x': 344, 'y': 176, 'content': 'info_turkey', 'htmlBreak': false},
				{'title': 'Venezuela', 'x': 172, 'y': 235, 'content': 'info_venezuela', 'htmlBreak': false}
			],
			ru_top: [
				{'title': 'Бразилия', 'x': 207, 'y': 295, 'content': 'info_brasilien', 'htmlBreak': false},
				{'title': 'Китай', 'x': 499, 'y': 197, 'content': 'info_china', 'htmlBreak': false},
				{'title': 'Дания', 'x': 314, 'y': 133, 'content': 'info_daenemark', 'htmlBreak': false},
				{'title': 'Германия', 'x': 318, 'y': 154, 'content': 'info_deutschland', 'htmlBreak': false},
				{'title': 'Франция', 'x': 300, 'y': 157, 'content': 'info_frankreich', 'htmlBreak': false},
				{'title': 'Арабские-страны', 'x': 360, 'y': 192, 'content': 'info_golfstaaten', 'htmlBreak': true},
				{'title': 'Индия', 'x': 446, 'y': 214, 'content': 'info_indien', 'htmlBreak': false},
				{'title': 'Италия', 'x': 315, 'y': 166, 'content': 'info_italien', 'htmlBreak': false},
				{'title': 'Казахстан', 'x': 409, 'y': 170, 'content': 'info_kasachstan', 'htmlBreak': false},
				{'title': 'Корея', 'x': 514, 'y': 185, 'content': 'info_korea', 'htmlBreak': false},
				{'title': 'Австрия', 'x': 326, 'y': 160, 'content': 'info_oesterreich', 'htmlBreak': false},
				{'title': 'Польша/Словения', 'x': 327, 'y': 137, 'content': 'info_polenslowenien', 'htmlBreak': false}
			],
			ru_bottom: [
				{'title': 'Россия/страны СНГ', 'x': 365, 'y': 129, 'content': 'info_russlandgusstaaten', 'htmlBreak': false},
				{'title': 'Сингапур', 'x': 470, 'y': 254, 'content': 'info_singapur', 'htmlBreak': false},
				{'title': 'Швейцария', 'x': 311, 'y': 158, 'content': 'info_schweiz', 'htmlBreak': false},
				{'title': 'Испания/Португалия/Чили', 'x': 287, 'y': 173, 'content': 'info_spanienportugalchile', 'htmlBreak': true},
				{'title': 'Чехия/Словакия', 'x': 336, 'y': 152, 'content': 'info_tschechienslowakei', 'htmlBreak': false},
				{'title': 'Турция', 'x': 344, 'y': 176, 'content': 'info_tuerkei', 'htmlBreak': false},
				{'title': 'Венесуэла', 'x': 172, 'y': 235, 'content': 'info_venezuela', 'htmlBreak': false},
				{'title': 'Белоруссия', 'x': 349, 'y': 137, 'content': 'info_weissrussland', 'htmlBreak': false}
			]
		},
		init: function(args){
			this.topLinks = $(args.topLinks);
			this.bottomLinks = $(args.bottomLinks);
			this.offset = $(args.offset);
			this.balloon = $(args.balloon);
			this.textContainer = $(args.textContainer);
			if (args.lang) this.lang = args.lang;
			connect($('balloonCloseButton'), 'onclick', bind('closeBalloon', this));
			this.createNavigation();
		},
		makeLink: function(title, xpos, ypos, contentId){
			var a = A({'href': '#'}, title);
			connect(a, 'onclick', bind('initBalloon', this, xpos, ypos, contentId));
			return a;
		},
		createNavigation: function(){
			var topEls = DIV(null);
			var bottomEls = DIV(null);
			if (typeof this.topLinks == 'object'){
				var config = this.config[this.lang + '_top'];
				for (var i = 0; i < config.length; ++i){
					var c = config[i];
					topEls.appendChild(this.makeLink(c.title, c.x, c.y, c.content));
					if (c.htmlBreak){
						var br = BR(null);
						topEls.appendChild(br);
					}
				}
				this.topLinks.appendChild(topEls);
			}
			if (typeof this.bottomLinks == 'object'){
				var config = this.config[this.lang + '_bottom'];
				for (var i = 0; i < config.length; ++i){
					var c = config[i];
					bottomEls.appendChild(this.makeLink(c.title, c.x, c.y, c.content));
					if (c.htmlBreak){
						var br = BR(null);
						bottomEls.appendChild(br);
					}
				}
				this.bottomLinks.appendChild(bottomEls);
			}
		},
		initBalloon: function(xpos, ypos, contentId, e){
			e.stop();
			if ($(contentId)){
				var b = this.balloon;
				if (this.balloonDisplay){
					if (this.balloonDisplay == contentId){
						pulsate(b, {'duration': 2});
					}else{
						fade(b, {'from': 1, 'to': 0, 'duration': 0.5, 'afterFinish': bind('display', this, xpos, ypos, contentId)});
					}
				}else{
					this.balloonDisplay = contentId;
					this.display(xpos, ypos, contentId);
				}
			}
		},
		display: function(xpos, ypos, contentId){
			this.balloonDisplay = contentId;
			setElementPosition(this.offset, {'x': xpos, 'y': ypos});
			this.textContainer.innerHTML = $(contentId).innerHTML;
			appear(this.balloon, {'from': 0, 'to': 1, 'duration': 0.5});
		},
		closeBalloon: function(e){
			this.balloonDisplay = null;
			fade(this.balloon, {'duration': 0.5});
		}
	}
// <<


// >> DGMSM Startseiten Text umschalter requires Mochikit 1.4+
	var OnEventViewText = {
		imgPath: null,
		init: function(args){
			this.imgPath = args.imgPath;
			this.connectItems();
		},
		connectItems: function(){
			for (var i = 1; i < 4; ++i){
				connect($('eventViewerLink_' + i), 'onmouseenter', bind('showDetail', this, i));
				connect($('eventViewerLink_' + i), 'onmouseleave', bind('hideDetail', this, i));
			}
		},
		showDetail: function(id){
			setStyle($('eventViewerLink_' + id), {'background-color': '#f49f02', 'background-image': 'url(' + this.imgPath + 'plus_white.gif)'});
			appear($('eventViewerText_' + id), {'duration': 1});
		},
		hideDetail: function(id){
			fade($('eventViewerText_' + id), {'duration': 0.2, 'afterFinish': setStyle($('eventViewerLink_' + id), {'background-color': '#707070', 'background-image': 'url(' + this.imgPath + 'plus_orange.gif)'})});
		}
	}
// <<


// >> 2be Game
	function flashloader(filename,width,height) {
		document.open();
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+width+'" HEIGHT="'+height+'" id="Flash" ALIGN=""><PARAM NAME=movie VALUE="'+filename+'"> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="'+filename+'" quality=high wmode=transparent bgcolor=#FFFFFF  WIDTH="'+width+'" HEIGHT="'+height+'" NAME="Flash" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>');
		document.close();
	}

	function openGamePopup(){
		var urlList = {
			'de': '/game_new/drachenspiel_v4_de.html',
			'en': '/game_new/drachenspiel_v4_en.html',
			'pt': '/game_new/drachenspiel_v4_es.html'
		}
		var html = document.getElementsByTagName('html')[0];
		var langAttr = html.getAttribute('lang');
		var pup = new StandardPopup({'href': urlList[langAttr], 'height': 420, 'width':570 , 'scrollbars': 'no'});
		pup.open();
		return false;
	}
// <<


// >> 3Edge
	function openGewinnspielPopup(){
		var pup = new StandardPopup({'href': '/3EDGE_Popup/gewinnspiel.html', 'height': 410, 'width': 690, 'scrollbars': 'no'});
		pup.open();
		return false;
	}
// <<
