﻿
//here you place the ids of every element you want.
var ids = new Array('1', '2', '3','4');

function switchid_top(id) {
    hideallids();
    showdiv(id);
}

function hideallids() {
    //loop through the array and hide each element by id
    for (var j = 0; j < ids.length; j++) {
        hidediv(ids[j]);
    }
}

function hidediv(id) {
    //safe function to hide an element with a specified id    
    if (document.getElementById) { // DOM3 = IE5, NS6
        document.getElementById(id).style.display = 'none';
    }
    else {
        if (document.layers) { // Netscape 4
            document.id.display = 'none';
        }
        else { // IE 4
            document.all.id.style.display = 'none';
        }
    }
}

function showdiv(id) {
    //safe function to show an element with a specified id

    if (document.getElementById) { // DOM3 = IE5, NS6
        document.getElementById(id).style.display = 'block';
    }
    else {
        if (document.layers) { // Netscape 4
            document.id.display = 'block';
        }
        else { // IE 4
            document.all.id.style.display = 'block';
        }
    }
}


/*<![CDATA[*/
/*var Lst;

function CngClass(obj) {
    
if (Lst) Lst.className='';
obj.className='active2';
Lst = obj;
 
}*/

var Lst;

function CngClass(obj) {

    var a = document.getElementById("a1");
    a.className = '';
    if (Lst) Lst.className = '';
    obj.className = 'selected';
    Lst = obj;

}

///6march javascript for pages getstarted and causes


//here you place the ids of every element you want.
var ids1 = new Array('start', 'send', 'recieve', 'join');

function switchid_topGetstart(id) {
    hideallidsGetstart();
    showdivGetstart(id);
}

function hideallidsGetstart() {
    //loop through the array and hide each element by id
    for (var j = 0; j < ids1.length; j++) {
        hidedivGetstart(ids1[j]);
    }
}

function hidedivGetstart(id) {
    //safe function to hide an element with a specified id
    if (document.getElementById) { // DOM3 = IE5, NS6
        document.getElementById(id).style.display = 'none';
    }
    else {
        if (document.layers) { // Netscape 4
            document.id.display = 'none';
        }
        else { // IE 4
            document.all.id.style.display = 'none';
        }
    }
}

function showdivGetstart(id) {
    //safe function to show an element with a specified id

    if (document.getElementById) { // DOM3 = IE5, NS6
        document.getElementById(id).style.display = 'block';
    }
    else {
        if (document.layers) { // Netscape 4
            document.id.display = 'block';
        }
        else { // IE 4
            document.all.id.style.display = 'block';
        }
    }
}




/*<![CDATA[*/
/*  var Lst;

function CngClass(obj) {
if (Lst) Lst.className = '';
obj.className = 'active2';
Lst = obj;
}*/



function Show(obj_ID) {
    document.getElementById(obj_ID).style.display = "block";
}
function Hide(obj_ID) {
    document.getElementById(obj_ID).style.display = "none";
}




function check(obj) {
   
    //alert(obj);
    var a1 = document.getElementById("a1");
    var a2 = document.getElementById("a2");
    var a3 = document.getElementById("a3");
    var a4 = document.getElementById("a4");
    

    if (obj == '1') {
        //var a = document.getElementById("a2");
        a2.className = 'selected';
        a1.className = '';
        a3.className = '';
        a4.className = '';
    }
    if (obj == '2') {
        //var a = document.getElementById("a3");
        a3.className = 'selected';
        a1.className = '';
        a2.className = '';
        a4.className = '';

    }
    if (obj == '3') {
        //var a = document.getElementById("a4");
        a4.className = 'selected';
        a1.className = '';
        a3.className = '';
        a2.className = '';

    }
    if (obj == '4') {
        //var a = document.getElementById("a4");
        a1.className = 'selected';
        a4.className = '';
        a3.className = '';
        a2.className = '';

    }
}





//today

//here you place the ids of every element you want.
var idshelp=new Array('whyshould', 'doesit', 'howdo', 'whereare', 'canmy', 'whydidnt', 'howlong', 'whatis');

function switchid_top_help(id){
    hideallidshelp();
	showdivhelp(id);
}

function hideallidshelp(){
	//loop through the array and hide each element by id
    for (var j = 0; j < idshelp.length; j++) {
        hidedivhelp(idshelp[j]);
	}
}
function hidedivhelp(id) {
    //safe function to hide an element with a specified id
    if (document.getElementById) { // DOM3 = IE5, NS6
        document.getElementById(id).style.display = 'none';
    }
    else {
        if (document.layers) { // Netscape 4
            document.id.display = 'none';
        }
        else { // IE 4
            document.all.id.style.display = 'none';
        }
    }
}

function showdivhelp(id) {
    //safe function to show an element with a specified id

    if (document.getElementById) { // DOM3 = IE5, NS6
        document.getElementById(id).style.display = 'block';
    }
    else {
        if (document.layers) { // Netscape 4
            document.id.display = 'block';
        }
        else { // IE 4
            document.all.id.style.display = 'block';
        }
    }
}
/*<![CDATA[*/
var Lsthelp;

function CngClasshelp(obj){
    if (Lsthelp) Lsthelp.className = '';
 obj.className='active';
 Lsthelp = obj;
}



//help greenykey

//here you place the ids of every element you want.
var idshelpGreeny = new Array('whatis', 'howdo', 'howlong', 'howlomgdoes', 'howmuch', 'whydo', 'cani', 'wheredo');

function switchid_tophelpGreeny(id) {
    hideallidshelpGreeny();
    showdivhelpGreeny(id);
}

function hideallidshelpGreeny() {
	//loop through the array and hide each element by id
    for (var j = 0; j < idshelpGreeny.length; j++) {
        hidedivhelpGreeny(idshelpGreeny[j]);
	}		  
}

function hidedivhelpGreeny(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdivhelpGreeny(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}


/*<![CDATA[*/
var LsthelpGreeny;

function CngClasshelpGreeny(obj){
    if (LsthelpGreeny) LsthelpGreeny.className = '';
 obj.className='active';
 LsthelpGreeny = obj;
}

//help software

//here you place the ids of every element you want.
var idshelpsoft = new Array('whatis', 'howlong', 'howdo', 'whatare', 'ihave', 'howcan', 'does', 'my', 'mygreeny', 'howdoi');

function switchid_tophelpsoft(id) {
    hideallidshelpsoft();
	showdivhelpsoft(id);
}

function hideallidshelpsoft() {
	//loop through the array and hide each element by id
    for (var j = 0; j < idshelpsoft.length; j++) {
	    hidedivhelpsoft(idshelpsoft[j]);
	}		  
}

function hidedivhelpsoft(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdivhelpsoft(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}


/*<![CDATA[*/
var Lsthelpsoft;

function CngClasshelpsoft(obj){
 if (Lsthelpsoft) Lsthelpsoft.className='';
 obj.className='active';
 Lsthelpsoft=obj;
}


