function flash_object(src, id, width, height, bgcolour, cab_version) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+cab_version+'" width="'+width+'" height="'+height+'" id="'+id+'" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+src+'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="'+bgcolour+'" />');
	document.write('<param name="menu" value="false" />');
	document.write('<embed src="'+src+'" quality="high" menu="false" bgcolor="'+bgcolour+'" width="'+width+'" height="'+height+'" name="'+id+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

var headline_count = 1;
/**
 * Types are:
 *		- main (main/index page)
 *		- inner_large (inner pages left)
 *		- inner_small (inner pages right)
 */
function insert_content_headline(type, headline, subline) {
	var src = 'swf/content_headline.swf?headline='+escape(headline)+'&subline='+escape(subline);
	var width;
	var height;
	var klass;
	
	switch (type) {
		case 'main':
			src += '&size=medium';
			width = 265;
			height = 34;
			klass = 'flash_headline';
			break;
		
		case 'inner_large':
			src += '&size=large';
			width = 400;//???
			height = 36;
			klass = 'flash_headline_large';
			break;
		
		case 'inner_small':
			src += '&size=small';
			width = 120;//???
			height = 30;//???
			klass = 'flash_headline_small';
			break;
	}

	document.write('<div class="'+klass+'">');
	flash_object(src, 'flash_headline_'+headline_count++, width, height, '#ffffff', '8,0,0,0');
	document.write('</div>');
}

function insert_menu(type) {
	var src;
	var width;
	var height;
	
	switch (type) {
		case 'main':
			src = 'swf/main_menu.swf';
			width = 675;
			height = 200;
			break;
		
		case 'inner':
			src = 'swf/inner_menu.swf';
			width = 675;
			height = 71;
			break;
	}
	
	flash_object(src, 'flash_menu', width, height, '#ffffff', '8,0,0,0');
}


function insert_map(points) {
	var src;
	var width;
	var height;
	
	src = 'swf/radial_point_map.swf?padding=5&border_colour=8BCC5E&map_colour=ffffff&points='+points;
	width = 140;
	height = 150;

flash_object(src, 'flash_map', width, height, '#ffffff', '8,0,0,0');
}
