imgout=new Image(9,9);
imgin=new Image(9,9);

var isExpanded;


/////////////////BEGIN USER EDITABLE///////////////////////////////
imgout.src="content_images/u.gif";
imgin.src="content_images/d.gif";
///////////////END USER EDITABLE///////////////////////////////////

//this switches expand collapse icons
function filter(imagename,objectsrc){
	if (document.images){
		document.images[imagename].src=eval(objectsrc+".src");
	}
}

//show OR hide funtion depends on if element is shown or hidden
function shoh(id) { 
	
	if (document.getElementById) { // DOM3 = IE5, NS6
		if (document.getElementById(id).style.display == "none"){
			document.getElementById(id).style.display = 'block';
			filter(("img"+id),'imgin');			
		} else {
			filter(("img"+id),'imgout');
			document.getElementById(id).style.display = 'none';			
		}	
	} else { 
		if (document.layers) {	
			if (document.id.display == "none"){
				document.id.display = 'block';
				filter(("img"+id),'imgin');
			} else {
				filter(("img"+id),'imgout');	
				document.id.display = 'none';
			}
		} else {
			if (document.all.id.style.visibility == "none"){
				document.all.id.style.display = 'block';
			} else {
				filter(("img"+id),'imgout');
				document.all.id.style.display = 'none';
			}
		}
	}
}


function toggle()
{
if (isExpanded) closeall();
else openall();
}



function openall()
{
divColl = document.all.tags("DIV");
	for (i=0; i<divColl.length; i++) {
	if (divColl(i).className == "content") {
 		divColl(i).style.display = "block";
		}
	}
icons = document.all.tags("IMG");
	for (i=0; i<icons.length; i++) {
	if (icons(i).className == "arrow") {
		dd = icons(i).name;
		filter(dd,'imgin');
		}
	}

	isExpanded = true;
}


function closeall()
{
divColl = document.all.tags("DIV");
	for (i=0; i<divColl.length; i++) {
	if (divColl(i).className == "content") {
 		divColl(i).style.display = "none";
		}
	}
icons = document.all.tags("IMG");
	for (i=0; i<icons.length; i++) {
	if (icons(i).className == "arrow") {
		dd = icons(i).name;
		filter(dd,'imgout');
		}
	}

	isExpanded = false;

}

function immpopwin()
{
window.open('','immpopwin','left=100,top=100,width=600,height=600')
}
function moviepopwin()
{
window.open('','moviepopwin','left=100,top=100,width=821,height=843')
}
function toppopwin()
{
window.open('','toppopwin','left=100,top=100,width=650,height=800,scrollbars=yes')
}
function flowpopwin()
{
window.open('','flowpopwin','left=150,top=150,width=1025,height=840')
}




