function DisplayNewsArea()
{
// ITEM 1 //

	document.write("<span class=\"newsdate\">1/16/10</span><br><a href=\"http://www.teebo.com/tabbed-mdi.htm\" class=\"newsitem\">MDI Tabs 2.0 Released.</a><br><br>");


	document.write("<span class=\"newsdate\">5/19/09</span><br><a href=\"http://www.teebo.com/aero-components.htm\" class=\"newsitem\">Windows 7 Components Coming Soon...</a><br><br>");

	document.write("<span class=\"newsdate\">1/14/08</span><br><a href=\"http://www.teebo.com/html-label.htm\" class=\"newsitem\">HTML Label Released.</a><br><br>");


//	document.write("<span class=\"newsdate\">4/5/07</span><br><a href=\"http://www.teebo.com/tssBalloonTip.htm\" class=\"newsitem\">tssBalloonTip Updated. New features and Vista support.</a><br><br>");

	// ITEM 1 //
//	document.write("<span class=\"newsdate\">1/28/07</span><br><a href=\"http://www.teebo.com/product-updates.htm\" class=\"newsitem\">Important updates for several products.</a><br><br>");

	// ITEM 2 //
	//document.write("<span class=\"newsdate\">12/17/06</span><br><a href=\"http://www.teebo.com/progressbar-xp.htm\" class=\"newsitem\">ProgressBarXP now supports VS.NET 2005</a><br><br>");


	// ITEM 3 //
	//document.write("<span class=\"newsdate\">6/4/06</span><br><a href=\"http://www.teebo.com/OfficeMenu.htm\" class=\"newsitem\">OfficeMenu 1.7 adds VS2005 and Office 2007 menu styles</a><br><br>");
	

	// POST NEWS BREAKS //
	document.write("<br><br>");
	
	// FOLLOW LINK
	document.write("<a href=\"http://www.teebo.com/news.htm\" class=\"orange\"><strong>&raquo; Older News...</strong></a>");
};

function SpecialContent()
{
	document.write("<b><big>MegaPack Bundle</big><br>BIG</b> Savings!<br><br>");
	document.write("Get all of our ActiveX controls for only <b>$99</b>... ");
	document.write("<br><br>");
	// FOLLOW LINK
	document.write("<a href=\"http://www.teebo.com/special-offers.htm\" class=\"orange\"><strong>&raquo; Learn More...</strong></a>");
};
		
function DisplayCopyright()
{
	document.write("<span class=\copyright\">Copyright &copy; 2010 Teebo Software Solutions, LLC. All Rights Reserved.&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;");
	
		
	document.write("[&nbsp;<a href=\"http://www.teebo.com/privacy.htm\" class=\"wlink\">Privacy Policy</a>&nbsp;|&nbsp;");
	document.write("<a href=\"http://www.teebo.com/terms.htm\" class=\"wlink\">Terms of Use</a>&nbsp;|&nbsp;");
	document.write("<a href=\"http://www.teebo.com/licensing.htm\" class=\"wlink\">Licensing</a>&nbsp;]</span>");

};

function DisplayHeaderMiddle()
{
	document.write("<div style=\"float:right;\"><a href=\"http://www.teebo.com/downloads.htm\" title=\"Free Product Downloads\"><img src=\"http://www.teebo.com/img/downloads.png\"></a>&nbsp;&nbsp;<a href=\"http://www.teebo.com/product-updates.htm\" title=\"Product Updates for Registered Customers\"><img src=\"http://www.teebo.com/img/updates.png\"></a>&nbsp;&nbsp;<a href=\"http://www.teebo.com/faq.htm\" title=\"Frequently Asked Questions\"><img src=\"http://www.teebo.com/img/faq.png\"></a>&nbsp;&nbsp;<a href=\"http://www.teebo.com/tssrss.xml\" title=\"Subscribe to our RSS feed for news and updates!\"><img src=\"http://www.teebo.com/img/rss_sub.png\"></a>&nbsp;&nbsp;</div>");
};

function DisplayOverheadBarContent()
{
	document.write("&nbsp;");
};

function LeftCol()
{
//	DisplayProductContent(iP);
	DisplaySpecialContent();
	DisplayNewsContent();
//	DisplayTestimonials();
};

function LeftColProd(iP)
{
	DisplayProductContent(iP);
	DisplaySpecialContent();
//	DisplayTestimonials();
};

function DisplayProductContent(iP2)
{
	
	document.write("<tr><td height=\"25\" background=\"http://www.teebo.com/img/ordernow.png\" class=\"sidenewshdr\" style=\"padding:0 10 0 23; \"></td></tr>");
	document.write("<tr><td height=\"25\"><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.write("<tr><td valign=\"top\"><img src=\"http://www.teebo.com/img/colfill2.gif\" width=\"12\" height=\"146\" alt=\" \"></td>");
	document.write("<td valign=\"top\" style=\"background-image:url(http://www.teebo.com/images/trans.gif); background-repeat:repeat-x; padding:10;\"class=\"leftside\">")
	
	FillProductContent(iP2);

	document.write("</td></tr></table></td></tr>");      
};

function FillProductContent(iP3)
{
	document.write("<span class=\"newsdate\">Price:</span><br><span class=\"price\">" +  ToUS(GetProductPrice(iP3)) + "</span><br><br><br>");
	document.write("<a href=\"" + GetProductLink(iP3,0) + "\" title=\"Purchase using Plimus\"><img src=\"http://www.teebo.com/img/testbutton1.gif\"</a><br><br>");
	//document.write("<a href=\"" + GetPayPalLink(iP3) + "\" title=\"Purchase using PayPal\"><img src=\"http://www.teebo.com/img/testbutton2.gif\"</a><br>");
	
	GetPayPalLink(iP3);
	
	document.write("<br>");
	document.write("<a href=\"" + GetProductDownload(iP3) + "\"><strong>&raquo; Try It Now...</strong></a>");
};


function GetProductPrice(iProduct)
{
	switch (iProduct)
	{
	case 61817:	// OfficeMenu
		return 35.00;
	case 69314: // OfficeMDI Tabs
		return 35.00;
	case 70166:	// ProgressBarXP
		return 30.00;
	case 65784:	// PopupNotify
		return 25.00;
	case 71147:	// ShortcutBar
		return 35.00;
	case 60547:	// TaskPaneXP
		return 45.00;
	case 59420:	// tssBalloontip
		return 30.00;
	case 55532:	// tssFileDragDrop
		return 20.00;
	case 55191:	// tssHookDisc
		return 20.00;
	case 55193:	// tssSubst
		return 20.00;
	case 59612:	// tssTrayNotify
		return 20.00;
	case 77123:	// ExplorerBarXP 2.0
		return 35.00;
	case 69414:	// MegaPackX3
		return 99.00;
	case 1663261: // MegaPackX4
		return 129.00
	case 1663262: // MegaPackX5
		return 149.00
	case 1686376: // SimpleAeroGlass
		return 25.00;
	case 00001: // Subscription
		return 249.00;
	case 80000: // HtmlLabel
		return 30.00;
	default:
		return 0.00;
	}
};

function RsToPlimus(iProduct)
{
	switch (iProduct)
	{
	case 61817: // OfficeMenu
		return "1663235"
		break;
	case 69314: // OfficeMDI Tabs
		return "2634564";
		break;
	case 70166:	// ProgressBarXP
		return "1663253";
		break;
	case 65784:	// PopupNotify
		return "1663236";
		break;
	case 71147:	// ShortcutBar
		return "1663254";
		break;
	case 77123: // ExplorerBarXP 2.0
		return "1654489";
		break;
	case 60547:	// TaskPaneXP
		return "1654489";
		break;
	case 59420:	// tssBalloontip
		return "1663255";
		break;
	case 55532:	// tssFileDragDrop
		return "1663256";
		break;
	case 55191:	// tssHookDisc
		return "1663257";
		break;
	case 55193:	// tssSubst
		return "1663258";
		break;
	case 59612:	// tssTrayNotify
		return "1663259";
		break;
	case 69414:	// MegaPackX3
		return "1663260";
		break;
	case 80000: // HTML Label
		return "1731300";
		break;
	default:
		return iProduct;

	}
}

function GetProductLink(iProduct, iType)
{
	// iType 0=REGSOFT 1=PAYPAL

	// http://www.regsoft.net/purchase.php3?productid=71147
	
	if (iType==0)
	{
		// RegSoft
		//var sReturn = "http://www.regsoft.net/purchase.php3?productid=" + iProduct;

		// Plimus
		var sReturn = "https://www.plimus.com/jsp/buynow.jsp?contractId=" + RsToPlimus(iProduct);
		return sReturn;
	}
	
	var sPayPal = "";
	
	switch (iProduct)
	{
	case 61817:	// OfficeMenu
		sPayPal="";
		break;
	case 69314: // OfficeMDI Tabs
		sPayPal="";
		break;
	case 70166:	// ProgressBarXP
		sPayPal="";
		break;
	case 65784:	// PopupNotify
		sPayPal="";
		break;
	case 71147:	// ShortcutBar
		sPayPal="";
		break;
	case 60547:	// TaskPaneXP
		sPayPal="";
		break;
	case 59420:	// tssBalloontip
		sPayPal="";
		break;
	case 55532:	// tssFileDragDrop
		sPayPal="";
		break;
	case 55191:	// tssHookDisc
		sPayPal="";
		break;
	case 55193:	// tssSubst
		sPayPal="";
		break;
	case 59612:	// tssTrayNotify
		sPayPal="";
		break;
	case 69414:	// MegaPackX3
		sPayPal="";
		break;
	default:
		sPayPal="";
	}
	return sPayPal;
};

function GetProductName(iProduct)
{	
	switch (iProduct)
	{
	case 61817:	// OfficeMenu
		return "OfficeMenu";
	case 69314: // OfficeMDI Tabs
		return "MDI Tabs 2.0";
	case 70166:	// ProgressBarXP
		return "ProgressBarXP";
	case 65784:	// PopupNotify
		return "PopupNotify";
	case 71147:	// ShortcutBar
		return "ShortcutBar";
	case 60547:	// TaskPaneXP
		return "TaskPaneXP";
	case 59420:	// tssBalloontip
		return "tssBalloonTip";
	case 55532:	// tssFileDragDrop
		return "tssFileDragDrop";
	case 55191:	// tssHookDisc
		return "tssHookDisc";
	case 55193:	// tssSubst
		return "tssSubst";
	case 59612:	// tssTrayNotify
		return "tssTrayNotify";
	case 77123: // ExplorerBarXP
		return "ExplorerBarXP";
	case 69414:	// MegaPackX3
		return "MegaPack X3";
	case 1663261:	// MegaPackX4
		return "MegaPack X4";
	case 1663262 :	// MegaPackX5
		return "MegaPack X5";
	case 1686376 :
		return "SimpleAeroGlass";
	case 00001:	// Subscription
		return "Subscription License";
	case 80000: // HTML Label
		return "HTML Label";
	default:
		return "TSS Product/Service";
	}
};

function GetProductDownload(iProduct)
{	
	switch (iProduct)
	{
	case 61817:	// OfficeMenu
		return "http://www.teebo.com/Downloads/Demos/tssOfficeMenuDemo.msi";
	case 69314: // OfficeMDI Tabs
		return "http://www.teebo.com/Downloads/Demos/MDITabs2_demo.exe";
	case 70166:	// ProgressBarXP
		return "http://www.teebo.com/Downloads/Demos/ProgressBarXPDemo.msi";
	case 65784:	// PopupNotify
		return "http://www.teebo.com/Downloads/Demos/PopupNotifyDemo.msi";
	case 71147:	// ShortcutBar
		return "http://www.teebo.com/Downloads/Demos/OutlookShortcutBarDemo.msi";
	case 60547:	// TaskPaneXP
		return "http://www.teebo.com/Downloads/Demos/TaskPaneXPDemo.msi";
	case 59420:	// tssBalloontip
		return "http://www.teebo.com/Downloads/Demos/tssBalloonTipDemo.msi";
	case 55532:	// tssFileDragDrop
		return "http://www.teebo.com/Downloads/Demos/tssFileDragDropDemo.msi";
	case 55191:	// tssHookDisc
		return "http://www.teebo.com/Downloads/Demos/tssHookDiscDemo.msi";
	case 55193:	// tssSubst
		return "http://www.teebo.com/Downloads/Demos/tssSubstDemo.msi";
	case 59612:	// tssTrayNotify
		return "http://www.teebo.com/Downloads/Demos/tssTrayNotifyDemo.msi";
	case 77123:	// ExplorerBarXP
		return "http://www.teebo.com/Downloads/Demos/ExplorerBarXP2Demo.exe";
	case 1686376:
		return "http://www.teebo.com/Downloads/Demos/AeroGlassDemo.exe";
	case 80000:
		return "http://www.teebo.com/Downloads/Demos/HtmlLabelDemo.exe";

	default:
		return "http://www.teebo.com";
	}
};


function GetPayPalLink(iP)
{

	document.write("<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\" target=\"_blank\"><input type=\"hidden\" name=\"cmd\" value=\"_xclick\">");
	document.write("<input type=\"hidden\" name=\"business\" value=\"sales@teebo.com\">");
	document.write("<input type=\"hidden\" name=\"item_name\" value=\"" + GetProductName(iP) + "\">");
	document.write("<input type=\"hidden\" name=\"item_number\" value=\"" + iP + "\">");
	document.write("<input type=\"hidden\" name=\"amount\" value=\"" + GetProductPrice(iP) + "\">");
	document.write("<input type=\"hidden\" name=\"no_note\" value=\"1\">");
	document.write("<input type=\"hidden\" name=\"undefined_quantity\" value=\"1\">");
	document.write("<input type=\"hidden\" name=\"page_style\" value=\"Primary\">");
	document.write("<input type=\"hidden\" name=\"return\" value=\"http://www.teebo.com/paypalpayment.htm\"><input type=\"hidden\" name=\"cancel_return\" value=\"http://www.teebo.com/cancel.htm\">");
	document.write("<input type=\"hidden\" name=\"currency_code\" value=\"USD\">");
	document.write("<input type=\"image\" src=\"http://www.teebo.com/img/testbutton2.gif\" border=\"0\" name=\"submit\" alt=\"Purchase using PayPal\">");
	document.write("</form>");
//	<input type="hidden" name="no_note" value="1">

};

function GetPayPalLinkText(iP)
{

	document.write("<form style=\"display: inline\" action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\" target=\"_blank\"><input type=\"hidden\" name=\"cmd\" value=\"_xclick\">");
	document.write("<input type=\"hidden\" name=\"business\" value=\"sales@teebo.com\">");
	document.write("<input type=\"hidden\" name=\"item_name\" value=\"" + GetProductName(iP) + "\">");
	document.write("<input type=\"hidden\" name=\"item_number\" value=\"" + iP + "\">");
	document.write("<input type=\"hidden\" name=\"amount\" value=\"" + GetProductPrice(iP) + "\">");
	document.write("<input type=\"hidden\" name=\"no_note\" value=\"1\">");
	document.write("<input type=\"hidden\" name=\"undefined_quantity\" value=\"1\">");
	document.write("<input type=\"hidden\" name=\"page_style\" value=\"Primary\">");
	document.write("<input type=\"hidden\" name=\"return\" value=\"http://www.teebo.com/paypalpayment.htm\"><input type=\"hidden\" name=\"cancel_return\" value=\"http://www.teebo.com/cancel.htm\">");
	document.write("<input type=\"hidden\" name=\"currency_code\" value=\"USD\">");
	document.write("<input type=\"image\" src=\"http://www.teebo.com/img/pp.gif\" border=\"0\" align=texttop name=\"submit\" alt=\"Purchase using PayPal\">");
	document.write("</form>");
//	<input type="hidden" name="no_note" value="1">

};

function DisplaySpecialContent()
{

//	if (Math.floor(Math.random()* 2) == 1)
	if (Math.floor(Math.random()* 10) >= 3)
	{

		document.write("<tr><td height=\"25\" background=\"http://www.teebo.com/img/offers.png\" class=\"sidenewshdr\" style=\"padding:0 10 0 23; \">&nbsp;</td></tr>");
		document.write("<tr><td height=\"25\"><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
		document.write("<tr><td valign=\"top\"><img src=\"http://www.teebo.com/img/s_colfill2.gif\" width=\"12\" height=\"146\" alt=\" \"></td>");
		
//		document.write("<td valign=\"top\" style=\"background-image:url(http://www.teebo.com/images/s_colfill1.gif); background-repeat:repeat-x; padding:10;\"class=\"leftside\">");
		document.write("<td valign=\"top\" style=\"background-image:url(http://www.teebo.com/images/trans.gif); background-repeat:repeat-x; padding:10;\"class=\"leftside\">");
		
		
		document.write("<script type=\"text/javascript\">SpecialContent();</script> ");
		document.write("</td></tr></table></td></tr>");       
	}	
};

function DisplayNewsContent()
{
	document.write("<tr><td height=\"25\" background=\"http://www.teebo.com/img/news.png\" class=\"sidenewshdr\" style=\"padding:0 10 0 23;\">&nbsp;</td></tr>");
	document.write("<tr><td height=\"25\"><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.write("<tr><td valign=\"top\"><img src=\"http://www.teebo.com/img/colfill2.gif\" width=\"12\" height=\"146\" alt=\" \"></td>");
//	document.write("<tr><td valign=\"top\"><img src=\"http://www.teebo.com/img/trans.gif\" width=\"12\" height=\"146\" alt=\" \"></td>");

//	document.write("<td valign=\"top\" style=\"background-image:url(http://www.teebo.com/img/colfill1.gif); background-repeat:repeat-x; padding:10;\"class=\"leftside\">");
	document.write("<td valign=\"top\" style=\"background-image:url(http://www.teebo.com/img/trans.gif); background-repeat:repeat-x; padding:10;\"class=\"leftside\">")

	document.write("<script type=\"text/javascript\">DisplayNewsArea();</script> ");
	document.write("</td></tr></table></td></tr>");       
};

function DisplayTestimonials()
{
	document.write("<tr><td height=\"25\" background=\"http://www.teebo.com/img/cust.png\" class=\"sidenewshdr\" style=\"padding:0 10 0 23; \">&nbsp;</td></tr>");
	document.write("<tr><td height=\"25\"><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.write("<tr><td valign=\"top\"><img src=\"http://www.teebo.com/img/colfill2.gif\" width=\"12\" height=\"146\" alt=\" \"></td>");
		
//	document.write("<td valign=\"top\" style=\"background-image:url(http://www.teebo.com/images/colfill1.gif); background-repeat:repeat-x; padding:10;\" class=\"leftside\">");
	document.write("<td valign=\"top\" style=\"background-image:url(http://www.teebo.com/images/trans.gif); background-repeat:repeat-x; padding:10;\" class=\"leftside\">");

	document.write("<span class=\"testimonial\">");
	document.write("<script type=\"text/javascript\">DisplayRandomQuote();</script> ");
	document.write("<\span>");
	
	// POST NEWS BREAKS //
//	document.write("<br><br>");
	// FOLLOW LINK
//	document.write("<a href=\"http://www.teebo.com/testimonials.htm\" class=\"orange\"><strong>&raquo; Read Testimonials...</strong></a>");

	document.write("</td></tr></table></td></tr>");       

};

function PostContent()
{
	document.write("");
};

function PostHeader()
{
	// Add a <P> block with text
	document.write("");
};

function AbsoluteBtm()
{
	document.write("");
};

function DisplayRandomQuote()
{

	var randomquote=new Array();
    randomquote[0]="&#8220;I think OfficeMenu is a great product and it is partially responsible for inspiring me to upgrade my applications.&#8221;<br><br><span class=\"custname\">Larry G.</span><br>";
    randomquote[1]="&#8220;Thanks! I'm glad to hear that you're already adding what I was looking for.You guys ROCK!!&#8221;<br><br><span class=\"custname\">Tim M.</b><br>";
    randomquote[2]="&#8220;Like your products, your support is superb. Thank you!&#8221;<br><br><span class=\"custname\">Sean N.</b><br>";
	randomquote[3]="&#8220;Thanks - your support is very prompt - I appreciate that.&#8221;<br><br><span class=\"custname\"Larry R.</b><br>";
	randomquote[4]="&#8220;I tried your OfficeMenu ActiveX control, and I think it's great and very easy to use.&#8221;<br><br><span class=\"custname\">Giovanni S.</b><br>";
	randomquote[5]="&#8220;Your prices, support, and prompt work is very pleasing. A very happy customer here.&#8221;<br><br><span class=\"custname\">Robert H.</b><br>";
	randomquote[6]="&#8220;Thanks for all you’ve done. TaskPaneXP and tssTrayNotify have REALLY added that 'professionalism' that we were looking for.<br /><br /> They’re easy to use, look great, and make our application look like a million bucks!&#8221;<br><br><span class=\"custname\">Evan K.</b><br>";
	randomquote[7]="&#8220;Just one thing to say: whatever you’re doing to make these controls, keep doing it! They’re some of the best controls I’ve ever seen.&#8221;<br><br><span class=\"custname\">Eric B.</b><br>";
	randomquote[8]="&#8220;As usual, excellent service, products, and pricing all from the same company. Now that's a novelty! Hope others take note.&#8221;<br><br><span class=\"custname\">Tony J.</b><br>";

	
    document.write(randomquote[Math.floor(Math.random()*randomquote.length)]);
	
};

function GetDay(iDay) {
	var DayArray = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday") ;
	return DayArray[iDay] ;
};

function GetMonth(iMonth) {
	var arMonth = new Array("January", "February", "March", "April", "May", "June","July", "August", "September", "October", "November", "December") ;
	return arMonth[iMonth] ;
};

function GetYear(year) {
	if (year < 2000) {
		year = year + 1900;
	}
	return year;
};

function fDate() {
	var today = new Date() ;
	var mon = GetMonth(today.getMonth()) ;
	var day = GetDay(today.getDay()) ;
	var year = GetYear(today.getYear()) ;
	var hours = today.getHours() ;
	document.write( day + ', ' + mon + ' ' + today.getDate() + ', ' + year ) ;
};



