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++)
{
linkhref			= lnks[i].getAttribute("href");

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();
TabContents();

if (document.getElementById("Applications"))
{
makeCollapsible(document.getElementById("Applications"), "A");
}

}

// call rolloverInit when document finishes loading
if (isDefined(window.addEventListener))
{
window.addEventListener('load', RunFunctions, false);
}

else if (isDefined(window.attachEvent))
{
window.attachEvent('onload', RunFunctions);
}

function TabContents()
{

if (document.getElementById("HySandTabs"))
{
var myHySandTabs	= new ddtabcontent("HySandTabs");
myHySandTabs.setpersist(false);
myHySandTabs.setselectedClassTarget("link");
myHySandTabs.init();
}

if (document.getElementById("SealSandTabs"))
{
var mySealSandTabs	= new ddtabcontent("SealSandTabs");
mySealSandTabs.setpersist(false);
mySealSandTabs.setselectedClassTarget("link");
mySealSandTabs.init();
}

}