// create swf object
var so = new SWFObject("bloons_3.swf", "flashcontent", "100%", "100%", "9", "#E9E9EF");

// get string representing the variables part of the url
var strURL = unescape(window.location);
var strVars = strURL.substr(strURL.indexOf("?") + 1);

// change title if necessary
if (strURL.indexOf("bloons.co.uk") == -1) {
	document.title = "firmgently.co.uk";
}


// if there are some variables
if (strVars.length > 0) {
	var var_ar = strVars.split("&");
	
	for (var i = 0; i < var_ar.length; i++) {
		var nameAndValue_ar = var_ar[i].split("=");
		// pass this pair through to the swf object
		so.addVariable("dl_" + nameAndValue_ar[0], nameAndValue_ar[1]);
	}	
}

// add parameters to swf object and write it out to screen
so.addParam("allowScriptAccess", "always");
so.addParam("scaleMode", "noscale");
so.write("flashcontent");