if(typeof sIFR == "function")
{
    sIFR.replaceElement("h3.h3", named({sFlashSrc: "/images/font.swf", sColor: "#EE1C23", sCase: "bold", sWmode: "transparent"}));
    sIFR.replaceElement("h3.nieuws", named({sFlashSrc: "/images/font.swf", sColor: "#00AEEF", sCase: "bold", sWmode: "transparent"}));
    sIFR.replaceElement("h3.h3l", named({sFlashSrc: "/images/font.swf", sColor: "#FFFFFF", sCase: "bold", sWmode: "transparent"}));
   // sIFR.replaceElement("#head", named({sFlashSrc: "/images/font.swf", sColor: "#ED008C", sCase: "bold", sWmode: "transparent"}));
};

var grad = new Image();
grad.src = '/images/gradhover.gif';

if (document.getElementById('ablokken'))
{
	divs = document.getElementById('ablokken').getElementsByTagName('div');
	for (i = 0; i < divs.length; i++)
	{
		if (divs[i].className == 'ablok')
		{
			divs[i].onmouseover = function()
			{
					this.old = this.style.backgroundImage;
					this.style.backgroundImage = 'url(' + grad.src + ')';
					window.status = '';
					return true;
			}
			
			divs[i].onmouseout = function()
			{
					this.style.backgroundImage = this.old;
			}
			
			divs[i].onclick = function()
			{
				if (this.getElementsByTagName('a')[0].rel == 'nofollow')
				{
					window.open(this.getElementsByTagName('a')[0].href);
				}
				else
				{
					document.location.href = this.getElementsByTagName('a')[0].href;
				}
				return false;
			}
			
			divs[i].getElementsByTagName('img').onerror = function()
			{
				this.style.display = 'none';
			}
			
		}
	}
}


if (document.getElementById('accos'))
{
	divs = document.getElementById('accos').getElementsByTagName('div');
	for (i = 0; i < divs.length; i++)
	{
		if (divs[i].className == 'acco')
		{
			divs[i].onmouseover = function()
			{
					this.old = this.style.backgroundImage;
					this.style.backgroundImage = 'url(' + grad.src + ')';
			}
			
			divs[i].onmouseout = function()
			{
					this.style.backgroundImage = this.old;
			}
			
			divs[i].onclick = function()
			{	
				if (this.getElementsByTagName('a')[0].target.indexOf('blank') != -1)
				{
					window.open(this.getElementsByTagName('a')[0].href);
				}
				else
				{
					document.location.href = this.getElementsByTagName('a')[0].href;
				}
				return false;
			}
		}
	}
}

if (document.getElementById('items'))
{
	divs = document.getElementById('items').getElementsByTagName('div');
	for (i = 0; i < divs.length; i++)
	{
		if (divs[i].className == 'item')
		{
			divs[i].onmouseover = function()
			{
					this.old = this.style.backgroundImage;
					this.style.backgroundImage = 'url(' + grad.src + ')';
			}
			
			divs[i].onmouseout = function()
			{
					this.style.backgroundImage = this.old;
			}
			
			divs[i].onclick = function()
			{	
				if (this.getElementsByTagName('a')[0].target.indexOf('blank') != -1)
				{
					window.open(this.getElementsByTagName('a')[0].href);
				}
				else
				{
					document.location.href = this.getElementsByTagName('a')[0].href;
				}
				return false;
			}
		}
	}
}


if (document.getElementById('kort'))
{
	if (!document.location.hash)
	{
		document.getElementById('lang').style.display = 'none';
	}
	else
	{
			document.getElementById('kort').style.display = 'none';
			document.getElementById('meerlanden').style.display = 'none';
	}


	document.getElementById('meerlanden').onclick = function()
	{
		if (document.getElementById('lang').style.display == 'none')
		{
			document.getElementById('kort').style.display = 'none';
			document.getElementById('lang').style.display = 'block';
			document.getElementById('meerlanden').style.display = 'none';
		}
		
	}
}			

if (document.getElementById('accopic') && document.getElementById('fotos'))
{
	var fotos = document.getElementById('fotos').getElementsByTagName('img');
	for (i = 0; i < fotos.length; i++)
	{
		fotos[i].onclick = function()
		{
			document.getElementById('accopic').src = this.src;
			return false;
		}
	}
}
if (document.getElementById('accopic'))
{
	document.getElementById('accopic').onerror = function()
	{
		this.style.display = 'none';
	}
}

if (document.getElementById('acco'))
{
	document.getElementById('acco').onclick = function()
	{
		if (this.getElementsByTagName('a').length != 0)
		{
				if (this.getElementsByTagName('a')[0].rel == 'nofollow')
				{
					window.open(this.getElementsByTagName('a')[0].href);
				}
				else
				{
					document.location.href = this.getElementsByTagName('a')[0].href;
				}
		}
		else
		{
			if (document.getElementById('boeken').getElementsByTagName('a').length != 0)
			{
					if (document.getElementById('boeken').getElementsByTagName('a')[0].rel == 'nofollow')
					{
						window.open(document.getElementById('boeken').getElementsByTagName('a')[0].href);
					}
					else
					{
						document.location.href = document.getElementById('boeken').getElementsByTagName('a')[0].href;
					}
			}
		}
		return false;
	}	
}

if (document.getElementById('nieuwsterug'))
{
	if(document.referrer.indexOf('da-reizen') == -1 || document.referrer == document.location.href)
	{
		document.getElementById('nieuwsterug').style.display = 'none';
	}
}