function amenu()
	{
	if(document.getElementById("calendar"))
		{
		var a=document.getElementById("calendar").getElementsByTagName("TD")
		for(var b=0;b<a.length;b++)
			{
			if (a[b].className=="event")
				{
				a[b].onmouseover=function(){cursor_sniff(this)}
				a[b].onmouseout=function(){cursor_sniff(this)}
				a[b].onclick=function(){html=this.id.split('-',2);location.href='/events/'+ html[0]+'/'+ html[1]+'.htm'}
				}
			}
		}		
		//IE6 re-style
		app = navigator.appVersion.split(';',3)
		if (app[1]==" MSIE 6.0")
			{document.getElementById("middle").style.marginRight="2px";document.getElementById("left_column").style.marginLeft="2px"}
		//Show Map
		if (document.getElementById("map"))load()
		
	ul = document.getElementById("directory")
	if (ul)
		{	
		tag = ul.getElementsByTagName("LI")
		for (i=0;i<tag.length;i++)
			{
			var node = tag[i].childNodes
			for (j=0;j<node.length;j++)
				{
				if(node[j].className=="rec")
					{
					if (document.all)sp='<BR>';else sp='<br>';
					node[j].num 	= i
					gmap_geocode_postcode(node[j].title,'<div id=bubble>'+node[j].parentNode.innerHTML.split(sp+'Map:')[0]+'</div>',i)
					node[j].onclick	= function(){map.setCenter(co[this.num]);pid[this.num].setImage('http://labs.google.com/ridefinder/images/mm_20_green.png');setTimeout(eval('"pid['+this.num+'].setImage(\'http://labs.google.com/ridefinder/images/mm_20_red.png\')"'),3000)}
					}
				}
			}
 		}
	}
	
function flash_movie()
	{
	document.write ('<object type="application/x-shockwave-flash" data="/images/how_flash.swf"" width="350" height="200">')
	document.write ('<param name="movie" value="/images/how_flash.swf"/>')
	document.write ('</object>')
	}
	
function cursor_sniff(obj)
	{if (document.all){obj.style.cursor="hand"}else{obj.style.cursor="pointer"}}

function login()
	{mt=false;fm=document.members;checker(fm.userid,'User Name');checker(fm.password,'Password');if(mt==false)fm.submit()}

function checker(obj,msg)
	{if(obj.value=='' && mt==false){alert('The ' + msg + ' field must not be blank');mt=true;obj.focus()}}
	
function external_link(url)
	{window.open(url)}
	
window.onload=amenu
if (document.getElementById("map"))window.unload=GUnload()