<!--

****************************************************************************  
*  Description: Layout for home page                                       *
*  Created: 07/17/2006                                                     *
****************************************************************************
*  07/17/2006 Created                                                      *    
****************************************************************************

-->
<!-- Add Javascript library for module -->
<script type="text/javascript" src="javascript/modules/home.js"></script>
<table border="0" width="100%">
<tr>
	<td width="50%" valign="top">
		<table border="0" width="100%">
		  <tr>
		  <td>
			<div id="announcement_column">
				<h3>
					<a href="index.php?fuse={ADMINFUSE}&action={ADMINACTION}">{LANGUAGE_LATESTANNOUNCEMENTS}</a>
					<a href="rssAnnouncements.php"><img src="images/rss.gif" width="16" height="11" border="0"></a>
				</h3>
				<div id="announcement_blog">{ANNOUNCEMENTS}</div>
			</div>
		  </td>
		  </tr>
		</table>
	</td>

	<td align="center" width="50%" valign="top">
		<div id='dashboard_navcontainer'>
			<ul id='dashboard_navlist'>
				<li><a href="javascript:ClickDashBoardTab('div_quickgraphs','tab_quickgraphs', {ACTIONTOGGLEGRAPHS}, false);" id='tab_quickgraphs' {QUICKGRAPHSCURRENT}>&nbsp;{LANGUAGE_GRAPHSNAPSHOTS}&nbsp;</a></li>
				<li><a href="javascript:ClickDashBoardTab('div_servicestats','tab_servicestats', {ACTIONSERVICESSTATUS}, true);" id='tab_servicestats' {SERVICESSTATUSCURRENT}>&nbsp;{LANGUAGE_SERVICESSTATUS}&nbsp;</a></li>
				<li><a href="javascript:ClickDashBoardTab('div_serverinfo','tab_serverinfo', {ACTIONSERVERINFO}, true);" id='tab_serverinfo' {SERVERINFOCURRENT}>&nbsp;{LANGUAGE_SERVERINFO}&nbsp;</a></li>
			</ul>
		</div>

		<div id="div_quickgraphs" style="display:{DISPLAYQUICKGRAPHS}">
			<img src="index.php?fuse={REPORTFUSE}&graph=newcustomers&userid={USERID}&showvalues={SHOWVALUES}&showlegend={SHOWLEGEND}" id="quickgraph" />
			<p>
				<form name="reportswitch">
					<b>{LANGUAGE_GRAPH}</b>: 
					<select name="newreport" onChange="switchReport(this,'{REPORTFUSE}','{USERID}');">
					<option value="newcustomers" selected>&nbsp;{LANGUAGE_NEWCUSTOMER}&nbsp;&nbsp;
					<option value="newtickets">&nbsp;{LANGUAGE_TICKETSOPENED}&nbsp;&nbsp;
					</select>
					<input name="showvalues" onClick="switchReport(document.forms['reportswitch'].elements['newreport'],'{REPORTFUSE}','{USERID}');" type="checkbox" style="position:relative; left:3px; top:3px" {SHOWTOTLSCHECKED}> {POPUPVIEWCURRENTVALUES}
					&nbsp;
					<input name="showlegend" onClick="switchReport(document.forms['reportswitch'].elements['newreport'],'{REPORTFUSE}','{USERID}');" type="checkbox" style="position:relative; left:3px; top:3px" {SHOWLEGENDCHECKED}> {POPUPVIEWGRAPHLEGEND}
				</form>
			</p>
		</div>

		<div id="div_servicestats" style='display:{DISPLAYSERVICES};'></div>
		<!-- BEGIN DYNAMIC BLOCK: servicesonload -->
			<script type="text/javascript">
				onLoadFunctions.push(function() {ClickDashBoardTab('div_servicestats', 'tab_servicestats', {ACTIONSERVICESSTATUS}, true);})
			</script>		
		<!-- END DYNAMIC BLOCK: servicesonload -->		

		<div id="div_serverinfo" style='display:{DISPLAYSERVERINFO};'></div>
		<!-- BEGIN DYNAMIC BLOCK: serverinfoonload -->
			<script type="text/javascript">
				onLoadFunctions.push(function() {ClickDashBoardTab('div_serverinfo', 'tab_serverinfo', {ACTIONSERVERINFO}, true);})
			</script>
		<!-- END DYNAMIC BLOCK: serverinfoonload -->			
	</td>

</tr>
</table>

<div class="clearline"></div>

<ul id="maintab" class="shadetabs">
<!-- BEGIN DYNAMIC BLOCK: snapshottab -->
	<li class="{SNAPSHOTTAB_CLASS}"><a href="#" rel="ajaxcontentarea">{SNAPSHOTTAB_NAME} ({SNAPSHOTTAB_COUNT})</a></li>
<!-- END DYNAMIC BLOCK: snapshottab -->
<li class="selected"><a href="#default2" rel="ajaxcontentarea">Awaiting for activation (2)</a></li>
<li><a href="external.htm" rel="ajaxcontentarea">Uninvoiced Work (22)</a></li>
<li><a href="external2.htm" rel="ajaxcontentarea">Outstanding invoices (0)</a></li>
<li><a href="external3.htm" rel="ajaxcontentarea">Credit card validation (14)</a></li>
</ul>

<div id="activesnapshot"></div>

<script type="text/javascript">
	onLoadFunctions.push(function() {ShowSnapShot('{HOMEFUSE}','{CURRENTSNAPSHOTACTION}','{SUBACTION}',{CURRENTSNAPSHOTUSERID});})
</script>