﻿
imgup=new Image(9,9);
imgdown=new Image(9,9);
var HideTimerId = 0;
var timerID
/////////////////BEGIN USER EDITABLE///////////////////////////////
	imgup.src="/images/dropbox_arrow.jpg";
	imgdown.src="/images/dropbox_arrow_down.jpg";
///////////////END USER EDITABLE///////////////////////////////////

//this switches expand collapse icons
function swap(arrow,arrowsrc){
	if (document.images){
		document.images[arrow].src=eval(arrowsrc+".src");
	}
}

function timer(d,timeout){
	HideTimerID = setTimeout ("HideContent()", timeout );
	timerID = HideTimerID;
}


function HideContent() {
d="colorForm"
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
swap(("img"+d),'imgup');
}

function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
filter(("img"+d),'imgdown');
clearTimeout(timerID);
}

function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if (document.getElementById) { // DOM3 = IE5, NS6
		if (document.getElementById(d).style.display == "none"){
			document.getElementById(d).style.display = 'block';
			swap(("img"+d),'imgdown');			
		} else {
			swap(("img"+d),'imgup');
			document.getElementById(d).style.display = 'none';			
		}	
	} else { 
		if (document.layers) {	
			if (document.d.display == "none"){
				document.d.display = 'block';
				filter(("img"+d),'imgup');
			} else {
				filter(("img"+d),'imgdown');	
				document.d.display = 'none';
			}
		} else {
			if (document.all.d.style.visibility == "none"){
				document.all.d.style.display = 'block';
			} else {
				filter(("img"+d),'imgdown');
				document.all.d.style.display = 'none';
			}
		}
	}
}

