// Support Javascript

function navTo(strUri)
{
	window.location = strUri;
}

function writeExomail(strId)
{
	writeEmail("com", strId, "exotribe");
}

function writeBeautifulMail(strId)
{
	writeEmail("com", strId, "beautifulscreens");
}

function writeEmail(strTld, strId, strDom)
{
	strAddr = (strId + "@" + strDom + "." + strTld);
	document.write("<a href='mailto:" + strAddr + "'>" + strAddr + "</a>");
}

function ImageEffects(strNormal, strHover)
{
	this._imgNormal = new Image();
	this._imgHover = new Image();
	this._imgNormal.src = strNormal;
	this._imgHover.src =  strHover;
	
	this.mouseOver = function(targetImage)
	{
		targetImage.src = this._imgHover.src;
	}

	this.mouseOut = function(targetImage)
	{
		targetImage.src = this._imgNormal.src;
	}
}

function BackgroundEffects(strNormal, strHover)
{
	this._imgNormal = new Image();
	this._imgHover = new Image();
	this._imgNormal.src = strNormal;
	this._imgHover.src =  strHover;

	this.mouseOver = function(targetElement)
	{
		targetElement.style.backgroundImage = 'url(' + this._imgHover.src + ')';
	}

	this.mouseOut = function(targetElement)
	{
		targetElement.style.backgroundImage = 'url(' + this._imgNormal.src + ')';
	}
}
