﻿var timer = null;
var maxindex = 10;

function show(index) {
	window.clearTimeout(timer);
	for (var i = 0; i <= maxindex; i++) {
		if ((i != index) && (document.getElementById("dd_"+String(i)))) {
			document.getElementById("dd_"+String(i)).className = "dropdown hide";
		}
	}
	if (document.getElementById("dd_"+String(index))) {
		document.getElementById("dd_"+String(index)).className = "dropdown show";
	}
}

function hide() {
	timer = window.setTimeout("hidenow()", 400);
}

function hidenow() {
	for (var i = 0; i <= maxindex; i++) {
		if (document.getElementById("dd_"+String(i))) {
			document.getElementById("dd_"+String(i)).className = "dropdown hide";
		}
	}
}

function closeFlashLayer() {
    document.getElementById('flashlayer').className = 'hidden';
}
