function Expand(id){
	var content, cont, scen, sol;
	for (var s = 1; s < 6; s++){
	if (s!=id) {
	cont=document.getElementById("container"+s);
	cont.className="containerdefault";
	scen=document.getElementById("scenario"+s);
	scen.className="containerdefault";
	sol=document.getElementById("solution"+s);
	sol.className="containerdefault";
	sol.style.display="none";
		}
	}
	content=document.getElementById("content");
		
		if (id!=1)
		{content.className="contentPri";}
		else
		{content.className="contentAlt";
		}
		
	cont=document.getElementById("container"+id);
	cont.className="container";
	scen=document.getElementById("scenario"+id);
	scen.className="scenario";
	sol=document.getElementById("solution"+id);
	sol.className="solution";
	sol.style.display="";
}

function CollapseAll(){
	var content, cont, scen, sol;
for (var s = 1; s < 6; s++){
	
	cont=document.getElementById("container"+s);
	cont.className="containerdefault";
	
	scen=document.getElementById("scenario"+s);
	scen.className="containerdefault";
	
	sol=document.getElementById("solution"+s);
	sol.className="containerdefault";
	sol.style.display="none";
}
}
function dl_disp(id,limit){
	var switch_off,switch_on, l, dis, cls;
	l=limit+1;
	if (id=="All"){
					dis="";
					cls="dl_nav_unselected";
					}
	else
					{
					dis="none";
					cls="dl_nav_unselected";
					}
					
	for (var s=1; s<l; s++){
							if (s!=id){
										switch_off=document.getElementById("dl_container"+s);
										switch_off.style.display=dis;
										switch_off=document.getElementById("dl_t-"+s);
										switch_off.className=cls;
										}
							}
	if (id!="All"){
					switch_on=document.getElementById("dl_container"+id);
					switch_on.style.display="";
					}
					
	if (document.getElementById("dl_t-All")!=null){
	switch_off=document.getElementById("dl_t-All");
	switch_off.className=cls;
	}
	
	switch_on=document.getElementById("dl_t-"+id);
	switch_on.className="dl_nav_selected";
}

function dl_CollapseAll(limit){
	var switch_off, switch_on, l;
	l=limit+1;
for (var s = 2; s < l; s++){
	switch_off=document.getElementById("dl_container"+s);
	switch_off.style.display="none";
	switch_off=document.getElementById("dl_t-"+s);
	switch_off.className="dl_nav_unselected";
	
	switch_on=document.getElementById("dl_t-1");
	switch_on.className="dl_nav_selected";
}
if (document.getElementById("dl_t-All")!=null){
	switch_off=document.getElementById("dl_t-All");
	switch_off.className="dl_nav_unselected";
	}
}
function popWin(url,winWidth,winHeight){
day = new Date();
id = day.getTime();
window.open(url,id, 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width='+winWidth+',height='+winHeight+',left = 490,top = 362');
}