<!--
/*
Combo-Box Viewer script- Created by and © Dynamicdrive.com
Visit http://www.dynamicdrive.com/ for this script and more
This notice MUST stay intact for legal use
*/

// Turn on specific Nav Item
function soopaSwapOn2(img) {
	document.images[img].src = document.images[img].h.src;
}
// Turn off specific Nav Item
function soopaSwapOff2(img) {
	document.images[img].src = document.images[img].n.src;
}

// Set Time(in ms) for subnav to dissappear after inactivity
var delay_length = 1000;

// If netscape, write css
if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.dropcontent{display:none;}\n')
document.write('</style>\n')
}

// Hide all subnav layers
function contractall(img2){
	if (document.getElementById){
		var inc=0
		while (document.getElementById("dropmsg"+inc)){
			document.getElementById("dropmsg"+inc).style.display="none"
			inc++
		}
	}
	if(img2) {
		soopaSwapOff2(img2);
	}
}

// Display Subnav
function expandone(target){
	contractall();
	if (document.getElementById){
		document.getElementById("dropmsg"+target).style.display="block";
	}
}

// Set Delay on Hide subnav
function collapseone(img1) {
	if(img1) {
		delayhide = setTimeout("contractall('" + img1 + "')",delay_length);
	} else {
		delayhide = setTimeout("contractall()",delay_length);
	}
}

// Prevent Div Hiding when Active
function clear_delayhide(img3){
	if(window.delayhide) {
		clearTimeout(delayhide)
	}
	if(img3) {
		soopaSwapOn2(img3);
	}
}
// -->
