var currentopen = 0;
var baseheight = 0;
var flwheight = 0;

function expand (targetdiv,idx) {
	if(currentopen != idx){
		$("#r"+idx).hide();
		$("#r"+idx).fadeIn(300);
		if(currentopen != 0){
			contract(document.getElementById('r' + currentopen),currentopen);
		}
		targetdiv.className = targetdiv.className + "_a";
		currentopen = idx;
	}
}

function contract (targetdiv,idx) {
	targetdiv.className = targetdiv.className.substring(0,2);
}

function vboxover (idx,over) {
	if(over){
		document.getElementById('v'+idx+'0').className = (over)? 'vboxover':'vbox';
		if(!$.browser.msie){
			$("#v"+idx).css("display", "none");
			$("#v"+idx+"b").css("display", "none");
			$("#v"+idx).fadeIn("fast");
			$("#v"+idx+"b").fadeIn("fast");
		}
	} else {
		document.getElementById('v'+idx+'0').className = (over)? 'vboxover':'vbox';
	}
}







