// JavaScript Document

var Mmgeo = {
	
	  init: function()
		{
			  var titleBlock = $('title');
				
				if (titleBlock)
				{
					  var blockLink = titleBlock.getElement('a');
				}
				
				if (blockLink)
				{
					  titleBlock.setStyle('cursor', 'pointer');
						titleBlock.addEvent('click', function(event)
						{
							 var event = new Event(event);
							 event.stop();
							 window.location = blockLink.getProperty('href');
						});

				}
		}

}

var FormContact = {
	
	init: function(){

		this.form = $('support-form');
		
		// anti
		//this.form.getElement('noscript').destroy();
		new Element('input', {
		  'type': 'hidden',
			'name': 'anti',
			'id': 'anti',
			'value': 'mmgeo'
		}).inject(this.form);

	}
	
};

window.addEvent('domready', function(){
  Mmgeo.init();
	if ($('support-form')) FormContact.init();
	
	if ($('inline-help-desc')) {
		InlineHelp.init();
	}
});
