function WriteFlash(width, height, fileName, baseURL)
{
	document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
	document.write(' WIDTH="' + width + '" HEIGHT="' + height + '"'); 
	document.write(' CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">');
	document.write(' <PARAM NAME="MOVIE" VALUE="' + fileName + '">');
	document.write(' <PARAM NAME="BASE" VALUE="' + baseURL + '">');
	document.write(' <PARAM NAME="PLAY" VALUE="True">');
	document.write(' <PARAM NAME="LOOP" VALUE="True">');
	document.write(' <PARAM NAME="ID" VALUE="">');
	document.write(' <PARAM NAME="SCALE" VALUE="ShowAll">');
	document.write(' <PARAM NAME="BGCOLOR" VALUE="">');
	document.write(' <PARAM NAME="MENU" VALUE="True">');
	document.write(' <PARAM NAME="SALIGN" VALUE="">');
	document.write(' <PARAM NAME="QUALITY" VALUE="High"">');
	document.write(' <EMBED SRC="' + fileName + '" BASE="" ');
	document.write(' WIDTH="' + width + '" HEIGHT="' + height + '" PLAY="True" SALIGN="" MENU="True" NAME="" BGCOLOR="" SCALE="ShowAll" LOOP="True" QUALITY="High" ');
	document.write(' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" >' );
	document.write(' </EMBED>');
	document.write(' </OBJECT>');
	
}

function WriteShipTracker(width, height, settings_code, trackey)
{
	document.write('<applet codebase="http://www.purplefinder.com/" code="com.purplefinder.applet.ThinApplet" archive="ThinApplet.jar"  width="' + width + '" height="' + height + '" alt="Your browser is not Java enabled" >');
	document.write('<param name="identifier" value="popcruz">');
	document.write('<param name="password" value="d52bz5df">');
	document.write('<param name="settings_code" value="' + settings_code + '">');
	document.write('<param name="track_key" value="' + trackey + '">');
	document.write('</applet>');
}

function WriteShipTrackers(width, height, settings_code, trackeys)
{
	document.write('<applet codebase="http://www.purplefinder.com/" code="com.purplefinder.applet.ThinApplet" archive="ThinApplet.jar"  width="' + width + '" height="' + height + '" alt="Your browser is not Java enabled" >');
	document.write('<param name="identifier" value="popcruz">');
	document.write('<param name="password" value="d52bz5df">');
	document.write('<param name="settings_code" value="' + settings_code + '">');
	document.write('<param name="track_keys" value="' + trackeys + '">');
	document.write('</applet>');
}
