function featuresBox(){
	if (!document.getElementById("toggle")) return false;
	document.getElementById("div2text").style.display="none";
	 document.getElementById("div3text").style.display="none";
	var features_links = document.getElementById("toggle").getElementsByTagName("a");
	
	for (p=0;p<features_links.length; p++){
		
		features_links[p].onclick = function(){
			return featureContent(this);}
		}}

function featureContent(thelink){
	 
	var features_links = document.getElementById("toggle").getElementsByTagName("a");
	var features_divs = document.getElementById("toggleboxright").getElementsByTagName("div");
	
	thelink.focus=thelink.blur();
	for (p=0;p<features_links.length; p++){
		features_links[p].className="";}
	
	for (z=0;z<features_divs.length; z++){
		features_divs[z].style.display="none";}
	
	thelink.className="active";
	
	if(thelink.getAttribute("id")=="div1"){
	document.getElementById("div1text").style.display="block";
	}
	
	if(thelink.getAttribute("id")=="div2"){
	document.getElementById("div2text").style.display="block";
	}
	
	if(thelink.getAttribute("id")=="div3"){
	document.getElementById("div3text").style.display="block";
	}
	
	
	return false;
	
	
}


function addLoadEvent(func)
{	
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
    	window.onload = func;
	} else {
		window.onload = function(){
		oldonload();
		func();
		}
	}

}

addLoadEvent(featuresBox);	