var flashW = 900;
var flashH = 600;
var flashV = 8;
function writeFlash() {
	if (deconcept.SWFObjectUtil.getPlayerVersion().major<flashV) {
		divWrite('flashDiv', '<h2>YOU NEED TO UPGRADE YOUR FLASH PLAYER</h2><p>You need to have the latest version of the Adobe Flash Player installed in order to view this site. <a href="http://www.adobe.com/go/getflash">DOWNLOAD IT NOW</a>.</p>');
	}
	var so = new SWFObject('mm.swf', 'mm', flashW, flashH, flashV, '#d1c3a9');
	so.addParam('quality', 'best');
	so.addParam('scale', 'noscale');
	so.addParam('menu', 'false');
	so.addParam('wmode', 'transparent');
	so.write('flashDiv');
	divDim();
}
function divDim() {
	var div = getElement('flashDiv');
	if (div.offsetLeft < 0) {
		div.style.left = (flashW/2) + 'px';
	} else {
		div.style.left = '50%';
	}
}
function divWrite(div, html) {
	var div = getElement(div);
	if (document.getElementById) {
		div.innerHTML = '';
		div.innerHTML = html;
	} else if (document.all) {
		div.innerHTML = html;
	} else if (document.layers) {
		div.document.open();
		div.document.write(html);
		div.document.close();
	}
}
function getElement(id) {
	var elem;
	if (document.getElementById) {
		elem = document.getElementById(id);
	} else if (document.all) {
		elem = document.all[id];
	} else if (document.layers) {
		elem = document.layers[id];
	}
	return elem;
}
