function getMini(i) {			   
	var k = i;
	for (a=0; a< fillers.length; a++) {
		k += (fillers[a] <= i) ? 1 : 0;
		if (fillers[a] == i){					    
			return fillerImg;
		}
	}
	return 'kleintjes/'+minis[k]+'.jpg';
}
function recursiveFade(i) {
	$("#wrp_"+trend[i]+" img").animate({opacity : 0.35}, 1, null, function() {			
			if (trend.length > i+1) {
				recursiveFade(i+1);
			}
		}
	)
}

var isNew = true;
function select_(i, href, isGrid, popup, doExpand) {		
	if (href != null) {	
		if (popup) {		
			venster = window.open(href, 'links', 'width=1024, height=600, resizable=no, menubar=no, scrollbars=no, status=no, toolbar=no');
		}		
		else {
			load('iframe1', href);
		}
	}
	if (!isNew) {		
		$("div.wrp img").animate({opacity: 0.35},60);
		$("div.wrp").css('background-color', '#FFF');
	}
	isNew = false;
	theGrp  = -1;
	theNode = -1;
	//grpArr = [];
	for(j=0; j< groups.length; j++) {
		var grp = groups[j];
		for (h=0; h< grp.length; h++) {				
			grpi = grp[h];
			if (grpi == i) {	
				theGrp = j;
				for (g=0; g< grp.length; g++) {											
					$("#wrp_"+grp[g]+" img").animate({opacity : 1.00},400);
				}
			}
		}
	}	
	
	for(j=0; j< groups.length; j++) {
		if (j != theGrp) {			
			var grp = groups[j];
			for (h=0; h< grp.length; h++) {						    					
				for (g=0; g< grp.length; g++) {						
					$("#wrp_"+grp[g]+" img").animate({opacity : 0.10},300);									
				}					
			}
		}
	}
	
	if (doExpand) {	
		m.O[0].expand(); // ff testen
		for(j=0; j< nodes.length; j++) {
			node = nodes[j];
			for (h=0; h< node.length; h++) {				
				nodei = node[h];
				if (nodei == i) {						
					m.O[j].expand();
				}
			}
		}
	}
	return true;
}

