// JavaScript Document
function showID(id) {
	if (document.getElementById(id).style.display == 'block') {
		document.getElementById(id).style.display = 'none';
		//document.getElementById('p'+id).style.backgroundImage = 'url(images/orange-arrow-right.png)';
		document.getElementById('p'+id).className = 'hideParagraphTitle';
		} else {
		document.getElementById(id).style.display = 'block';
		//document.getElementById('p'+id).style.backgroundImage = 'url(images/orange-arrow-down.png)';
		document.getElementById('p'+id).className = 'showParagraphTitle';
		}
	}

function bottomSlide(id,height) {
	var attributes = {   
		height: { to: height } 
		};   
	var anim = new YAHOO.util.Anim(id, attributes, 0.2); 
	anim.animate();  
	} 

function bottomResetG1(id) {
	if (id != 'g1bottom1') {
		bottomSlide('g1bottom1',0);
		setTimeout("document.getElementById('g1bottom1').style.display='none';",200);
		}
	if (id != 'g1bottom2') {
		bottomSlide('g1bottom2',0);
		setTimeout("document.getElementById('g1bottom2').style.display='none';",200);
		}
	if (id != 'g1bottom3') {
		bottomSlide('g1bottom3',0);
		setTimeout("document.getElementById('g1bottom3').style.display='none';",200);
		}
	if (id != 'g1bottom4') {
		bottomSlide('g1bottom4',0);
		setTimeout("document.getElementById('g1bottom4').style.display='none';",200);
		}
	if (id != 'g1bottom5') {
		bottomSlide('g1bottom5',0);
		setTimeout("document.getElementById('g1bottom5').style.display='none';",200);
		}
	}
	
function bottomSelectG1(id) {
	bottomResetG1(id);
	document.getElementById(id).style.display = 'block';
	bottomSlide(id,130);
	}
	
function bottomResetG2(id) {
	if (id != 'g2bottom1') {
		bottomSlide('g2bottom1',0);
		setTimeout("document.getElementById('g2bottom1').style.display='none';",200);
		}
	if (id != 'g2bottom2') {
		bottomSlide('g2bottom2',0);
		setTimeout("document.getElementById('g2bottom2').style.display='none';",200);
		}
	if (id != 'g2bottom3') {
		bottomSlide('g2bottom3',0);
		setTimeout("document.getElementById('g2bottom3').style.display='none';",200);
		}
	if (id != 'g2bottom4') {
		bottomSlide('g2bottom4',0);
		setTimeout("document.getElementById('g2bottom4').style.display='none';",200);
		}
	if (id != 'g2bottom5') {
		bottomSlide('g2bottom5',0);
		setTimeout("document.getElementById('g2bottom5').style.display='none';",200);
		}
	}
	
function bottomSelectG2(id) {
	bottomResetG2(id);
	document.getElementById(id).style.display = 'block';
	bottomSlide(id,130);
	}
	
function bottomResetG3(id) {
	if (id != 'g3bottom1') {
		bottomSlide('g3bottom1',0);
		setTimeout("document.getElementById('g3bottom1').style.display='none';",200);
		}
	if (id != 'g3bottom2') {
		bottomSlide('g3bottom2',0);
		setTimeout("document.getElementById('g3bottom2').style.display='none';",200);
		}
	if (id != 'g3bottom3') {
		bottomSlide('g3bottom3',0);
		setTimeout("document.getElementById('g3bottom3').style.display='none';",200);
		}
	if (id != 'g3bottom4') {
		bottomSlide('g3bottom4',0);
		setTimeout("document.getElementById('g3bottom4').style.display='none';",200);
		}
	if (id != 'g3bottom5') {
		bottomSlide('g3bottom5',0);
		setTimeout("document.getElementById('g3bottom5').style.display='none';",200);
		}
	}
	
function bottomSelectG3(id) {
	bottomResetG3(id);
	document.getElementById(id).style.display = 'block';
	bottomSlide(id,130);
	}
	
function bottomResetG4(id) {
	if (id != 'g4bottom1') {
		bottomSlide('g4bottom1',0);
		setTimeout("document.getElementById('g4bottom1').style.display='none';",200);
		}
	if (id != 'g4bottom2') {
		bottomSlide('g4bottom2',0);
		setTimeout("document.getElementById('g4bottom2').style.display='none';",200);
		}
	if (id != 'g4bottom3') {
		bottomSlide('g4bottom3',0);
		setTimeout("document.getElementById('g4bottom3').style.display='none';",200);
		}
	if (id != 'g4bottom4') {
		bottomSlide('g4bottom4',0);
		setTimeout("document.getElementById('g4bottom4').style.display='none';",200);
		}
	if (id != 'g4bottom5') {
		bottomSlide('g4bottom5',0);
		setTimeout("document.getElementById('g4bottom5').style.display='none';",200);
		}
	}
	
function bottomSelectG4(id) {
	bottomResetG4(id);
	document.getElementById(id).style.display = 'block';
	bottomSlide(id,130);
	}