// JavaScript Document

// API Maplage generator v1.0

function get_api_maplage(codepostal)
{
	var urlAPI = "http://www.maplage.fr/apimaplage/windguru_shom_fr.swf";
  var gateWayUrl = "http://www.maplage.fr/api/amfphp";
  var width = 338;
  var height = 400;
  var flashVars = "gateWayUrl="+gateWayUrl+"&codepostal="+codepostal;
	
	document.write("<embed type=\"application/x-shockwave-flash\" src=\""+urlAPI+"\" style=\"\" id=\"api_maplage\" name=\"api_maplage\" bgcolor=\"#FFFFFF\" quality=\"high\" wmode=\"opaque\" flashvars=\""+flashVars+"\" height=\""+height+"\" width=\""+width+"\">");
}