// JavaScript Document
function chmaps() {
	var url = 'http://www.visitormap.org/map/m:geoimage/s:'+document.getElementById('mapsize').value;
	url += '/y:'+document.getElementById('mapstyle').value;
	url += '/p:'+document.getElementById('mapmarker').value;
	url += '/c:'+document.getElementById('markercolor').value;
	url += '.png';
	document.samplemap.src = url;
}
function sel() {
	document.getElementById('thecode').focus();document.getElementById('thecode').select();
}
function procform(mapid) {
	var foo = '<textarea id="thecode" rows="5" cols="25" style="font-size:8px">';
	foo += '<a href="http:/' + '/www.visitormap.org/" target="_top">';
	foo += '<img src="http:/' + '/www.visitormap.org/map';
	foo += '/m:' + mapid;
	foo += '/s:' + document.getElementById('mapsize').value;
	foo += '/c:' + document.getElementById('markercolor').value;
	foo += '/p:' + document.getElementById('mapmarker').value;
	foo += '/y:' + document.getElementById('mapstyle').value;
	foo += '.png';
	foo += '" alt="Free Visitor Maps at VisitorMap.org" border="0">';
	foo += '</a><br><a href="http://www.visitormap.org/">Get a FREE visitor map for your site!</a></textarea>';
	document.getElementById('getcode').innerHTML = foo;
	document.getElementById('thecode').style.display = 'none';
	document.getElementById('getbutton').style.display = 'none';
	vmgigya();
}
function vmgigya() {
	var pconf={
  	widgetTitle: 'VisitorMap.org', 
  	defaultContent: 'thecode', 
  	UIConfig: '<config><display showEmail="false" showBookmark="false" /><body font="Verdana"><background frame-color="#FFFFFF" corner-roundness="4" background-color="#FFFFFF" /><controls><snbuttons frame-color="#000033" background-color="#EAEAEA" over-frame-color="#000033" over-background-color="#FFFFFF" /></controls><texts color="#000000"><links color="#0000FF" /></texts></body></config>'
	};
	Wildfire.initPost('207351', 'divWildfirePost', 360, 150, pconf);
}

