function show_img(url, width, height)
{
   var a
   var b
   var url
   vidWindowWidth=width;
   vidWindowHeight=height;
   a=(screen.height-vidWindowHeight)/5;
   b=(screen.width-vidWindowWidth)/2;
   features="top="+a+",left="+b+",width="+vidWindowWidth+",height="+vidWindowHeight+",toolbar=no,menubar=no,location=no,directories=no,scrollbars=no,resizable=no";
   window.open(url,'',features,true);
}

function display_obj(obj_id)
{	var obj = document.getElementById(obj_id);
	obj.style.display = (obj.style.display == 'block') ? 'none' : 'block';
}

function display_plus(obj_id,parent_obj_id)
{
	var obj = document.getElementById(obj_id);
	var parent_obj = document.getElementById(parent_obj_id);
	var path = '/img/';
	obj.src = (parent_obj.style.display == 'block') ? path+'plus.gif' : path+'minus.gif';
}

function init(id,parent_id)
{	if(parent_id != 0)
	{
		var obj = document.getElementById('sub_cats_'+parent_id);
		var img_obj = document.getElementById('img_cat_'+parent_id);
		var path = '/img/';
		obj.style.display = 'block';
		img_obj.src = path+'minus.gif';
	}

	if(id != 0)
	{		var arrow_obj = document.getElementById('sub_cat_'+id);
		arrow_obj.className = 'left_menu_sub_cat_active';
	}

	return false;
}
