/*--------------------------------------------------------------------------
 *
 *	Moo-based JavaScript functions (Mountain View Habitat)
 *
 *--------------------------------------------------------------------------*/

function make_mo_tgmd() {
	var tips = new Tips ($$('.mo_tgmd'),
	{
		className: 'mo_tgmd',
		offsets: {'x': -50, 'y': 10}
	});
}

function make_mo_firefox() {
	var tips = new Tips ($$('.mo_firefox'),
	{
		className: 'mo_firefox',
		offsets: {'x': -100, 'y': 10}
	});
}

function make_mo_1and1() {
	var tips = new Tips ($$('.mo_1and1'),
	{
		className: 'mo_1and1',
		offsets: {'x': -45, 'y': 10}
	});
}

function make_mo_apple() {
	var tips = new Tips ($$('.mo_apple'),
	{
		className: 'mo_apple',
		offsets: {'x': -50, 'y': 10}
	});
}

function make_mo_homesteader() {
	var tips = new Tips ($$('.mo_homesteader'),
	{
		className: 'mo_homesteader',
		offsets: {'x': -30, 'y': 10}
	});
}

function make_mo_hbc() {
	var tips = new Tips ($$('.mo_hbc'),
	{
		className: 'mo_hbc',
		offsets: {'x': -30, 'y': 10}
	});
}

function make_mo_school() {
	var tips = new Tips ($$('.mo_school'),
	{
		className: 'mo_school',
		offsets: {'x': -30, 'y': 10}
	});
}

/* ----------------------------- */

/*
function tip_maker (class, x_off, y_off)
{
	var name = '.'
	var tips = new Tips ($$(name.concat(class))),
	//var tips = new Tips ($$('.class'),
	{
		className: class,
		offsets: {'x': x_off, 'y': y_off}
	});
}
*/

/* ----------------------------- */

function init() {

	this.make_mo_tgmd();
	this.make_mo_firefox();
	this.make_mo_1and1();
	this.make_mo_apple();
	this.make_mo_homesteader();
	this.make_mo_hbc();
	this.make_mo_school();
	
	//this.tip_maker ('make_mo_tgmd', -50, 10);
}

/* ----------------------------- */

window.addEvent ("domready", function() {
	init();
});