var iheight = 324;
var iwidth = 276;
var multipleMaps;
try {
	if (typeof(moColourScheme) == "undefined" || typeof(moMountainArea) == "undefined" || typeof(moMapsRequired) == "undefined" || typeof(moTemperatureUnits) == "undefined") {
		throw("Parameters missing in loader");
	}
	if (moColourScheme !== "default" && moColourScheme !== "green" && moColourScheme !== "blue" && moColourScheme !== "yellow") {
		throw("Invalid colour scheme in loader");
	}
	if (typeof(moMountainArea) != "string") {
		throw("Invalid mountain area in loader");
	}
	if (typeof(moMapsRequired) != "string") {
		throw("Invalid map list in loader");
	}
	if (moTemperatureUnits !== "C" && moTemperatureUnits !== "F") {
		throw("Invalid temperature units in loader");
	}

	var iframeURL = "http://" + moDomain + "/public/pws/components/mountain/component.html?cp=" + escape(top.document.location.href) + "&moColourScheme=" + moColourScheme + "&moMountainArea=" + moMountainArea + "&moMapsRequired=" + moMapsRequired + "&moTemperatureUnits=" + moTemperatureUnits + "&h=" + iheight + "&w=" + iwidth;
}
catch(error) {
	var iheight = 300;
	var iwidth = 250;
	var iframeURL = "http://" + moDomain + "/public/pws/components/mountain/error.html?cp=" + escape(top.document.location.href) + "&h=" + iheight + "&w=" + iwidth;
}

var iframe = "<ins style=\"border:none; margin:0; padding:0; display:inline-table; height:" + iheight + "px; position:relative; visibility:visible; width:" + iwidth + "px;\">" +
	"<ins style=\"border:none; margin:0; padding:0; display:block; height:" + iheight + "px; position:relative; visibility:visible; width:" + iwidth + "px;\">" +
	"<iframe id=\"mowxpane\" scrolling=\"no\" height=\"" + iheight + "\" frameborder=\"0\" width=\"" + iwidth + "\" vspace=\"0\" style=\"left: 0pt; position: absolute; top: 0pt;\" src=\"" + iframeURL + "\" name=\"mowxpane\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" allowtransparency=\"true\">" + 
	"</iframe>" +
	"</ins>" +
	"</ins>";
if (typeof(moNoScript) == "undefined") {
	document.write(iframe); 
}
