function toggle(id,opt)
{
	if (opt) {
		document.getElementById(id).style.top=10;
		document.getElementById(id).style.left=10;
	}
	else {
		document.getElementById(id).style.top=0;
		document.getElementById(id).style.left=0;
	}
}

function toggle2(id,opt,curr)
{	
	if (opt) {
		if (curr==0) {
		document.getElementById(id).style.top= 70;
		document.getElementById(id).style.left= 30;
		}
		else if (curr==1) {
		document.getElementById(id).style.top= 180;
		document.getElementById(id).style.left= 30;
		}
		else if (curr==2) {
		document.getElementById(id).style.top= 290;
		document.getElementById(id).style.left= 30;
		}
		else if (curr==3) {
		document.getElementById(id).style.top= 400;
		document.getElementById(id).style.left= 30;
		}
	}
	else {
		if (curr==0) {
		document.getElementById(id).style.top= 60;
		document.getElementById(id).style.left= 20;
		}
		else if (curr==1) {
		document.getElementById(id).style.top= 170;
		document.getElementById(id).style.left= 20;
		}
		else if (curr==2) {
		document.getElementById(id).style.top= 280;
		document.getElementById(id).style.left= 20;
		}
		else if (curr==3) {
		document.getElementById(id).style.top= 390;
		document.getElementById(id).style.left= 20;
		}
	}
}

function disp(s)
{
	if (document.getElementById(s).style.visibility=='hidden'){
		document.getElementById(s).style.visibility='visible';
	}
	else{
		document.getElementById(s).style.visibility='hidden';
	}
}

function redir() {
	window.location = "Dev/index.html";
}

function collapseAll()
{
	var ids=new Array(6);
	
	ids[0]='acn';
	ids[1]='atn';
	ids[2]='das';
	ids[3]='daa';
	ids[4]='cn';
	ids[5]='os';
	
	for(i=0;i<ids.length;i++)
	{
		document.getElementById(ids[i]).style.display='none';
	}
}

function displayDesc(id)
{
	if (document.getElementById(id).style.display=='none')
	{
		collapseAll();
		document.getElementById(id).style.display='block';
	}
	else
	{
		document.getElementById(id).style.display='none';
	}
}
