// drdub javascript 

var	subuls = "";
var	subulsbig = "";

function loadprocedure()
{
	startlist();
	managelinks();
	preloadimages();
}


function managelinks()
{
	hrefarr=document.getElementsByTagName('a');
	for (i=0;i<hrefarr.length;i++)
	{
		hrefarr[i].onfocus = function() {this.blur() };
	}
}


function preloadimages()
{
	subuls = new Image();
	subuls.src = "layout/subuls_background.gif";
	subulsbig = new Image();
	subulsbig.src = "layout/subuls_background_big.gif";
}



function startlist() {
if (document.all&&document.getElementById) {
cssdropdownRoot = document.getElementById("cssdropdown");
for (x=0; x<cssdropdownRoot.childNodes.length; x++) {
node = cssdropdownRoot.childNodes[x];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}
}

function submitDubForm() {
	dubform = document.getElementById('duborderform');
	if(dubform) {
		window.alert("submit");
		return dubform.formValidation();
	}
	return false;
}

window.onload = loadprocedure;
