window.onload = function()
{
  var stretchers = $$('.stretch');
  var toggles = $$('.show');
  
  var myAccordion = new Fx.Accordion( toggles, stretchers, {opacity: true, duration: 200, alwaysHide: true, start: "false"} );
  var anchor = window.location.href;
  var toggleme=0;

  var i=0;
  anchor = anchor.split("#");    
  if(anchor.length==2)
  {
    for(i in toggles)
    {          
      if(toggles[i].id==anchor[1])
      {
        toggleme=i;
      }
    }
  }
  if(document.getElementById('gmapA')||document.getElementById('gmapB')||document.getElementById('gmapC'))PaintGmap();
  
  var myTips = new Tips($$('.glostip'), {
	initialize:function(){
		this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
	},
	onShow: function(toolTip) {
		this.fx.start(1);
	},
	onHide: function(toolTip) {
		this.fx.start(0);
	}
});
}

window.unload = function()
{
    if(gmail)
    {
      GUnload();
    }
}

function md_popup(myURL,myName,features)
{
  window.open(myURL,myName,features);
}
