$_SESSION['user_name'] = $user_name;
    $user_password = trim($_POST['user_password']);
    //page to redirect to once successful login made
    ############
    #### NEED TO UPDATE - redirect should guide them to their specific dashboard page
    $redirect = "dashboard.php";
    require_once "includes/authenticate.php";
} else {
    session_start();
    include "includes/functions.php";
    //process the script only if the form has been submitted
    $error = '';
    //initialize $error var to empty string
}
//call the setSectionName function and assign it to $sectionName for use throughout the page
$sectionName = setSectionName();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../css/aistyle.css" />
<script src="../js/jquery-1.8.0.min.js"></script>
<title>Art Institute - Orange County - Admin</title>
</head>

<body>
<div id="container">
	<div id="admin_log">
		<p>Welcome to the Art Institute Kiosk.</p> 
        
function ShowResourceCenterDetails($action, $lang)
{
    /*$BrowseClass = "";	
    	$InvestorKnowledge = "";
    	$FundMaterials = "";
    	$VideoLibrary = "";
    	$FormsandLegal = "";
    	$LegalAndRegulatory = "";*/
    $_SESSION['Lang'] = $lang;
    ?>
	
<?php 
    // used to set section name for where documents were found
    setSectionName($action);
    insertSlider();
    ShowRCMenu($action, $lang);
    //echo 'this is the current page ' . $action;
    //LoadLightBoxHeader();
    switch ($action) {
        case 'ResearchAndInsights':
            //ShowResearchAndInsights();
            ShowAdvancedSearchScreen('ResearchAndInsights');
            break;
        case 'InvestorKnowledge':
            ShowInvestorKnowledge();
            break;
        case 'FundMaterials':
            FundMaterial();
            break;
        case 'VideoLibrary':
            ShowAdvancedSearchScreen('VideoLibrary');
            break;
        case 'FormsandLegal':
            ShowAdvancedSearchScreen('FormsandLegal');
            break;
        case 'LegalAndRegulatory':
            ShowAdvancedSearchScreen('LegalAndRegulatory');
            break;
        case 'AdvancedSearch':
            ShowAdvancedSearch();
            break;
        case 'RunAdvancedSearch':
            ShowAdvancedSearchResults();
            break;
        default:
            showResourceCentreContent();
            break;
    }
}