<?php
include_once('includes.php');
$pageTitle = 'whatwedoTitle.jpg';
if(isset($_POST['pwd']))
{
unset($_SESSION['videoLogin']);
if($_POST['pwd'] == 'faststart')
{
$_SESSION['videoLogin'] = true;
}
else
{
$_SESSION['videoLoginError'] = 'Invalid Password';
}
header("location: whatwedo.php");
exit;
}
$videoArray = array();
$videoArray[$lang['The Process']][$lang['Absolute Results Private Sale']] = 'whatwedo';
$videoArray[$lang['Invitations']][$lang['About Our Invitations']] = 'invites';
$videoArray[$lang['Conquests']][$lang['Conquest Marketing Strategies']] = 'conquestmarketing';
$videoArray[$lang['Conquests']][$lang['Canadian Black Book Integration']] = 'conquest';
$videoArray[$lang['Our Training']][$lang['Absolute Results Training Process']] = 'trainers';
$videoArray[$lang['Tech Package']][$lang['Absolute Results Tech Package']] = 'techpackage';
$videoArray[$lang['FAQ']][$lang['What Makes us Unique?']] = 'unique';
//$videoArray[$lang['FAQ']][$lang['Should I use a Call Centre?']] = 'callcenter';
if($_SESSION['videoLogin'])
{
$videoArray['Training Video'][$lang['Best Practices on Finding the Sweet Spot']] = 'sweetspot';
$videoArray['Training Video'][$lang['Handling "Not Interested" and "Problem Vehicles"']] = 'notinterested';
$videoArray['Training Video'][$lang['Best Practices on Managers Involvement']] = 'managersinvolvement';
$videoArray['Training Video'][$lang['Best Practices on the Little Extras']] = 'extras';
$videoArray['Training Video'][$lang['Selling Up from the Value Package Models']] = 'sellingup';
$videoArray['Training Video'][$lang['Absolute Results Selling Steps to the Sale']] = 'sellingsteps';
$videoArray['Training Video'][$lang['Absolute Results Telephone Training']] = 'telephonetraining';
}
$firstVid = 'whatwedo';
?>
<?php include_once('header.php'); ?>
<table cellspacing="0" cellpadding="0" style="width:100%">
<tr>
<td>
<table cellspacing="0" cellpadding="0">
<tr>
<td>
<ul id="example1" class="accordion">
<?php
foreach($videoArray as $cat => $videoList)
{
?>
<li class="locked">
<h3><?= $cat ?></h3>
<div class="panel loading">
<table cellspacing="0" cellpadding="0" class="videoTable">
<?php
foreach($videoList as $desc => $link)
{
?>
<tr>
<td onClick="viewVideo('<?= $link ?>')" id="<?= $link ?>" onMouseOver="videoMouseOver(this)" onMouseOut="videoMouseOut(this)">
<table cellspacing="0" cellpadding="0">
<tr>
<td style="padding:0px;padding-right:10px;width:26px;"><img src="<?= $lang['imgFdr'] ?>/videoIcon.jpg"></td>
<td style="padding:0px;width:500px"><?= $desc ?></td>
</tr>
</table>
</td>
</tr>
<?php
}
?>
</table>
</div>
</li>
<?php
}
?>
</ul>
</td>
</tr>
</table>
</td>
<td rowspan="2" style="width:700px;height:393px;padding-left:10px">
<video id="videoPlayer" class="video-js vjs-default-skin" controls <?= $videoAutoplay ?> preload="auto" width="700" height="394" data-setup="{}">
</video>
</td>
</tr>
<!-- <tr>
<td style="vertical-align:bottom;">
<table cellspacing="0" cellpadding="0" style="border:1px solid #ccc;padding:5px;width:100%;background-color:#efefef">
<tr>
<td>
<img src="<?= $lang['imgFdr'] ?>/brochureIcon.jpg">
</td>
<td style="padding-left:10px;vertical-align:middle">
<?= $lang['Absolute Results Corporate Brochure 2013'] ?>
<br><br>
<a href="<?= $lang['imgFdr'] ?>/Absolute Results 2013 Corporate Brochure.pdf" target="_blank"><?= $lang['download'] ?></a>
</td>
</tr>
</table>
</td>
</tr> -->
<tr>
<td style="vertical-align:bottom;padding-top:20px;">
<?php if(!isset($_SESSION['videoLogin'])) { ?>
<font style="color:red"><?= $_SESSION['videoLoginError'] ?></font>
<?php unset($_SESSION['videoLoginError']) ?>
<table cellspacing="0" cellpadding="0" style="border:1px solid #ccc;padding:5px;width:100%;background-color:#b40001;color:white">
<tr>
<td>
<i><b><?= $lang['Enter password to see more videos'] ?></i></b>
<br>
<form method="POST"><input type="password" name="pwd"> <input type="submit" value="<?= $lang['submit'] ?>"></form>
</td>
</tr>
</table>
<?php } ?>
</td>
</tr>
</table>
<script type="text/javascript">
$('#example1').accordion();
$(".loading").removeClass("loading");
var myPlayer = _V_("videoPlayer");
myPlayer.volume(0.5);
<?php if(!$isChrome) { ?>myPlayer.addEvent("ended", videoEnd);<?php } ?>
viewVideo('<?= $firstVid ?>');
</script>
<?php include_once('footer.php'); ?>