//all javascripts that are SITE SPECIFIC, and probably cannot be reused in other site, go in this file

function toggleVisible(togDiv, toggle){
	//alert('in toggleVisible');
	if(divObj=findObjectPath(togDiv)){
		//alert('ready to toggle');
		switch(toggle){
			case 1:
				divObj.style.visibility='visible';
				break;
				
			case 0:
				divObj.style.visibility='hidden';
				break;
		}
	}
}

openCat=0;

function switchOpenCat(catID,closeOld,type){
	//open the current category if it is not already open
	if(catID!=openCat){
		//if there is another open category, close it
		if(openCat!=0 && closeOld==1){toggleContDiv(openCat,'image','','','',0);}
		toggleContDiv(catID,'image','','','',0);
		openCat=catID;
	}
	//do perform other functions depending on type
	if(type!=null){
		switch(type){
			case 'faq': /*nothing more*/ break;
		}
	}
}
