function changeDisplay(div_id,if_,then_){
	var elem=document.getElementById(div_id);
	if (elem && elem.style.display == if_) {
		elem.style.display=then_;
	}
}
function open_sub(SM_SHORT,PARENT) {
	if (akt_sub!=SM_SHORT) {
		if (PARENT != akt_sub) {
			changeDisplay('FOLDER_'+akt_sub+'_drop','block','none');
		} else {
			akt_parent=PARENT;
		}
		if (akt_parent!='' && !PARENT) {
			changeDisplay('FOLDER_'+akt_parent+'_drop','block','none');
			akt_parent='';
		}

		changeDisplay('FOLDER_'+SM_SHORT+'_drop','none','block');

		akt_sub=SM_SHORT;
	}
}
function changePic(obj,url) {
	if (obj) {
		tmp=new Image();tmp.src=url;
		obj.src=tmp.src;
	}
}
function hover(obj,color){
	obj.parentNode.lastChild.style.color=color;
}
function js_popup_image(image, image_width, image_height) {
	window_width = image_width + 'px';
	window_height = image_height + 'px';
	window.open(image,'_blank','location=no,menubar=no,resizable=no,status=no,toolbar=no,dependent=yes,scrollbars=yes,width=' + window_width + ',height=' + window_height)
}


