/**
 * Extending SWFObject Write function
 *
 * J Pontet 12-2007
 *
 * ** Formerly replaced content is wrapped in a DIV and outputted to aid hide/show for print
 */
deconcept.SWFObject.prototype.write = function(elementId) {
	if(this.getAttribute('useExpressInstall')) {
		// check to see if we need to do an express install
		var expressInstallReqVer = new deconcept.PlayerVersion([6,0,65]);
		if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) {
			this.setAttribute('doExpressInstall', true);
			this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));
			document.title = document.title.slice(0, 47) + " - Flash Player Installation";
			this.addVariable("MMdoctitle", document.title);
		}
	}
	if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute('version'))){
		var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
		// start: customisation
		var alt = '<div class="swfObject-alternate">' + n.innerHTML + '</div>';
		n.innerHTML = this.getSWFHTML() + alt;
		// end: customisation
		return true;
	}else{
		if(this.getAttribute('redirectUrl') != "") {
			document.location.replace(this.getAttribute('redirectUrl'));
		}
	}
	return false;
}