<?php
/**
 **	pg_HOME.inc
 ** 	page template file
 **
 **	Original Author:	Robby Anderson
 **	Original Date:		March 2001
 **
 **	Modified By:			Robby Anderson
 **	Modified On:			September 2005
 **	Modifications:		New page design
 **
 ** This shows the standard page with standard setup and navigation.
 **
 ** NOTE: Like all templates, this should not be called by itself, it should be
 ** included by the page's display object.
 **/
	// Set variables for the navs
	$navInfo['userName'] = $this->sobj->getProp('sessionUsername');
	$navInfo['inheritID'] = $this->sobj->getProp('sessionInheritUserID');
	$navInfo['mainPerm'] = $this->sobj->getProp('sessionPermissions');
	$navInfo['fullPerm'] = $this->sobj->getProp('sessionPermissions');

	// Get the page class
	$navInfo['pageClass'] = $this->getProp('pageClass');


	// Create the various navs
	$topNav = topNav($navInfo);
	$utilityNav = utilityNav($navInfo);
	$bottomNav = bottomNav($navInfo);


	// Figure the title tag
	$titleTag = ( $this->getProp('pageTitle') ? $this->getProp('pageTitle') : 'Auto Loan Refinance | Reduce Car Payment | Skip Payments' );



	$this->appendProp('jsCustom', js_popUp(740, 540, 100, 100, 'popUpCalc'));


	//require_once('classes/objRotateBanner.pclass');
	//$banner = new objRotateBanner('HOME');

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]-->
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
	<meta http-equiv="Content-Style-Type" content="text/css"/>
	<meta name="MSSmartTagsPreventParsing" content="TRUE"/>
	<meta name="author" content="aaxy, Inc."/>
	<meta name="publisher" content="aaxy, Inc."/>
	<meta name="copyright" content="Copyright &copy;2002-<?php echo date('Y');?> - aaxy, Inc."/>
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />

	<title><?php echo $titleTag; ?></title>
	<?php
		// Show extra metas, if required
		if ( $this->getProp('pageMetaArray') ) {

			echo "\n";

			$metaArray = $this->getProp('pageMetaArray');
			foreach ( array_keys($metaArray) as $metaKey ) {
				echo sprintf('%s<meta name="%s" content="%s"/>%s', "\t", $metaKey, $metaArray[$metaKey], "\n");
			}
		}
	?>
	<link rel="stylesheet" href="/rbai/docroot/css/foundation.css">
	<link rel="stylesheet" href="/rbai/docroot/css/rg.css">
	<script type="text/javascript" language="javascript">
		function submitenter(thisForm,e) {
			var keycode;
			if (window.event) {
				keycode = window.event.keyCode;
			} else if (e) {
				keycode = e.which;
			} else {
				return true;
			}

			if (keycode == 13) {
				thisForm.form.submit();
				return false;
			} else {
				return true;
			}
		}
	</script>

	<?php
		// Always show the bbbPopup
		$this->appendProp('jsCustom',"\r\n".js_popUp(550,350,20,20,'bbbPopUp','screen'));


		// Check to see if we should show any custom javascript
		switch ( $navInfo['mainPerm'] ) {
			case 'LTREE':
			case 'ADMIN':
			case 'AGENT':
				$this->appendProp('jsCustom',"\r\n".js_popUp(350,600,20,20,'calcPopUp','screen'));
				$this->appendProp('jsCustom',"\r\n".js_popUp(600,400,10,10,'ltPopUp'));
				break;
		}



		// Include standard javascript
		//include('snippets/sn_javascript.inc');

		//if ( $doChat ) { echo '	<script type="text/javascript" src="/javascript/InstantInvite_Custom.js"></script>' . "\n"; }
		include('snippets/sn_custom_css.inc');
	?>

</head>
<body class="home">

<div id="wrap-main">

	<div class="container">
		<div id="header">
			<!-- start utility nav -->
			<?php echo $utilityNav; ?>
			<!-- end utility nav -->
			<!-- start header -->
			<div class="row">
				<div class="four columns">
					<div class="logo">
						<p>
							<a href="/Index.php"><img alt="logo here" src="images/<?php echo $logo; ?>"></a>
						</p>
					</div>
				</div>
				<div class="eight columns">
					<div class="call-out phone">
						<p>
							<strong>Call <?php echo $phoneNum; ?></strong>
						</p>
						<p>Phone number here</p>
					</div>
				</div>
			</div>
<?php echo $topNav; ?>
<!-- end navigation tabs -->
		</div>
<!-- end header -->



<!-- start navigation tabs -->

</div>
<!-- start page content (sidebar + main content) -->

<?php
	// If there is a status message, show it
	//echon( $this->statusMessage() );

	// Show the main page content
	echon( $this->getProp('pageMain') );
?>

<!-- end page content -->

<?php
	// If there is a pageBottom, then show it
	echon( $this->getProp('pageBottom') );
?>

</div><!-- end drop-shadowed block -->


<!-- end footer -->
		</div>
	</div>
</div>
<!-- start footer -->
<?php echo $bottomNav; ?>
<script type="text/javascript" language="javascript" src="/javascript/jquery.min.js"></script>
<script type="text/javascript" language="javascript" src="/javascript/modernizr.foundation.js"></script>
<script type="text/javascript" language="javascript" src="/javascript/modernizer_video.js"></script>
<script type="text/javascript" language="javascript" src="/javascript/foundation.js"></script>
<script type="text/javascript" language="javascript" src="/javascript/app.js"></script>
<script type="text/javascript">
$(window).load(function() {
	$('#featured').orbit({
			bullets: true,
			animationSpeed: 900,
			directionalNav: false, // manual advancing directional navs
			captions: true, // do you want captions?
			captionAnimation: 'fade', // fade, slideOpen, none
			captionAnimationSpeed: 1000, // if so how quickly should they animate in
			timer: true, // true or false to have the timer
			advanceSpeed: 5000, // if timer is enabled, time between transitions
			pauseOnHover: false, // if you hover pauses the slider
			fluid: false // or set a aspect ratio for content slides (ex: '4x3')
		});
});
</script>
</body>
</html>
