function $(x)
{
	return document.getElementById(x);
}

var home_bt = new btrollov(0,"homebt");
var dest_bt = new btrollov(89,"destbt");
var gall_bt = new btrollov(219,"gallbt");
var even_bt = new btrollov(307,"evenbt");
var cont_bt = new btrollov(388,"contbt");

function btrollov(left,id)
{
this.time = Math.round(500 / 50);
this.time2=30;
this.bb='';
this.cc='';
this.left=-left;
this.top='0';
this.id=id;

this.x=function(x)
{
	return document.getElementById(x);
}

this.btin=function()
{
	clearTimeout(this.cc);
	var thisobj = this;
		if(this.top>-228)
		{
		this.top = (this.top - 57);
		this.bb=setTimeout(function(){thisobj.btinchg(thisobj.id);thisobj.btin();},80);
		}
}

this.btinchg=function (c)
{
	
	document.getElementById(c).style.backgroundPosition = this.left+"px "+this.top+"px";
	clearTimeout(this.bb);
	
}

this.btout=function ()
{
	clearTimeout(this.bb);
	var thisobj = this;
		if(this.top<0)
		{
			
		this.top = (this.top + 57);
		this.cc=setTimeout(function(){thisobj.btoutchg(thisobj.id);thisobj.btout();},80);
		}
}
this.btoutchg=function (c)
{
	document.getElementById(c).style.backgroundPosition = this.left+"px "+this.top+"px";
	clearTimeout(this.cc);
}
}

function shd_sbmn(x,c)
{
	var g = $(x);
	var b='';
	var t=crt_dest();
	if(c=='show')
	{
		g.style.display="inline-block";
	}else if(c=='hide'){
		g.style.display="none";
	}
	
}
//diving, adventure honeymoon
function crt_dest()
{
	var dest=Array('Diving','Adventure','Honeymoon');
	var frf=Array('?title=destinations','javascript:','javascript:');
	var g = '';
	g+='<div id="sub_button" onMouseOver="shd_sbmn(\'dest\',\'show\');" onMouseOut="shd_sbmn(\'dest\',\'hide\');">';
	for(i=0;i<dest.length;i++)
	{
		g+='<a href="'+frf[i]+'" class="none">'+dest[i]+'</a>';
		var t=Math.abs(i+1);
		if(t!==dest.length)
		{
			g+=' <span class="none">|</span> ';
		}
	}
	g+='</div>';
	return g;
}
