var FullArray;
function getRightColumn()
{
var CourseList = "<table align='center' border='0'><tr><td align='center'><strong><span class='style8'>New Courses - August 2010</span><br><br></strong></td></tr>";
var CourseList = CourseList + "<tr><td><ul><span class='style8'>";
//var CourseList = CourseList + WriteLines();
var CourseList = CourseList + "<li>Alcohol Identification and Brief Advice - Primary Care Pathway</li><br><br>";
var CourseList = CourseList + "<li>e-ELCA 5.0 Integrating Learning:  Initiating Conversations about End of Life Care</li><br><br>";
var CourseList = CourseList + "<li>e-ELCA 5.3 Integrating Learning: Condition-Specific Case Studies</li><br><br>";
var CourseList = CourseList + "<li>Medical Leadership (6 Courses)</li><br><br>";
var CourseList = CourseList + "<li>Introduction to Anaesthetics (8 Courses)</li><br><br>";
var CourseList = CourseList + "</span</td></tr></table><br>";

document.write(CourseList);
}

function CreateMenu()
{
var MenuData = "<h3 class='headerbar'>Navigation</h3><ul>"
var MenuData = MenuData + "<li><a href='index.html'>Home</a></li>";
var MenuData = MenuData + "<li><a href='tutorials.html'>Tutorials</a></li>";
var MenuData = MenuData + "<li><a href='pccheck.html'>Check Your PC</a></li>";
var MenuData = MenuData + "<li><a href='documentation.html'>Documentation</a></li>";
var MenuData = MenuData + "<li><a href='catalogue.html'>Available Courses</a></li>";
var MenuData = MenuData + "<li><a href='comingsoon.html'>Courses Coming Soon</a></li>";
var MenuData = MenuData + "<li><a href='usefullinks.html'>Useful Links</a></li>";
var MenuData = MenuData + "<li><a href='providers.html'>Content Providers</a></li>";
var MenuData = MenuData + "<li><a href='http://www.nhselearning.co.uk'>Login to Remote e-Learning</a></li>";
var menu_span = document.getElementById('leftmenu');
menu_span.innerHTML = MenuData;
}

function CheckBrowser()
{
if(BrowserDetect.browser == "Explorer"){

	if(BrowserDetect.version == 6){
	document.write('<span class="style6">Internet Explorer 6');
		}

	if(BrowserDetect.version == 7){
	document.write('<span class="style5">Internet Explorer 7');
		}

	if(BrowserDetect.version != 6 && BrowserDetect.version != 7){
	document.write('<span class="style6">'+ BrowserDetect.browser + " " + BrowserDetect.version + '</span>');
		}
	}

	else

	document.write('<span class="style6">'+ BrowserDetect.browser + " " + BrowserDetect.version + '</span>' );
}

function CheckJava()
{
if(PluginDetect.getVersion('Java','getJavaInfo.jar') == JavaVer)
{
document.write('<span class="style5">Java JRE version ' + PluginDetect.getVersion('Java') + '</span>');
}
if(PluginDetect.getVersion('Java','getJavaInfo.jar') == null) 
{
document.write('<span class="style2"> Java not installed</span>');
}
if(PluginDetect.isMinVersion('Java', '1,6,0,7') == 1)
{
document.write('<span class="style6">Higher version (' + PluginDetect.getVersion('Java') + ')</span>');
}
if(PluginDetect.getVersion('Java','getJavaInfo.jar') !== JavaVer && PluginDetect.getVersion('Java','getJavaInfo.jar') !== null && isMinVersion('Java', '1,6,0,7') !== 1)
{
document.write('<span class="style2">Incorrect version (' + PluginDetect.getVersion('Java') + ')</span>');
}
}

function CheckFlash()
{
if(PluginDetect.isMinVersion('Flash', FlashVer) == 1)
{
document.write('<span class="style5">Flash v' + PluginDetect.getVersion('Flash') + '</span>');
}
if(PluginDetect.isMinVersion('Flash', FlashVer) !== 1 && PluginDetect.getVersion('Flash') == null)
{
document.write('<span class="style2"> Flash not installed</span>');
}
if(PluginDetect.isMinVersion('Flash', FlashVer) !== 1 && PluginDetect.getVersion('Flash') !== null)
{
document.write('<span class="style2"> Flash v' + PluginDetect.getVersion('Flash') +'</span>');
}
}

function CheckSW()
{
if(PluginDetect.isMinVersion('Shockwave', ShockwaveVer) == 1){
document.write('<span class="style5">Shockwave v' + PluginDetect.getVersion('Shockwave') + '</span>');
}
if(PluginDetect.isMinVersion('Shockwave', ShockwaveVer) !== 1 && PluginDetect.getVersion('Shockwave') == null)
{
document.write('<span class="style2">Shockwave not installed</span>' );
}
if(PluginDetect.isMinVersion('Shockwave', ShockwaveVer) !== 1 && PluginDetect.getVersion('Shockwave') !== null)
{
document.write('<span class="style2">Shockwave v' + PluginDetect.getVersion('Shockwave')+ '</span>' );
}
}


function CheckCookies()
{
var tmpcookie = new Date();   chkcookie = (tmpcookie.getTime() + '');   document.cookie = "chkcookie=" + chkcookie + "; path=/";
  if (document.cookie.indexOf(chkcookie,0) < 0) {
     document.write ('<span class="style2">Cookies are not enabled</span>');
	     }    
else
		  {
document.write ('<span class="style5">Cookies enabled</span>');
		    }
}

function CheckRes()
{
if (screen.width >=ScreenWidth && screen.height >=ScreenHeight)
{

document.write('<span class="style5">Resolution ' + screen.width + 'x'+ screen.height + '</span>');

}

else

document.write('<span class="style6">Resolution (' + screen.width + 'x'+ screen.height + ')</span>');
}

function CheckConnectivity()
{
var ObjectData = "<OBJECT classid='clsid:8AD9C840-044E-11D1-B3E9-00805F499D93' WIDTH = '50' HEIGHT = '50'";
var ObjectData = ObjectData + "codebase='http://java.sun.com/update/1.6.0/jinstall-6u6-windows-i586.cab' bgcolor='FFFFFF'>";
var ObjectData = ObjectData + "<PARAM NAME = CODE VALUE = 'ESRtest.TestApplet'>";
var ObjectData = ObjectData + "<PARAM NAME = CODEBASE VALUE = 'http://www.esrsupport.co.uk/nlms'>";
var ObjectData = ObjectData + "<PARAM NAME = ARCHIVE VALUE = 'ESRtest.jar,HTTPClient.jar'>";
var ObjectData = ObjectData + "<PARAM NAME='type' VALUE='application/x-java-applet;jpi-version=1.4.2'>";
var ObjectData = ObjectData + "<PARAM NAME='scriptable' VALUE='false'>";
var ObjectData = ObjectData + "<PARAM NAME = 'ESR.server' VALUE ='www.nhselearning.co.uk'>";
var ObjectData = ObjectData + "<PARAM NAME = 'ESR.port' VALUE ='443'>";
var ObjectData = ObjectData + "<COMMENT><EMBED type='application/x-java-applet;jpi-version=1.4.2' pluginspage='http://java.sun.com/products/archive/j2se/1.4.2_04/index.html'><NOEMBED>";
var ObjectData = ObjectData + "</COMMENT></NOEMBED></EMBED></OBJECT>";
//document.write(ObjectData);

var conn_span = document.getElementById('conn_test');
conn_span.innerHTML = ObjectData;
}

function WriteDocumentLink(DocID)
{
var CommonIssuesGuide = "%3Ca%20href%3D%27http%3A//esr.novosolutions.net/redirfile.asp%3Fid%3D6866%27%20target%3D%27_blank%27%3E";
if (DocID == 'Common_Issues')
	{
	document.write(unescape(CommonIssuesGuide));
	}
}

