function insertSWF(f,w,h){var hasRightVersion = DetectFlashVer(8, 0, 0);  if(hasRightVersion) {  // if we've detected an acceptable version	AC_FL_RunContent(				"src", f,				"width", w,				"height", h,				"align", "middle",				"id", "chartswf",				"quality", "high",				"bgcolor", "#FFFFFF",				"name", "chartswf",				"allowScriptAccess","sameDomain",				"type", "application/x-shockwave-flash",				'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',				"pluginspage", "http://www.adobe.com/go/getflashplayer"	);  } else {  // flash is too old or we can't detect the plugin    var imgPath = getParam('folder',f) + 'thm1.jpg';   	var PDFpath = 'download.asp?file=' + getParam('file',f);	var docSize = getParam('mb', f) ;      	var alternateContent = '<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr><td height="210" colspan="3" valign="top" background="noflash/lhl_top.gif" ><div align="left">';	alternateContent += '<img src="noflash/shim.gif" width="150" height="10" hspace="0" vspace="0" border="0" /><br /><img src="noflash/leighton_logo.gif" width="204" height="60" hspace="0" vspace="0" align="top" /></div></td></tr>';  	alternateContent += '<tr><td height="100%"><img src="noflash/shim.gif" width="150" height="1" hspace="0" vspace="0" border="0" /></td>';	alternateContent += '<td height="100%" valign="top" style="font-family: Arial, Helvetica, sans-serif;font-size: 18px;text-align: left;"><p><a href="' + PDFpath + '" style="color: #beaaaa;text-decoration:none;font-size:14px"><img src="' + imgPath + '" alt="pdf doc" hspace="0" vspace="0" border="0" />';   alternateContent += ' View pdf (' + docSize + 'Mb) &gt;</a></p><p><img src="noflash/shim.gif" width="1" height="10" hspace="0" vspace="0" border="0" /></p>';   alternateContent += ' <strong><p style="color: #beaaaa;text-weight:bold">FLASH DOCUMENT VIEWER</p></strong><p>It appears that you do not have a compatible version of Adobe Flash Player installed.</p>';    alternateContent += '<p><a href="http://www.adobe.com/go/getflash/" target="blank" style="color: #beaaaa;text-decoration:none;">Click here</a> to download the latest version of Adobe Flash Player.</p>';   alternateContent += ' <p>You can use the link above to view a PDF version of the document.</p></td>';    alternateContent += '<td><img src="noflash/shim.gif" width="150" height="1" hspace="0" vspace="0" border="0" /></td></tr>';	alternateContent += '<tr><td height="30" colspan="3" bgcolor="beaaaa" align="right"><span style="font-family: Arial, Helvetica, sans-serif;font-size: 11px;text-align:right;margin-right: 20px;">© Leighton Holdings Limited</span></td></tr></table>';     	    document.write(alternateContent);  // insert non-flash content		  }}function getParam(nn,str){	var val = "";   	var paramArray = str.split("?")[1].split("&");   	for (var i=0; i< paramArray.length; i++){   		var nvPair = paramArray[i].split("=");   		if (nvPair[0] == nn){   			val = nvPair[1];   			break;   		}   	}	return val;}
