// JavaScript Document
function updateHomepageNavTable(id) {
	//alert(id);
	thisNav = document.getElementById(id);
	
	currentBGimage = thisNav.style.backgroundImage;
	
	switch(currentBGimage) {
		case "url(http://www.plateau.com/icontent/images/tab_off.gif)":
			thisNav.style.backgroundImage = "url(http://www.plateau.com/icontent/images/tab_over.gif)";
		break;
		
		case "url(http://www.plateau.com/icontent/images/tab_over.gif)":
			thisNav.style.backgroundImage = "url(http://www.plateau.com/icontent/images/tab_off.gif)";
		break;
	}
}

function manageSpan(spanID) {
	spanObject = document.getElementById(spanID);
	spanObject_init = document.getElementById(spanID + '_init');
	
	if(spanObject.style.display == 'none') {
		spanObject.style.display = '';
		spanObject.style.backgroundImage = "url(http://www.plateau.com/icontent/images/navTable_icontent_bg.gif)";
		spanObject_init.style.display = 'none';
	}
	else {
		spanObject.style.display = 'none';
		spanObject_init.style.display = '';
	}
	
}

function updateHomepageCopyTable(tabID) {
	
	var moreLinkImage = '<img src="http://www.plateau.com/icontent/images/more_link.gif" border="0" style="vertical-align:text-bottom;">';
	
	var tab1 = '<center><img src="http://www.plateau.com/icontent/images/navTable_quote.gif"></center>';
	tab1 += '<img src="http://www.plateau.com/icontent/images/navTable_CaaSblock.gif" align="right" style="padding-top:10px; padding-right:25px">';
	tab1 += '<h1>The iContent solution removes the burden of online content management, reduces costs, increases training efficiency, and greatly improves the user experience.</h1>';
	tab1 += '<table><tr><td>';
	tab1 += '<ul>';
	tab1 += '<li>Next Generation of content solutions</li>';
	tab1 += '<li>Removes infrastructure costs</li>';
	tab1 += '<li>Increases efficiency</li>';
	tab1 += '<li>Better user experience</li>';
	tab1 += '<li>On-demand, management, validation, testing and support for all content</li>';
	tab1 += '</ul>';
	tab1 += '</td>';
	tab1 += '<td>';	
	tab1 += '<ul>';
	tab1 += '<li>Robust Security</li>';
	tab1 += '<li>Fast &amp; consistent content delivery anywhere in the world</li>';
	tab1 += '<li>Once source for thousands of eLearning titles</li>';
	tab1 += '<li>Flexible service</li>';
	tab1 += '</ul>';
	tab1 += '</td>';
	tab1 += '</tr>';
	tab1 += '</table>';	
	tab1 += '<p><a href="caas/index.htm">Find out more about Content as a Service</a> ' + moreLinkImage + '</p>';
	
	var tab2 = '<img src="http://www.plateau.com/icontent/images/navTable_money.gif" align="right" style="padding-top:10px; padding-right:25px">';
	tab2 += '<h1>Using iContent will lower your costs on:</h1>';
	tab2 += '<ul>';
	tab2 += '<li>Infrastructure and content hosting</li>';
	tab2 += '<li>Content delivery and bandwidth consumption</li>';
	tab2 += '<li>Technical expertise and support</li>';
	tab2 += '<li>Administrative overhead</li>';
	tab2 += '</ul>';
	tab2 += '<p>All these elements, which are integral to providing a real CaaS solution, are included in the iContent service at a fraction of the cost of an in-house implementation.</p>';
	tab2 += '<p><a href="save/index.htm">Learn More about how iContent saves you money</a> ' + moreLinkImage + '</p>';
	
	var tab3 = '<img src="images/perf_cloud.gif" align="right" style="padding-top:10px; padding-right:25px">';
	tab3 += '<h1>iContent improves the performance of your online content and your eLearning strategy as a whole:</h1>'
	tab3 += '<ul>';
	tab3 += '<li>Faster content delivery through a worldwide Content Distribution Network</li>';
	tab3 += '<li>&ldquo;We make it work&rdquo;: Expert validation and integration into learning management system ensures content launches and tracks as expected</li>';
	tab3 += '<li>Improved content delivery and consumption leads to improved end&ndash;user training and workforce performance</li>';
	tab3 += '<li>Quick to publish (One business day turnaround)</li>';
	tab3 += '</ul>';
	tab3 += '<p><a href="performance/index.htm">Read More about the improved performance you\'ll see with iContent</a> ' + moreLinkImage + '</p>';	
	
	var tab4 = '<table width="100%" style=\"padding-top:15px; padding-bottom:15px;\"><tr><td width="33%" valign="top">';
	tab4 += '<center><a onClick="manageSpan(\'haveLMS\');" style="color:#2b5c9f; font-size:18px; font-weight:bold;">Have a Learning Platform?</a></center>';
	tab4 += '<span id=\"haveLMS_init\">';
	tab4 += '<br><br><br><center><a onClick="manageSpan(\'haveLMS\');"><img src="http://www.plateau.com/icontent/images/navTable_qm_bg.gif"></a></center>';
	tab4 += '</span>';	
	tab4 += '<span id=\"haveLMS\" style=\"display:none; background-image:none;\">';
	tab4 += '<h2>Problems:</h2>';
	tab4 += '<p><ul style=\"list-style:none;\">';
	tab4 += '<li>Content not performing, launching, bookmarking, tracking or recording scores</li>';
	tab4 += '<li>Slow delivery to end users</li>';
	tab4 += '<li>Not enough content or the wrong content</li>';
	tab4 += '<li>Need additional resources</li>';
	tab4 += '<li>Want to reduce ILT costs with more eLearning</li>';	
	tab4 += '</ul></p>';	
	tab4 += '<h2>Solutions:</h2>';
	tab4 += '<p>';	
	tab4 += 'iContent Managed Services<br>';
	tab4 += 'iContent Portal';	
	tab4 += '</p>';
	tab4 += '<p><a href=\"contactme.php\" style=\"font-size:14px; text-decoration:none; color:#2b5c9f;\">Improve your eLearning Now <img src=\"images/more_link_blue.gif\" border=\"0\" style="vertical-align:text-bottom;"></a></p>';	
	tab4 += '</span>';
	tab4 += '</td><td width="33%" valign="top" style=\"border-left:2px solid #666666; border-right:2px solid #666666;\">';
	tab4 += '<center><a onClick="manageSpan(\'needLMS\');" style="color:#2b5c9f; font-size:18px; font-weight:bold;">Need a Learning Platform?</a></center>';
	tab4 += '<span id=\"needLMS_init\">';
	tab4 += '<br><br><br><center><a onClick="manageSpan(\'needLMS\');"><img src="http://www.plateau.com/icontent/images/navTable_qm_bg.gif"></a></center>';
	tab4 += '</span>';	
	tab4 += '<span id=\"needLMS\" style=\"display:none;\">';
	tab4 += '<h2>Problems:</h2>';
	tab4 += '<p><ul style=\"list-style:none;\">';
	tab4 += '<li>Need to train internal or external users</li>';
	tab4 += '<li>Need to record learning events and report compliance or business needs</li>';
	tab4 += '<li>Have ILT or eLearning requirements</li>';
	tab4 += '<li>Want to purchase eLearning titles</li>';
	tab4 += '</ul></p>';	
	tab4 += '<h2>Solutions:</h2>';
	tab4 += '<p>';	
	tab4 += 'iContent Managed Services<br>';
	tab4 += 'Plateau On-Demand Enterprise, Plateau On-Demand or iContent Learning<br>';	
	tab4 += 'iContent Portal';
	tab4 += '</p>';	
	tab4 += '<p><a href=\"contactme.php\" style=\"font-size:14px; text-decoration:none; color:#2b5c9f;\">Get a Learning Platform Now <img src=\"images/more_link_blue.gif\" border=\"0\" style="vertical-align:text-bottom;"></a></p>';		
	tab4 += '</span>';
	tab4 += '</td><td width="33%" valign="top">';
	tab4 += '<center><a onClick="manageSpan(\'sellTraining\');" style="color:#2b5c9f; font-size:18px; font-weight:bold;">Want to Sell Training?</a></center>';
	tab4 += '<span id=\"sellTraining_init\">';
	tab4 += '<br><br><br><center><a onClick="manageSpan(\'sellTraining\');"><img src="http://www.plateau.com/icontent/images/navTable_qm_bg.gif"></a></center>';
	tab4 += '</span>';
	tab4 += '<span id=\"sellTraining\" style=\"display:none;\">';
	tab4 += '<h2>Problems:</h2>';
	tab4 += '<p><ul style=\"list-style:none;\">';
	tab4 += '<li>Need a way  to sell and deliver eLearning to external users</li>';
	tab4 += '</ul></p>';	
	tab4 += '<h2>Solutions:</h2>';
	tab4 += '<p>';	
	tab4 += 'iContent Managed Services<br>';
	tab4 += 'iContent Storefront<br>';	
	tab4 += 'iContent Learning';
	tab4 += '</p>';	
	tab4 += '<p><a href=\"contactme.php\" style=\"font-size:14px; text-decoration:none; color:#2b5c9f;\">Start Generating Revenue Now <img src=\"images/more_link_blue.gif\" border=\"0\" style="vertical-align:text-bottom;"></a></p>';		
	tab4 += '</span>';
	tab4 += '</td></tr></table>';				

	currentCopy = document.getElementById('mainTableCopy');
	
	document.getElementById('nav_1').style.backgroundImage = "url(http://www.plateau.com/icontent/images/tab_off.gif)";
	document.getElementById('nav_2').style.backgroundImage = "url(http://www.plateau.com/icontent/images/tab_off.gif)";
	document.getElementById('nav_3').style.backgroundImage = "url(http://www.plateau.com/icontent/images/tab_off.gif)";
	document.getElementById('nav_4').style.backgroundImage = "url(http://www.plateau.com/icontent/images/tab_off.gif)";
	
	switch(tabID) {
		case 1:
			currentCopy.innerHTML = tab1;	
			document.getElementById('nav_1').style.backgroundImage = "url(http://www.plateau.com/icontent/images/tab_on.gif)";
		break;
		case 2:
			currentCopy.innerHTML = tab2;
			document.getElementById('nav_2').style.backgroundImage = "url(http://www.plateau.com/icontent/images/tab_on.gif)";
		break;
		case 3:
			currentCopy.innerHTML = tab3;
			document.getElementById('nav_3').style.backgroundImage = "url(http://www.plateau.com/icontent/images/tab_on.gif)";
		break;
		case 4:
			currentCopy.innerHTML = tab4;
			document.getElementById('nav_4').style.backgroundImage = "url(http://www.plateau.com/icontent/images/tab_on.gif)";
		break;		
	}
}

function checkBrowser(browser, version) {
	switch(browser) {
		case 'Internet Explorer':
			if(version <= 7.0) {
				displayPlayer('browser_ie');
			}
		break;
	}
}

function boldMoneyText(idNum) {
	descriptionText = document.getElementById('moneyTable' + idNum);
	descriptionText.innerHTML = descriptionText.innerHTML.replace('<p>', '<p><b>');
	descriptionText.innerHTML = descriptionText.innerHTML.replace('<P>', '<p><b>');
}

function undoBoldMoneyText(idNum) {
	descriptionText = document.getElementById('moneyTable' + idNum);
	descriptionText.innerHTML = descriptionText.innerHTML.replace('<p><b>', '<p>');
	descriptionText.innerHTML = descriptionText.innerHTML.replace('<P><B>', '<p>');
}