//Copyright 2002-2010, My Great Software, Inc. All rights reserved.
//x*x*xStart Encodex*x*
/*jsl:import ../CD/Sniffer/browser.js*/

// Warning: This source code is the property of My Great Software, Inc.
// and is protected by copyright law and international treaties.
// Unauthorized reproduction or distribution of this source code, or any
// portion of it, may result in severe civil and criminal penalties, and
// will be prosecuted to the maximum extent possible under law.

// ug/Corporate/corp.js; 7/28/7-1.1p; 8/10/8a; 1/2/9p; 11/30/10
// this file is NOT encoded.

// 1/2/9-7.1p

// [codebase="Corporate/flash/swflash.cab#version=6,0,65,0"] 
// [pluginspage="http://www.macromedia.com/go/getflashplayer"]
// flash [n/s on ipod/iphone]
// [ff] displays prompt for plugin install; safari: nothing.

// ~!@# [ff]/safari: no cssDiv support; 1/2/9p
// ~!@# index.h: table.100%

// 3/31/10-7.2p; merge browser.j

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// 3/7/8m from index.html
// 3/23/9-10px app@Version

//3/31/10px var fMobile6 = "msie 6.0; windows ce; iemobile";		// [verify@ie]

//3/31/10px var S_N_Fc = -1;		// 3/23/9-11.4p

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

var m_aCorp = new Corporate();

var g_lTimerId = 0;
var g_lDiv = 0;

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

function Corporate()
{
	//11/29/10 n/r x this.sUserAgent = navigator.userAgent.toLowerCase();

	// 11/29/10-3.3p

	this.bMobile = m_aBrowser.EnterHere();
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

/*@if (@DebugMode)
Corporate.prototype.ZoomLoad = A_ZoomLoad;	//[#2]
Corporate.prototype.Contact = A_Contact;	//[#2]
@end@*/

Corporate.prototype.TwoClick = A_TwoClick;
Corporate.prototype.Zoom = A_Zoom;
Corporate.prototype.Load = A_Load;
Corporate.prototype.VerifyIE = A_VerifyIE;
Corporate.prototype.EnterHere = A_EnterHere;
Corporate.prototype.ContactCP = A_ContactCP;

Corporate.prototype.StartTimer = A_StartTimer;
Corporate.prototype.EndTimer = A_EndTimer;

//Corporate.prototype.
//Corporate.prototype.

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// 10/31/10-12.3p
// slogans.h.ev.load.

function A_StartTimer()
{
	// 11/30/10-4p: 

	var bInterval = m_aBrowser.HasClearInterval();

	if (! bInterval)
	{
		return true;
	}

	// n>

	this.EndTimer();

	// n>

	g_lTimerId = window.setInterval("cb_Slogans()", 5000);

//a(g_lTimerId);

	// q>

	return true;
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// 10/31/10-12.3p
// slogans.h.ev.unload.

function A_EndTimer()
{
	// n>

	if (g_lTimerId != 0)		//11/30/10x null)
	{
		window.clearInterval(g_lTimerId);		// [q] ~!x@# 11/29/10p
		g_lTimerId = 0;
	}

	// q>

	return true;
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// 10/31/10-12.3p

function cb_Slogans()
{
	// n>

	if (g_lTimerId == 0)
	{
		return;
	}

	// hide

	m_aBrowser.Toggle("divSlogan" + g_lDiv, false);

	// n>

	g_lDiv++;

	if (g_lDiv >= 17)
	{
		g_lDiv = 0;
	}

	// show

	m_aBrowser.Toggle("divSlogan" + g_lDiv, true);

	// q> void
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// 3/23/9-9.2p; ix.h
//.ancEnter.click();

function A_TwoClick()
{
	var bGecko = m_aBrowser.IsGecko();

	if (! bGecko)
	{
		// a>
		// 3/23/9.3p accessible only from htm [by id] b/c doc.write-d !; wa: gebi.

		var oAnchor = m_aBrowser.GEBI("ancEnter");		//11/29/10px document.getElem@entById("ancEnter");
		oAnchor.click();
	}

	// q> void
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// 3/23/9-9.2p; ix.h

//3/31/10px function V_IsGecko()	// [#2]. see browser.j
//3/31/10px {
//3/31/10px 	return (this.sUserAgent.indexOf("gecko") > S_N_Fc);
//3/31/10px }

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// 1/2/9-6.5p; root.index.html-2-asp
// 1/2/9-7.2p: see toggle divs

/*@if (@DebugMode)
//.<%@ Language=VBScript %>
//.<% 
//.option explicit

//.Dim sUserAgent '| As String
//.sUserAgent = Request.ServerVariables.Item("HTTP_USER_AGENT")

//.Dim bIPhone '| As Boolean
//.bIPhone = (InStr(1, sUserAgent, "CPU iPhone", vbTextCompare) > 0)
//.%>
@end@*/

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// 2/2/9-1.45p
// fails in t.zoom; need initial zoom style.

/*@if (@DebugMode)
function A_ZoomLoad(oPara)		//[#2]
{
	// n>

	var bGecko = m_aBrowser.IsGecko();

	if (! bGecko)
	{
		// a>

		oPara.style.zoom = '50%';
	}

	// q> void
}
@end@*/

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// 7/4/8-10.3a
// 2/1/9m [ie8]
// admin.h; viewer.h
// v.css; 8/21/9
//x .imgZoom { border-color:#008000; border-style:dotted; border-width: 1px; }
// vs. img wrap in anchor tag
// [ie8] reflow's; 10/7/9p: p1: p-2-img.

function A_Zoom(oPara)
{
	// 2/2/9-1.3p

	var bGecko = m_aBrowser.IsGecko();

	if (! bGecko)
	{
		// a>

		oPara.style.zoom = parseInt(oPara.style.zoom, 10) + 50 + '%';
	}

	// q> void
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// index.h.ev.load.
// 1/2/9-8.5p; i.h is not a frame; rid script.for syntax.
// didn't matter before when didn't reference a variable.
//.   <!-- [ id="tblFlash"] -->
// 3/23/9-11.3p gt 0 - 2 - gt -1
// fka A_CorpLoad

function A_Load()
{
	// a>

	if (m_aBrowser.CorpLoad())
	{
		window.status = "The MGSi wheel! Click the Enter Here glyph or double-click outside the wheel to go to the Welcome webpage.";
	}

	// 1/2/9-7.2p

	var bIphone = m_aBrowser.IsIPhone();		// 11/26/10 ipad.
//qa bIphone = true;

	// 11/29/10-3.2p; any mobile device.
	// n>

	if (bIphone || this.bMobile)		// and not Q see below.
	{
		// 11/29/10-10p; if (m_aBrowser.IsSmartPhone5()) -- no gebi; doc.all

//a('iphone');

		// 3/24/9-2p
		//spnFlash.style.display = "none";		// g.ebi
		//spnIPhone.style.display = "block";		// ge.bi

		// type error: null value; 3/23/9p: if strict ~!@#

		m_aBrowser.Toggle("spnFlash", false);
		m_aBrowser.Toggle("spnIPhone", true);

		//11/29/10-10p [2]

		//[2] var oSpan = c_GEBI("spnFlash");	// 11/29/10px document.getElem@entById
		//[2] oSpan.style.display = "none";	// hide

		//[2] oSpan = c_GEBI("spnIPhone");	// 11/29/10px document.getEleme@ntById
		//[2] oSpan.style.display = "block";	// show
	}

	// 1/10/9-4.45p

/*@if (@DebugMode)
	var bGecko = m_aBrowser.IsGecko();

	if (bGecko)
	{
		//d.n.r. tblFlash.style.width = "100%";
	}
@end@*/

	// q>

	return true;
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// auto*.htm
// all.h override
// 3/25/9p fka mgVerifyIE

function A_VerifyIE()
{
	// a>

	if (m_aBrowser.Tutorial(true))		// 3/31/10-
	{
		ancStartDemo.click();       // [ff] [lint];
	}

	// q> void.
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// index.html [flash page.]

function A_EnterHere()
{
	// a> 3/31/10-

	//11/29/10x var bMobile = m_aBrowser.EnterHere();

	// b>

	var sHref = "default";
	if (this.bMobile) sHref = "Home";

	// b-1> x tabindex="1"; id="imgEnter"
	// 6/27/8-2.4p; border='0' 
	// doc.write results.

	var sReturn = "<a href='Corporate/" + sHref + ".htm' id='ancEnter'>" +
		"<img alt='Enter' src='Corporate/images/btnEnter.gif' width='85' height='19'/>" +
		"</a>";

	// q>

	return sReturn;
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// d.w.; c/b: corp.contact.h via d.w.;  vs. cd.setup.h. -- sniffer; p1 8/9/8-11.3p ancContact;
// #2; 8/9/8-11.5p

/*@if (@DebugMode)
function A_Contact()	//x oAnchor
{
	// a>

	var sHref = "<a href='mail" + 
"to:info1" +
"@" +
"MyGreatSoftware.com?subject=My Great Software, Inc. products and services&body=Information about MGSi" +
"'>My Great Software, Inc.</a>";

	// b> 8/9/8p

	//x oAnchor.href = sHref;
	//x oAnchor.click();       // [f.f]

	// q>

	//x return sHref;
}
@end@*/

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// cover page [2].
//.<script type="text/javascript">document@.write(V_ContactCP);</script>
//  corp.contact.h.ancEmail
//.<!-- [ href="javascript: V_ContactCP(anc2); javascript:] -->
//.<!-- [<script type='text/javascript'>document@.write(V_ContactCP());</script>] -->
//.<!-- [type='text/javascript'>document@.write(V_ContactCP());</script>"] -->
//.<!-- [id="anc2"; id="anc1" ] -->
// contact.h
//.x<!-- [<script type="text/javascript">document@.write(V_Contact());</script>] -->
//.<!-- a href="javascript:V_ContactCP(ancEmail);">wendyb@MyGreatSoftware.com</a -->
//.<a id="ancEmail"></a>
// covpage.h
//.<a id="ancEmail"></a>
// n.n. <a href="javascript:V_ContactCP(ancEmail);">Wendy A. Brooks</a>
//.<a href="javascript:V_ContactCP(ancEmail);">wendyb@MyGreatSoftware.com</a>

function A_ContactCP()		//8/9/8px oAnchor
{
	// a> x "<a href='" + 
	
	var sHref = "mail" + 
"to:info1" +
"@" +
"MyGreatSoftware.com?subject=The MGSi product&body=Information about MGSi";

	// 8/10/8-12.1a; 1/2/9-7.2px wendyb

var sWendy = "info" + 
"@" + 
"MyGreatSoftware.com";

	var sReturn = "<a href='" + sHref + "'>" + sWendy + "</a>";

	// q>

	return sReturn;

	// b>

	//8/9/8px 
	//.oAnchor.href = sHref;
	//8/9/8px 
	//.oAnchor.click();       // [f.f]
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

//.<!-- link rel="stylesheet" type="text/css" href="RowOverCorp.@css" -->
//x <!-- link rel="stylesheet" type="text/css" href="RowOverCorp.@css" -->
//x <!-- link rel="stylesheet" type="text/css" href="RowOverCorp.@css" -->

// 3/24/9a all.h

//.<!-- !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transi@tional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-trans@itional.dtd" -->
//.<!-- [ xmlns="http://www.w3.org/1999/xhtml"] -->

// v.c; -* see w.time.css *-

//..time {behavior: url(#default#time2);}		-* [h4] behavior *-

//.<meta name="keyw@ords" content="MGSi, Database driven, Document Management, Workflow Management, Imaging, Application Development, Work Order System"/>
//.<meta name="description" content=""/>

// 4/22/10-1.2p; ug.indexug.h

//.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
//.<html>

// 5/14/10m
// slog.h

//. strict.dtd: 50 percent, 7/1/8p; 7/2/8.; dtd 7/4/8p;
//.    <!-- [h.4].h; height="50%"; x tblHeight; -->

// home.h

//.<!-- big><f.ont face="Viner Hand ITC" color="#800000" --><!-- /f.ont></big -->

//.  <!-- [h4a].w; width="50%" -->

// webauto

//.<!-- + [bordercolor="red"  bgcolor="#ffff66"] + [ ] -->

// webdef

//. [ bordercolor="red" bgcolor="#ffff66"] 

//3/31/10px Corporate.prototype.IsGecko = V_IsGecko;

// 10/31/10-12.2p; slogans.h

//.<!-- + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + -->

//.<style type="text/css">
//..tblHeight { height: 50%; }
//.</style>

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//. div.dur [18]; time.css; head.text [import] text is not allowed;

//. xmlns:t="urn:schemas-microsoft-com:time"

//.<!-- + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + -->
//.<!-- chm/hhp: hhc3004; [vs8] 7/25/7.;  + -->

//.<?import namespace="t" implementation="#default#time2"?>
//.<link rel="stylesheet" type="text/css" href="../CD/Sniffer/time.css"/>

//.   <!-- [h4]. 't' n/s; seq; dur. -->

//.<t:seq id="seqAd" repeatcount="indefinite">
//.<div class="time" dur="5">Delivering an enterprise software solution that will complement the way you do business 
//.today and tomorrow, plus empowers users to get their jobs done more effectively and accurately 
//.without changing the way you do business.</div>
//.<div class="time" dur="5">MGSi: an Open and Configurable Framework that Adapts to You...</div>
//.<div class="time" dur="5">Providing Enterprise Solutions</div>
//.<div class="time" dur="5">You configure MGSi workflows, you don't program workflows...</div>
//.<div class="time" dur="5">Where are your documents today?</div>
//.<div class="time" dur="5">Our success is yours too!!!</div>
//.<div class="time" dur="5">Your Company and Our Solutions = Complete Customer Satisfaction</div>
//.<div class="time" dur="5">Secure and Trustworthy Enterprise Solutions...</div>
//.<div class="time" dur="5">Today's Solutions for Today's Businesses</div>
//.<div class="time" dur="5">Superior Products and Superior Solutions...</div>
//.<div class="time" dur="5">Feature Rich and Complexity Free...</div>
//.<div class="time" dur="5">Helping you to achieve your business goals...</div>
//.<div class="time" dur="5">Documents and Workflow Managed by...</div>
//.<div class="time" dur="5">Your business information at your fingertips!</div>
//.<div class="time" dur="5">Total Cost of Ownership that you can count on...</div>
//.<div class="time" dur="5">Your Business Information...Anytime and Anywhere, not just in the office...</div>
//.<div class="time" dur="5">MGSi - the Future of Enterprise Solutions!</div>
//.</t:seq>

// all.h; head.text [import]; seq; dur [~20]; 

//. xmlns:t="urn:schemas-microsoft-com:time"

//.<!-- + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + -->

//.<?import namespace="t" implementation="#default#time2"?>
//.<link rel="stylesheet" type="text/css" href="../CD/Sniffer/time.css"/>

// 11/24/10- def.h

//.<!-- [h.4] frameborder="1" -->
//.<!-- [h4] target="main"; 6/30/8p; 7/1/8p; 220,*; x; dtd; -->
//.<!-- [7/2/8 frameborder="1"]; 7/20/8a; "http://www.w3.org/TR/html4/frameset.dtd"; -->

// wrong ipod error: noframes element inside frameset
