// JavaScript Document
function body_onload(){
	for(i=1; getElementByID("desc"+i); i++)
		getElementByID("desc"+i).className = "gallerybodyHide";
}

function getElementByID(eln){
	if(document.all)
		return document.all(eln);
	else
		return document.getElementById(eln);
}

function swapContent(forel){
	totalels = 0;
	while(getElementByID("topic"+totalels))
		totalels++;
	for(i=0; i < totalels; i++){
		if(i==forel){
			getElementByID("topic"+i).className = "topicopen";
			getElementByID("desc"+i).className = "gallerybodyShow";
		}
		else{
			getElementByID("topic"+i).className = "topicclosed";
			getElementByID("desc"+i).className = "gallerybodyHide";
		}
	}
}
