function setSection(p_sURL, p_nSectionID, p_nArrowID) {
	// set all the sections to off  - test it with faqs
	// and if it returned false, then reload the page
	if (tgoff('faq')) {
		tgoff('overview');
		tgoff('sizesandgrades');
		tgoff('productspecs');
		tgoff('howtouse');
		tgoff('howitworks');
		tgoff('testimonials');
		
		// now set the correct one on.
		switch(p_nSectionID) {
			case 400 :
				tg('overview');
				break;
			case 401 :
				tg('howtouse');
				break;
			case 402 :
				tg('howitworks');
				break;
			case 403 :
				tg('testimonials');
				break;
			case 404 :
				tg('faq');
				break;
			case 405 :
				tg('sizesandgrades');
				break;
			case 406 :
				tg('productspecs');
				break;
		}
		tmp = currentArrow
		currentArrow = 'arrowimg' + p_nArrowID;
		imgSwap(tmp, darkarrow);
		imgSwap('arrowimg' + p_nArrowID, lightarrow);
	} else {
		location.href = p_sURL + '&aid=' + p_nArrowID;
	}
}

			
// Toggle DIVs function - turns the display of any particular DIV to 'block' or 'none'
// depending on the current state of that DIV 
function tg(id){
	if (document.getElementById){
		if((document.getElementById(id).style.display == 'none') || (document.getElementById(id).style.display == null) || (document.getElementById(id).style.display == '')){
			document.getElementById(id).style.display = 'block';
		} else {
			document.getElementById(id).style.display = 'none';
		}
	} else if (document.all) {
		if (document.all[id].style.display == 'none') {
			document.all[id].style.display = 'block';
		} else {
			document.all[id].style.display = 'none';
		}
	}
}


function tgnav(id) {
	if (document.getElementById) {
		if (document.getElementById(id).className == 'subnavclosed') {
			document.getElementById(id).className = 'subnav';
			
		} else {
			document.getElementById(id).className = 'subnavclosed';
		}
		return true;
	} else if (document.all) {
		if (document.all[id].className == 'subnavclosed') {
			document.all[id].className = 'subnav';
		} else {
			document.all[id].className = 'subnavclosed';
		}
		return true;
	} else {
		return false;
	}
}


function tgoff(id){
	if (document.getElementById) {
		document.getElementById(id).style.display = 'none';
		return true;
	} else if (document.all) {
		document.all[id].style.display = 'none';
		return true;
	} else {
		return false;
	}
}

function tgplusminus(el, imgname) {
	if (el) {
		if (document.images[imgname].src.indexOf("menos_icon") != -1) {
			imgSwap(imgname, plus);
		} else {
			imgSwap(imgname, minus);
		}
	}
}
