function writeObjectTag( swf, id, width, height, bgcolour, session ) {

	var partner = "vfvaldez";

	// For dev only
	var server = "http://vfvaldez.com";
	var path = "/vfvaldez/" + partner + "/modules/";

	// Design Setup
	var setup = new Array();
	setup["buttonColour"] = "0xffffff";
	setup["buttonLabelColour"] = "0x000000";
	setup["headingColour"] = "0x000000";
	setup["smallbuttonColour"] = "0x777777";
	setup["smallbuttonLabelColour"] = "0x000000";
	setup["panelColour"] = "0xDFDFE3";
	setup["panelTextColour"] = "0x000000";
	setup["subpanelColour"] = "0x666666";
	setup["bkgColour"] = "0xffffff";
	setup["htmlNav"] = "true";
	setup["bottomNav"] = "true";
	setup["brand"] = "Victor Fernando Valdez";
	setup["demoColour"] = "0x5793AF";
	setup["domainname"] = "vfvaldez.com";
	setup["currency"] = "USD";
	setup["homeURL"] = "/index.htm";
	setup["accountURL"] = "/account.htm";
	var page = window.location+'';
	setup["thisPage"] = page.substring(0,page.indexOf('?'));
	//alert(setup["thisPage"]);

	var params = '';
	for( var i in setup ) {
		params += i + "=" + setup[i] + "&";
	}
	params += session;

	var url = server + path + swf;

	document.write( '<OBJECT CLASSID="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" CODEBASE="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0" ID="' + id + '" WIDTH="' + width + '" HEIGHT="' + height + '">' );
	document.write( '<PARAM NAME="MOVIE" VALUE="' + url + '">' );
	document.write( '<PARAM NAME="QUALITY" VALUE="best">' );
	//document.write( '<param name="WMODE" value="TRANSPARENT">' );
	document.write( '<PARAM NAME="MENU" VALUE="false">' );
	document.write( '<PARAM NAME="SEAMLESSTABBING" VALUE="false">' );
	document.write( '<PARAM NAME="FLASHVARS" VALUE="' + params + '">' );
	document.write( '<PARAM NAME="BGCOLOR" VALUE="' + bgcolour + '">' );
	document.write( '<EMBED SRC="' + url + '" ' );
	document.write( 'NAME="' + id + '" ' );
	document.write( 'QUALITY="high" ' );
	document.write( 'WIDTH="'+width+'" ' );
	document.write( 'HEIGHT="'+height+'" ' );
	document.write( 'MENU="false" ' );
	document.write( 'FLASHVARS="' + params + '" ' );
	document.write( 'BGCOLOR="' + bgcolour + '" ' );
	document.write( 'TYPE="application/x-shockwave-flash" ' );
	document.write( 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">' );
	document.write( '</EMBED>' );
	document.write( '</OBJECT>' );

}
