<?php
/************************************************************************/
/* Maximus CMS: Web Portal System                                       */
/* ==============================                                       */
/*                                                                      */
/* Copyright (c) 2002 - 2006                                            */
/* http://www.php-maximus.fr                                            */
/* dev@php-maximus.org                                                  */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
/* Based on PHP-NUKE: Web Portal System                                 */
/************************************************************************/
defined('MAXIMUS') or die ('Access denied create header MAXIMUS directly...');

function CreateHeader($TabName="luna", $HelpTip="Default")
{
	global $nukeurl, $helptipTheme;
	$ThemeSel = get_theme();
	$helptipTheme=$HelpTip;

	$ObjectPath="kernel/tabs/themes/".$TabName."/tab.css";
	if (file_exists("themes/".$ThemeSel."/tabs/style/tab.css")) { $ObjectPath="themes/".$ThemeSel."/tabs/style/tab.css"; }
	echo " <script type=\"text/javascript\" src=\"".$nukeurl."/kernel/tabs/local/webfxlayout.js\"></script> \n"
	    ."<style type=\"text/css\">\n";
		include $ObjectPath;
	echo "</style>\n"
	     ." <script type=\"text/javascript\" src=\"".$nukeurl."/kernel/tabs/js/tabpane.js\"></script> \n"
		." <script type=\"text/javascript\"> \n"
		."  \n"
		."function chgBg(obj,color){\n"
		." if (document.all || document.getElementById)\n"
		."   obj.style.backgroundColor=color;\n"
		." else if (document.layers)\n"
		."   obj.bgColor=color;\n"
		."}\n"
		."  \n"
		." </script> \n";
	$ObjectPath="kernel/helptip/themes/".$HelpTip."/helptip.css";
	if (file_exists("themes/".$ThemeSel."/helptip/style/helptip.css")) { $ObjectPath="themes/".$ThemeSel."/helptip/style/helptip.css"; }
	echo " <script type=\"text/javascript\" src=\"".$nukeurl."/kernel/helptip/js/helptip.js\"></script> \n"
		." <script type=\"text/javascript\" src=\"".$nukeurl."/kernel/helptip/js/showinfo.js\"></script> \n";
	echo "<style type=\"text/css\">\n";
	include $ObjectPath;
	echo "</style>\n"
	    ." <script type=\"text/javascript\" src=\"".$nukeurl."/kernel/js/changeimage.js\"></script> \n";
}