' . "\n" . $hjs; 
	}
}
function include_jQueryUI($path='') 
{
	global $pth, $cf, $hjs;
	
	if($path == '') 
	{
		$path = $pth['folder']['plugins'].'jquery/lib/jquery_ui/'.$cf['jquery']['file_ui'];
		if(!file_exists($path)) 
		{
			e('missing', 'file', $path);
			return;
		}
	}
	$hjs.= "\n" . '';
	
	if(file_exists($pth['folder']['template'].'jquery_ui/jquery_ui.css')) 
	{
		//load a complete custom ui-theme
		$hjs .= "\n".tag('link rel="stylesheet" type="text/css" media="screen" href="'
			 .$pth['folder']['template'].'jquery_ui/jquery_ui.css"');
	} 
	else 
	{
		//load the default theme
		$hjs = tag('link rel="stylesheet" type="text/css" media="screen" href="'.$pth['folder']['plugins']
				.'jquery/lib/jquery_ui/css/'.$cf['jquery']['file_css'].'"') . "\n" . $hjs;
		//include a custom css-file to overwrite single selectors
		if(file_exists($pth['folder']['template'].'jquery_ui/stylesheet.css')) 
		{
			$hjs.= "\n" . tag('link rel="stylesheet" type="text/css" media="screen" href="'
			.$pth['folder']['template'].'jquery_ui/stylesheet.css"');
		}
	}
}
function include_jQueryPlugin($name='', $path='') 
{
	global $hjs, $jQueryPlugins;
	
	if(!isset($jQueryPlugins)) 
	{
		$jQueryPlugins = array();
	}
	
	if($name != '') 
	{
		if(!file_exists($path)) 
		{
			e('missing', 'file', $path);
			return;
		}
		$name = strtolower($name);
		if (!in_array($name, $jQueryPlugins)) 
		{
			$hjs.= "\n" . '';
			$jQueryPlugins[] .= $name;
		}
	}
}
?>