



embedwrite();

var pulse;

function embedwrite()
{
	var embedtext, width;
	
	
	width = "360px";
	inputheight = "";
	var mode = document.compatMode;
	
	if (mode)
	{
		if (mode == 'BackCompat')
		{
			width = "386px";
			inputheight = "height:23px;"
		}
	}
	
embedtext = '<div style="overflow:hidden;padding:5px;position:relative;background-color:#CB044B;width:'+width+';">';
embedtext += '<img style="margin:0;margin-right:13px;float:left;" src="http://www.getactivelondon.com/images/logo-redwidget.gif" alt="Get Active London" />';
embedtext += '<div style="margin-top:2px;overflow:hidden;width:222px;float:left;">';
embedtext += '<form method="get" action="http://www.getactivelondon.com/activity_finder.asp">';
embedtext += '<div style="float:left; position:relative;" id="galwidgetform">';
embedtext += '<input type="hidden" name="section" value="000100010001"/>';
embedtext += '<label for="activity" id="activityLabel" style="position: absolute;font-family:arial,sans-serif;font-size:11px;color:#9b003a;padding:6px 0 0 2px;margin:0;">Activity eg swimming</label>';
embedtext += '<input type="text" name="activity" id="activity" style="width:122px;font-family:arial,sans-serif;font-size:11px;color:#9b003a;padding:4px 2px 4px 2px;margin:0 0 5px 0;'+inputheight+'border:solid 1px #9b003a;" value="" onfocus="document.getElementById(\'activityLabel\').innerHTML=\'\';" onblur="if((this.value==\'\'))document.getElementById(\'activityLabel\').innerHTML=\'Activity eg swimming\';"/>';
embedtext += '<br/>';
embedtext += '<label for="location" id="locationLabel" style="position: absolute;font-family:arial,sans-serif;font-size:11px;color:#9b003a;padding:6px 0 0 2px;margin:0;">Where e.g. postcode</label>';
embedtext += '<input type="text" name="location" id="location" style="width:122px;font-family:arial,sans-serif;font-size:11px;color:#9b003a;padding:4px 2px 4px 2px;margin:0 0 5px 0;'+inputheight+'border:solid 1px #9b003a;" value="" onfocus="document.getElementById(\'locationLabel\').innerHTML=\'\';" onblur="if((this.value==\'\'))document.getElementById(\'locationLabel\').innerHTML=\'Where e.g. postcode\';"/>';
embedtext += '<br/>';
embedtext += '<label for="keyword" id="keywordLabel" style="position: absolute;font-family:arial,sans-serif;font-size:11px;color:#9b003a;padding:6px 0 0 2px;margin:0;">Keyword e.g. beginner</label>';
embedtext += '<input type="text" name="keyword" id="keyword" style="width:122px;font-family:arial,sans-serif;font-size:11px;color:#9b003a;padding:4px 2px 4px 2px;margin:0;'+inputheight+'border:solid 1px #9b003a;" value="" onfocus="document.getElementById(\'keywordLabel\').innerHTML=\'\';" onblur="if((this.value==\'\'))document.getElementById(\'keywordLabel\').innerHTML=\'Keyword e.g. beginner\';"/>';
embedtext += '</div>';
embedtext += '<div style="float:left;margin: 1px 0 0 12px;" id="galwidgetbutton">';
embedtext += '<input type="image" style="margin:0;padding:0;border:none;" alt="Search" src="http://www.getactivelondon.com/images/search-redwidget.gif" onclick="galSubmitForm();return false;" />';
embedtext += '</div>';
embedtext += '</form>';
embedtext += '</div>';
embedtext += '</div>';
	
	document.write(embedtext);
}

function galSubmitForm(form)
{
	window.location = 'http://www.getactivelondon.com/activity_finder.asp?section=000100010001&keyword=' + document.getElementById('keyword').value + '&activity=' + document.getElementById('activity').value + '&location=' + document.getElementById('location').value
}

function isblank(s){
	for(var i = 0; i < s.length; i++) {
		var c = s.charAt(i);
		if ((c != ' ') && ( c != '\n') && (c != '\t')) return false;
	}
	return true;
}
