}
?>
</div></div>

</form>
<?php 
echo $this->_tpl_vars['set_focus_block'];
?>

<!-- Begin Meta-Data Javascript -->
<script type="text/javascript"><?php 
echo $this->_tpl_vars['JSON_CONFIG_JAVASCRIPT'];
?>
</script>
<?php 
echo smarty_function_sugar_getscript(array('file' => "cache/include/javascript/sugar_grp_jsolait.js"), $this);
?>

<script>toggle_portal_flag();function toggle_portal_flag()  { <?php 
echo $this->_tpl_vars['TOGGLE_JS'];
?>
 } 
function formSubmitCheck(){if(check_form('EditView')){document.EditView.submit();}}</script>
<!-- End Meta-Data Javascript -->
<div class="h3Row" id="scheduler"></div>
<script type='text/javascript' src='<?php 
echo smarty_function_sugar_getjspath(array('file' => 'include/javascript/popup_helper.js'), $this);
?>
'></script>
<script type="text/javascript" src="<?php 
echo smarty_function_sugar_getjspath(array('file' => 'cache/include/javascript/sugar_grp_yui2.js'), $this);
div.moduleTitle {
height: 10px;
	}
</style>
';
?>




<?php 
echo smarty_function_sugar_getscript(array('file' => "cache/include/javascript/sugar_grp_yui_widgets.js"), $this);
?>

<?php 
echo smarty_function_sugar_getscript(array('file' => 'include/javascript/dashlets.js'), $this);
?>


<?php 
echo $this->_tpl_vars['chartResources'];
?>

<?php 
echo $this->_tpl_vars['mySugarChartResources'];
?>


<script type="text/javascript">
var activePage = <?php 
echo $this->_tpl_vars['activePage'];
<?php

/* Smarty version 2.6.29, created on 2016-02-03 01:53:02
   compiled from modules/Calendar/tpls/main.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'sugar_getjspath', 'modules/Calendar/tpls/main.tpl', 41, false), array('function', 'sugar_getscript', 'modules/Calendar/tpls/main.tpl', 42, false), array('function', 'counter', 'modules/Calendar/tpls/main.tpl', 101, false))), $this);
?>
<link type="text/css" href="<?php 
echo smarty_function_sugar_getjspath(array('file' => "modules/Calendar/Cal.css"), $this);
?>
" rel="stylesheet" />
<?php 
echo smarty_function_sugar_getscript(array('file' => "modules/Calendar/Cal.js"), $this);
?>

<script type="text/javascript">

	<?php 
echo '
	YAHOO.util.Event.onDOMReady(function(){
		dom_loaded = true;
	});
	
	function check_cal_loaded(){
		return (typeof cal_loaded != \'undefined\' && cal_loaded == true && typeof dom_loaded != \'undefined\' && dom_loaded == true);
	}
	';
?>

	
	SUGAR.util.doWhen(check_cal_loaded, function()<?php 
';
    ?>

<?php 
}
?>
<input accesskey=""  tabindex="0"  id="duration_hours" name="duration_hours" type="hidden" value="<?php 
echo $this->_tpl_vars['fields']['duration_hours']['value'];
?>
">
<input accesskey=""  tabindex="0"  id="duration_minutes" name="duration_minutes" type="hidden" value="<?php 
echo $this->_tpl_vars['fields']['duration_minutes']['value'];
?>
">
<?php 
echo smarty_function_sugar_getscript(array('file' => "modules/Meetings/duration_dependency.js"), $this);
?>

<script type="text/javascript">
                    var date_time_format = "<?php 
echo $this->_tpl_vars['CALENDAR_FORMAT'];
?>
";
                    <?php 
echo '
                    SUGAR.util.doWhen(function(){return typeof DurationDependency != "undefined" && typeof document.getElementById("duration") != "undefined"}, function(){
                        var duration_dependency = new DurationDependency("date_start","date_end","duration",date_time_format);
                        initEditView(YAHOO.util.Selector.query(\'select#duration\')[0].form);
                    });
                    ';
?>