<?php
##############################################################
##In-portal													##
##############################################################
##					      In-portal							##
##					Intechnic Corporation					##
##			   All Rights Reserved, 1998-2002				##
##															##	
##	No portion of this code may be copied, reproduced or	##	
##	   otherwise redistributed without proper written		##
##	  consent of Intechnic Corporation.  Violation will		##
##	   result in revocation of the license and support		##
##	 privileges along maximum prosecution allowed by law.	##
##############################################################

// new startup: begin
define('REL_PATH', 'admin/help');
$relation_level = count( explode('/', REL_PATH) );
define('FULL_PATH', realpath(dirname(__FILE__) . str_repeat('/..', $relation_level) ) );
require_once FULL_PATH.'/kernel/startup.php';
// new startup: end

require_once ($pathtoroot.$admin."/include/elements.php");
require_once ($pathtoroot."kernel/admin/include/navmenu.php");
//require_once ($pathtolocal."admin/include/navmenu.php");
require_once($pathtoroot.$admin."/browse/toolbar.php");
require_once($pathtoroot.$admin."/listview/listview.php");

$ado = &GetADODBConnection(); 
$title = "In-Portal ".language("la_Credits_Title");
$charset = GetRegionalOption('Charset');
/* page header */
print <<<END
<html>
<head>
  <title>$title</title>
  <meta http-equiv="content-type" content="text/html;charset=$charset">
  <meta http-equiv="Pragma" content="no-cache">
  <!--
  <script src="$adminURL/include/dw_scrollObj.js" type="text/javascript"></script>
  <script src="$adminURL/include/dw_hoverscroll.js" type="text/javascript"></script>
  -->
  <script language="JavaScript">
    imagesPath='$imagesURL'+'/';
   
   	function initScrollLayer()
   	{
   		var i = 0;
   		x = 4;
   		
   		function scrolldiv() {
  			document.getElementById('scrollImg').scrollTop += x;
  			i++;
  			if (i > 100) {
  				if (x > 0) {
  					x = -4;
  					
  				}
  				else {
  					x = 4;
  				}
  				i = 0;
  			}
  			//alert('again');
  			window.setTimeout(scrolldiv, 150);
  		}
  		window.setTimeout(scrolldiv, 500);
	}	
  </script>
  
  <link rel="stylesheet" type="text/css" href="$cssURL/style.css">
  
  
 </head> 
END;

if ((int)$m_var_list["lang"])
{
	$objLanguages->Query_Item("SELECT * FROM ".$objLanguages->SourceTable." WHERE Enabled=1 AND LanguageId=".(int)$m_var_list["lang"]);
	foreach ($objLanguages->Items as $l)
	{
		$lang_name = " ".$l->Get("LocalName");
	}
}	

?>
<!-- onload="initScrollLayer()" -->
<body onload="initScrollLayer()" marginheight="0" marginwidth="0" marginleft="0" margintop="0" bgcolor="white" style="background-repeat: no-repeat;" background="<?php echo $imagesURL."/about.jpg";?>">
<TABLE cellSpacing="0" cellPadding="0" width="100%" height="100%">
<tr>
	<TD align="center" width="0%">
	<TABLE cellSpacing="0" cellPadding="0" width="95%">
		<tr>
			<TD align="center" width="95%" class="small">
	 <BR><BR><BR><BR><BR><BR><BR><BR><BR><br><br><br>
	 <span class="text">In-Portal <?php echo language("la_Text_Version").":".$kernel_version.$lang_name; ?></SPAN>	 
	 <BR><BR>
	 
	 <div id="wn">
	 	<div class="small" id="content" width="432" height="146" align="center">
	 		<div id="scrollImg" style="position: relative; overflow: hidden; height: 190px; width: 270px"> 
	 			<?php 
	 				$inc_path = $pathtoroot.$admin.'/help/';
	 				include $inc_path.'credits.txt';
	 			?>
	 			<br><br>
	 		</div>
	 		<?php
	 			echo '<hr>';
	 			include $inc_path.'legal_warning.txt';
	 		?>
	 	</div>
	 </div>
	 
	 <BR><BR>
	 <input type="button" value="<?php echo language("la_button_ok"); ?>" onclick="window.close()"></TD>  
		</TR>
		</table>
	 </TD>  
</TR>   
</TABLE>
<!-- END CODE-->
<?php int_footer(); ?>