	function  loadswfwindow(swflink,xmllink, width, height, container_id) {
	
		glow.dom.get('body').append('<div id="gamePanel"><p class="lightbox">In order to see this content you need to have both <a class="lightboxlink" href="http://www.bbc.co.uk/webwise/askbruce/articles/browse/java_1.shtml" title="BBC Webwise article about enabling javascript">Javascript</a> enabled and <a href="http://www.bbc.co.uk/webwise/askbruce/articles/download/howdoidownloadflashplayer_1.shtml" title="BBC Webwise article about downloading">Flash</a> installed. Visit <a href="http://www.bbc.co.uk/webwise/">BBC&nbsp;Webwise</a> for full instructions</p></div>');
		
		// create flash movie
		var so = new SWFObject(""+swflink+"?xml_path="+xmllink, "mymovie", width, height, "9", "#000");
				
		so.write("gamePanel");
		
		//create overlay instance
		var myOverlay = new glow.widgets.Overlay('#gamePanel',{
			modal: true,
			anim: "fade"
		});

		//display overlay
		myOverlay.show();


		// add listener to enable close button
		glow.events.addListener(
			glow.dom,
			'closegames',
			function () {
				glow.dom.get('#gamePanel').remove();
				myOverlay.hide();
			}
		);		
		
		// add close button
		var content = '';
		content += '<div class="games_close_button"><a id="close" href="#" onclick="glow.events.fire(glow.dom, \'closegames\');return false;">Close</a></div>';
		content += '<div class="games_innerContentHolder" id="'+container_id+'">';
		content += glow.dom.get('#gamePanel').html();
		content += '</div>';
		glow.dom.get('#gamePanel').html(content);

	  }
