// JavaScript Document
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function init(num){
	var stretchers = document.getElementsByClassName('box');
	var toggles = document.getElementsByClassName('tab');
	var myAccordion = new fx.Accordion(
		toggles, stretchers, {opacity: false, height: true, duration: 500}
	);
	//hash functions
	var found = false;
/*	toggles.each(function(h3, i){
		var div = Element.find(h3, 'nextSibling');
			if (window.location.href.indexOf(h3.title) > 0) {
				myAccordion.showThisHideOpen(div);
				found = true;
			}
			
	});*/
	if (!found) myAccordion.showThisHideOpen(stretchers[num]);
}
s_act = 0 ;
function showItem(num){
	if(num != s_act){
		if(s_act != 0){
			tabact =document.getElementById("item"+s_act);
			tabact.style.backgroundImage ="url(images/img_bkgMenutab_off.gif)";
		}
		tabnew =document.getElementById("item"+num);
		tabnew.style.backgroundImage ="url(images/img_bkgMenutab_on.gif)";		
		s_act=num;
	}
	Element.cleanWhitespace('content');
	init(num-1)
}
