// Copyright (C) 2006 Robert W. Clarke Consulting, all rights reserved.

function embedMapTron1022(ary_param){
   // this function works with MapTron 1022 only

   var base_full_path = ary_param['base_path']+'?diagnostics='+ary_param['diagnostics']+'&xmlfilepath=';
   base_full_path += escape(ary_param['xml_path'])+'&burl='+escape(top.location.href);
   
   document.write('<object id="maptron" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
   document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ');
   document.write('width="'+ary_param['width']+'" wmode="transparent" height="'+ary_param['height']+'" align="MIDDLE">');
 
   document.write('<param name="movie" value="'+base_full_path+'">');
   document.write('<param name=quality value="high">');
   document.write('<param name=BASE value="'+ary_param['base']+'">');
   document.write('<param name="BGCOLOR" value="'+ary_param['bg_color']+'">');
   document.write('<param name="wmode" value="transparent">');

   document.write('<embed swliveconnect="true" name="maptron" src="'+base_full_path+'" bgcolor="'+ary_param['bg_color']+'" quality=high ');

   document.write('pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" ');
   document.write('type="application/x-shockwave-flash" width="'+ary_param['width']+'" height="'+ary_param['height']+'" ');
   document.write('align="MIDDLE" base="'+ary_param['base']+'">');

   document.write('</embed></object>');
}
