////////////////////////////////////////////////////////////////////////////
//
// script for RegisterMe.RU
//

// --

var _d	= null;

var oFish	= null;
var oFishTip	= null;

// --

function Init()
{
	DoCompatibility();

	// --

	_d	=	document;

	// --

	oFish		= __e("decor_block__fish");
	oFishTip	= __e("fish_tip");

	if(typeof(oFish) == "object")
	{
		oFish.onmouseover	=	OnFishMouseOver;
		oFish.onmouseout	=	OnFishMouseOut;
	}
}


// --

function getElementById_IE(strID)
{
	return document.all[strID];
}

function DoCompatibility()
{
	if(typeof(document.getElementById) == "undefined")
	{
		if(typeof(document.all) != "undefined")
			document.getElementById = getElementById_IE;
	}
}

function __e(strID)
{
	return _d.getElementById(strID);
}


// --

function WriteFishTip()
{

	document.write(
			"<div id='fish_tip'><table class='layout'>"				+
			"	<tr>"								+
			"		<td width='7'></td>"					+
			"		<td><img src='images/ft-ptr.gif' alt='' id='ft_ptr' /></td>"	+
			"		<td width='7'></td>"					+
			"	</tr>"								+
			"	<tr>"								+
			"		<td><img src='images/ftc-lt.gif' alt='' /></td>"	+
			"		<td id='ft_top_side'></td>"				+
			"		<td><img src='images/ftc-rt.gif' alt='' /></td>"	+
			"	</tr>"								+
			"	<tr>"								+
			"		<td id='ft_left_side'></td>"				+
			"		<td id='ft_content'>Привет !<br /><br />Я - чувак-рыба :D&nbsp;&nbsp;&nbsp;Помогаю регать домены.<br /><br />Хочешь домен ? .RU и .SU - отдам дешево, в рамках акции - практически даром :)<br />Кстати, акции тут проводятся часто, а <a href='#price'>цены</a> и так низкие.<br />К тому же, всегда доступны <a href='special-offer.html'>специальные предложения</a>&nbsp;!<br /><br />Хочешь домен ? :)</td>"	+
			"		<td id='ft_right_side'></td>"				+
			"	</tr>"								+
			"	<tr>"								+
			"		<td><img src='images/ftc-lb.gif' alt='' /></td>"	+
			"		<td class='ft_bottom_side'></td>"			+
			"		<td><img src='images/ftc-rb.gif' alt='' /></td>"	+
			"	</tr>"								+
			"</table></div>"
		);
}

// --

function OnFishMouseOver()
{
	if(typeof(oFishTip) == "object")
	{
		oFishTip.style.visibility = "visible";
	}
}

function OnFishMouseOut()
{
	if(typeof(oFishTip) == "object")
	{
		oFishTip.style.visibility = "hidden";
	}
}


