function isDefined(property)
{
return (typeof property != 'undefined');
}

// Targets
function externalLinks()
{

if (!document.getElementsByTagName)
return;

var anchors = document.getElementsByTagName("a");

for (var i=0;i<anchors.length;i++)
{ 
var anchor = anchors[i];

if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") 
{
anchor.target = "_blank";
}

}

}

function BlurLinks()
{
lnks	= document.getElementsByTagName("a");

for(i=0;i<lnks.length;i++)
{
	
if ((lnks[i].getAttribute("rel") == null) || (lnks[i].getAttribute("rel") == ""))
{
lnks[i].onfocus		= new Function("this.blur()");
}

}

// Input Buttons
inpts	= document.getElementsByName("input");

for(i=0;i<inpts.length;i++)
{
inpts[i].onfocus= new Function("this.blur()");
}

}

function RunFunctions()
{
externalLinks();
BlurLinks();

if (typeof sIFR == "function")
{

if ((document.getElementById("Voucher")) || (document.getElementById("Privacy1")))
{
sIFR.replaceElement(named({sSelector:"h1", sFlashSrc:"/holiday08/fonts/helvetica_neue_light.swf", sColor:"#666666", sBgColor:"#FFFFFF"}));
}

else
{
sIFR.replaceElement(named({sSelector:"h1", sFlashSrc:"/holiday08/fonts/helvetica_neue_light.swf", sColor:"#ffffff", sBgColor:"#FFFFFF", sWmode:"transparent"}));
}

}

}

// call rolloverInit when document finishes loading
if (isDefined(window.addEventListener))
{
window.addEventListener('load', RunFunctions, false);
}

else if (isDefined(window.attachEvent))
{
window.attachEvent('onload', RunFunctions);
}