function OpenFooterAsset(URL)
{
	window.open(URL,"Physique_20_30_Information","toolbar=no,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,scrolling=yes,resizable=yes,width=750,height=550,left=0,top=0");
}

function embedIFrame(URL)
{
	document.write("<iframe src='" + URL + "' scrolling='auto'></iframe>");
}

function launchPage(URL) 
{
	if (URL != "")
	{
		window.open("frameSet.htm?asset=" + URL,"PhysicsResource","titlebar=yes,location=yes,resizable=yes,toolbar=yes,statusbar=yes,menubar=yestop=0,left=0,height=575,width=775");
	}
}

function openMovie(URL) 
{
	window.open("frameSet.htm?asset=" + URL,"PhysicsResource");
}

function embedQuicktimeObject(asset, height, width, color)
{
	document.write("<object ");
	document.write("classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' ");
	document.write("height='" + height + "' ");
	document.write("width='" + width + "' ");
	document.write("codebase='http://www.apple.com/qtactivex/qtplugin.cab'>");
		
		document.write("<param name='src' value='" + asset +"' />");
		document.write("<param name='controller' value='true' />");
		document.write("<param name='autoplay' value='true' />");
		document.write("<param name='enablejavascript' value='true' />");
		document.write("<param name='scale' value='aspect' />");
		document.write("<param name='kioskmode' value='true' />");
		document.write("<param name='bgcolor' value='" + color + "' />");
		
		document.write("<embed ");
			document.write("src='" + asset + "'");
			document.write("height='" + height + "'");
			document.write("width='" + width + "'");
			document.write("autoplay='true'");
			document.write("scale='aspect'");
			document.write("kioskmode='true'");
			document.write("bgcolor='" + color + "'");
			document.write("type='video/quicktime'");
			document.write("pluginspage='http://www.apple.com/quicktime/download/'");
			document.write("enablejavascript='true'");
			document.write("controller='true'>");
		document.write("</embed>");
	document.write("</object>");
}

function embedAuthorwareObject(asset, height, width, color)
{
	document.write('<object ');
		document.write('classid="CLSID:15B782AF-55D8-11D1-B477-006097098764" ');
		document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/authorware/awswaxf.cab#version=6,0,0,64" ');
		document.write('height="' + height + '" ');
		document.write('width="' + width + '">');
		
		document.write('<param name="SRC" value="' + asset + '">');
		document.write('<param name="PALETTE" value="background">');
		document.write('<param name="BGCOLOR" value="' + color + '">');
		
		document.write('<embed ');
			document.write('src="' + asset + '" ');
			document.write('palette="background" ');
			document.write('bgcolor="' + color + '" ');
			document.write('pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveAuthorware" ');
			document.write('type="application/x-authorware-map" ');
			document.write('height="' + height + '" ');
			document.write('width="' + width + '">');
		document.write('</embed>');
	document.write('</object>');
}function embedVelocity(asset, archiveLibraries, width, height){
	document.write('<applet ');
		document.write('code="' + asset + '" ');
		document.write('archive="' + archiveLibraries + '" ');
		document.write('width="' + width + '"');
		document.write('height="' + height + '"');
		document.write('mayscript="true"');
		document.write('codebase="../" >');
		
		document.write('<PARAM NAME="APP_MODE" VALUE="normal">');
		document.write('<PARAM NAME="panelColor" VALUE="#FFFFFF">');
		document.write('<PARAM NAME="HELP_URL" VALUE="applethelp/applet_help.html">');
		document.write('<PARAM NAME="DEFAULT_STARTUP_LOCALE" VALUE="fr_CA">');
		document.write('<PARAM = "APPLET_NAME" VALUE="Average Velocity">');
		document.write('<PARAM NAME="APPLET_NAME_FR" VALUE="Vitesse vectorielle moyenne">');
	document.write('</APPLET>');
}
function embedJavaObjectMotion(asset, archiveLibraries, height, width, verticalMode, velocityVector, continuousMode){	document.write('<applet ');		document.write('code="' + asset + '" ');		document.write('archive="' + archiveLibraries + '"');		document.write('height="' + height + '"');		document.write('width="' + width + '"');		document.write('mayscript="true"');		document.write('codebase="../" >');
		
		document.write('<param name="ShowMenuBar" value="false"/>');
		document.write('<param name="LANGUAGE" value="FR_CA"/>');
		document.write('<param name="APP_MODE" value="position"/>');
		
		if (verticalMode != '')document.write('<param name="TASK" value="' + verticalMode + '"/>');
		if (velocityVector != '')document.write('<param name="HIDE_TOOLS" value="' + velocityVector + '"/>');
		if (continuousMode != '') document.write('<param name="SINGLE_PAGE_MODE" value="' + continuousMode + '"/>');
	document.write('</applet>');}function embedJavaObjectCollisions(asset, archiveLibraries, height, width, randomMode, dialogEnabled, modeChangeEnabled, mode){	document.write('<applet ');		document.write('code="' + asset + '" ');		document.write('archive="' + archiveLibraries + '"');		document.write('height="' + height + '"');		document.write('width="' + width + '"');		document.write('mayscript="true"');		document.write('codebase="../" >');
		
		document.write('<param name="ShowMenuBar" value="false"/>');
		document.write('<param name="LANGUAGE" value="FR_CA"/>');
		document.write('<param name="APP_MODE" value="position"/>');
		
		if (randomMode != '') document.write('<param name="RANDOMMODE" value="' + randomMode + '"/>');
		if (dialogEnabled != '') document.write('<param name="DIALOGENABLED" value="' + dialogEnabled + '"/>');
		if (modeChangeEnabled != '') document.write('<param name="MODECHANGEENABLED" value="' + modeChangeEnabled + '"/>');
		if (mode != '') document.write('<param name="MODE" value="' + mode + '"/>');
	document.write('</applet>');}function embedJavaObjectFriction(asset, archiveLibraries, height, width, friction){	document.write('<applet ');		document.write('code="' + asset + '" ');		document.write('archive="' + archiveLibraries + '"');		document.write('height="' + height + '"');		document.write('width="' + width + '"');		document.write('mayscript="true"');		document.write('codebase="../" >');
		
		document.write('<param name="ShowMenuBar" value="false"/>');
		document.write('<param name="LANGUAGE" value="FR_CA"/>');
		document.write('<param name="APP_MODE" value="position"/>');
		
		if (friction != '') document.write('<param name="FRICTION" value="' + friction + '"/>');
	document.write('</applet>');}function embedJavaObjectMatter(asset, archiveLibraries, height, width, showEnergy, showRadius){	document.write('<applet ');		document.write('code="' + asset + '" ');		document.write('archive="' + archiveLibraries + '"');		document.write('height="' + height + '"');		document.write('width="' + width + '"');		document.write('mayscript="true"');		document.write('codebase="../" >');
		
		document.write('<param name="ShowMenuBar" value="false"/>');
		document.write('<param name="LANGUAGE" value="FR_CA"/>');
		document.write('<param name="APP_MODE" value="position"/>');
		
		if (showEnergy != '') document.write('<param name="showEnergy" value="' + showEnergy + '"/>');
		if (showRadius != '') document.write('<param name="showRadius" value="' + showRadius + '"/>');
	document.write('</applet>');}function embedJavaObjectElectricCircuits(asset, archiveLibraries, height, width, startPage, verbose, usePageBrowser){	document.write('<applet ');		document.write('code="' + asset + '" ');		document.write('archive="' + archiveLibraries + '"');		document.write('height="' + height + '"');		document.write('width="' + width + '"');		document.write('mayscript="true"');		document.write('codebase="../" >');
		
		document.write('<param name="ShowMenuBar" value="false"/>');
		document.write('<param name="LANGUAGE" value="FR_CA"/>');
		document.write('<param name="APP_MODE" value="position"/>');
		
		if (startPage != '') document.write('<param name="START_PAGE" value="' + startPage + '"/>');
		if (verbose != '') document.write('<param name="VERBOSE" value="' + verbose + '"/>');
		if (usePageBrowser != '') document.write('<param name="USE_PAGE_BROWSER" value="' + usePageBrowser + '"/>');
	document.write('</applet>');}function embedJavaObjectField(asset, archiveLibraries, height, width, color, usePageBrowser, verbose, appletMode, showPotentials, usePointCharges, vectorControl){	document.write('<applet ');		document.write('code="' + asset + '" ');		document.write('archive="' + archiveLibraries + '"');		document.write('height="' + height + '"');		document.write('width="' + width + '"');		document.write('mayscript="true"');		document.write('codebase="../" >');
		
		document.write('<param name="ShowMenuBar" value="false"/>');
		document.write('<param name="LANGUAGE" value="FR_CA"/>');
		document.write('<param name="APP_MODE" value="position"/>');
		
		if (color != '') document.write('<param name="PANEL_COLOR" value="' + color + '"/>');
		if (usePageBrowser != '') document.write('<param name="USE_PAGE_BROWSER" value="' + usePageBrowser + '"/>');
		if (verbose != '') document.write('<param name="VERBOSE" value="' + verbose + '"/>');
		if (appletMode != '') document.write('<param name="APPLET_MODE" value="' + appletMode + '"/>');
		if (showPotentials != '') document.write('<param name="SHOW_POTENTIALS" value="' + showPotentials + '"/>');
		if (usePointCharges != '') document.write('<param name="USE_POINT_CHARGES_FOR_POTENTIALS" value="' + usePointCharges + '"/>');
		if (vectorControl != '') document.write('<param name="VECTOR_CONTROL_PANEL_SPECIFICATION_TYPE" value="' + vectorControl + '"/>');
	document.write('</applet>');}function embedJavaObjectParticle(asset, archiveLibraries, height, width, appletMode, allowMultipleParticles, vectorControl, showPotentials, verbose, usePageBrowser){	document.write('<applet ');		document.write('code="' + asset + '" ');		document.write('archive="' + archiveLibraries + '"');		document.write('height="' + height + '"');		document.write('width="' + width + '"');		document.write('mayscript="true"');		document.write('codebase="../" >');
		
		document.write('<param name="ShowMenuBar" value="false"/>');
		document.write('<param name="LANGUAGE" value="FR_CA"/>');
		document.write('<param name="APP_MODE" value="position"/>');
		
		if (appletMode != '') document.write('<param name="APPLET_MODE" value="' + appletMode + '"/>');
		if (allowMultipleParticles != '') document.write('<param name="ALLOW_MULTIPLE_PARTICLES" value="' + allowMultipleParticles + '"/>');
		if (vectorControl != '') document.write('<param name="VECTOR_CONTROL_PANEL_SPECIFICATION_TYPE" value="' + vectorControl + '"/>');
		if (showPotentials != '') document.write('<param name="SHOW_POTENTIALS" value="' + showPotentials + '"/>');
		if (verbose != '') document.write('<param name="VERBOSE" value="' + verbose + '"/>');
		if (usePageBrowser != '') document.write('<param name="USE_PAGE_BROWSER" value="' + usePageBrowser + '"/>');
	document.write('</applet>');}function embedJavaObjectCharge(asset, archiveLibraries, height, width, appletMode){	document.write('<applet ');		document.write('code="' + asset + '" ');		document.write('archive="' + archiveLibraries + '"');		document.write('height="' + height + '"');		document.write('width="' + width + '"');		document.write('mayscript="true"');		document.write('codebase="../" >');
		
		document.write('<param name="ShowMenuBar" value="false"/>');
		document.write('<param name="LANGUAGE" value="FR_CA"/>');
		document.write('<param name="APP_MODE" value="position"/>');
		
		if (appletMode != '') document.write('<param name="APPLET_MODE" value="' + appletMode + '"/>');
	document.write('</applet>');}function embedJavaObject(asset, archiveLibraries, height, width, mode){	document.write('<applet ');		document.write('code="' + asset + '" ');		document.write('archive="' + archiveLibraries + '"');		document.write('height="' + height + '"');		document.write('width="' + width + '"');		document.write('mayscript="true"');		document.write('codebase="../" >');
		
		document.write('<param name="ShowMenuBar" value="false"/>');
		document.write('<param name="LANGUAGE" value="FR_CA"/>');
		document.write('<param name="APP_MODE" value="position"/>');
		
		if (mode != '') document.write('<param name="MODE" value="' + mode + '"/>');
	document.write('</applet>');}
function embedJavaObjectFreeBody(height, width){	document.write('<APPLET CODE = "forces.actionreaction.applet.AppletMain.class" JAVA_CODEBASE = "../" ARCHIVE = "libraries/mjl_mawt.jar, libraries/mjl_mgraph.jar, libraries/jmep.jar, libraries/mjl_mdraw2D.jar, libraries/mjl_mimage.jar, libraries/mjl_mswing.jar, libraries/mjl_mthread.jar, libraries/mlocale.jar, libraries/mjl_utilities.jar, actionreaction/applet.jar" WIDTH = ' + width + ' HEIGHT = ' + height + '>');
    document.write('<PARAM NAME = CODE VALUE = "forces.actionreaction.applet.AppletMain.class" >');
    document.write('<PARAM NAME = CODEBASE VALUE = "../" >');
    document.write('<PARAM NAME = ARCHIVE VALUE = "libraries/mjl_mawt.jar, libraries/mjl_mgraph.jar, libraries/jmep.jar, libraries/mjl_mdraw2D.jar, libraries/mjl_mimage.jar, libraries/mjl_mswing.jar, libraries/mjl_mthread.jar, libraries/mlocale.jar, libraries/mjl_utilities.jar, actionreaction/applet.jar" >');
    document.write('<PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">');
    document.write('<PARAM NAME="scriptable" VALUE="false">');
    document.write('<PARAM NAME = "projects" VALUE  ="project_1,project_2">');
    document.write('<PARAM NAME = "helpURL" VALUE ="actionreaction/applethelp/help_freebodydrawer.html">');
    document.write('<PARAM NAME = "ShowMenuBar" VALUE="true">');
    document.write('<PARAM NAME = "LANGUAGE" VALUE="FR_CA">');
    document.write('</APPLET>');
}function embedJavaObjectPulley(asset, archiveLibraries, height, width, pulleyMassSlider){	document.write('<applet ');		document.write('code="' + asset + '" ');		document.write('archive="' + archiveLibraries + '"');		document.write('height="' + height + '"');		document.write('width="' + width + '"');		document.write('mayscript="true"');		document.write('codebase="../" >');
		
		document.write('<param name="ShowMenuBar" value="false"/>');
		document.write('<param name="LANGUAGE" value="FR_CA"/>');
		document.write('<param name="APP_MODE" value="position"/>');
		
		if (pulleyMassSlider != '') document.write('<param name="pulleyMassSlider" value="' + pulleyMassSlider + '"/>');
	document.write('</applet>');}
function embedJavaObjectVector(asset, archiveLibraries, height, width, task, hideTools, singlePageMode, usePageBrowser, verbose, mode){	document.write('<applet ');		document.write('code="' + asset + '" ');		document.write('archive="' + archiveLibraries + '"');		document.write('height="' + height + '"');		document.write('width="' + width + '"');		document.write('mayscript="true"');		document.write('codebase="../" >');
		
		document.write('<param name="ShowMenuBar" value="false"/>');
		document.write('<param name="LANGUAGE" value="FR_CA"/>');
		document.write('<param name="APP_MODE" value="position"/>');
		
		if (task != '')document.write('<param name="TASK" value="' + task + '"/>');
		if (hideTools != '')document.write('<param name="HIDE_TOOLS" value="' + hideTools + '"/>');
		if (singlePageMode != '') document.write('<param name="SINGLE_PAGE_MODE" value="' + singlePageMode + '"/>');
		if (usePageBrowser != '') document.write('<param name="USE_PAGE_BROWSER" value="' + usePageBrowser + '"/>');
		if (verbose != '') document.write('<param name="VERBOSE" value="' + verbose + '"/>');
		if (mode != '') document.write('<param name="MODE" value="' + mode + '"/>');
	document.write('</applet>');}

function embedJavaObjectVelocity(asset, archiveLibraries, height, width, velocityY, accelerationX, accelerationY, mass, multiple){	document.write('<applet ');		document.write('code="' + asset + '" ');		document.write('archive="' + archiveLibraries + '"');		document.write('height="' + height + '"');		document.write('width="' + width + '"');		document.write('mayscript="true"');		document.write('codebase="../" >');
		
		document.write('<param name="ShowMenuBar" value="false"/>');
		document.write('<param name="LANGUAGE" value="FR_CA"/>');
		document.write('<param name="APP_MODE" value="position"/>');
		document.write('<param name="VELOCITY_Y_ENABLED" value="' + velocityY + '"/>');
		document.write('<param name="ACCELERATION_X_ENABLED" value="' + accelerationX + '"/>');
		document.write('<param name="ACCELERATION_Y_ENABLED" value="' + accelerationY + '"/>');
		document.write('<param name="MASS_ENABLED" value="' + mass + '"/>');
		document.write('<param name="MULTIPLE_OBJECTS_ENABLED" value="' + multiple + '"/>');
	document.write('</applet>');}

function embedJavaObjectReference(asset, archiveLibraries, height, width){	document.write('<applet ');		document.write('code="' + asset + '" ');		document.write('archive="' + archiveLibraries + '"');		document.write('height="' + height + '"');		document.write('width="' + width + '"');		document.write('mayscript="true"');		document.write('codebase="../" >');
		
		document.write('<param name="ShowMenuBar" value="false"/>');
		document.write('<param name="LANGUAGE" value="FR_CA"/>');
		document.write('<param name="APP_MODE" value="position"/>');
		document.write('<param name="VERBOSE" value="false"/>');
		document.write('<param name="THETA" value="0.0"/>');
		document.write('<param name="VELOCITY" value="5.0"/>');
		document.write('<param name="ROTATION" value="1.0"/>');
		document.write('<param name="MAGNITUDE" value="0.25"/>');
		document.write('<param name="ORIENTATION" value="BOTTOM"/>');
		document.write('<param name="APPLET_NAME" value="Rolling Motion"/>');
	document.write('</applet>');}

function embedFlashObject(asset, height, width, color)
{
	document.write('<object ');
	document.write('classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');
	document.write('codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ');
	document.write('height="' + height + '" ');
	document.write('width="' + width+ '" ');
	document.write('id="' + asset.replace(".swf","") + '" ');
	document.write('align="middle">');
	
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		document.write('<param name="movie" value="' + asset + '" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="bgcolor" value="' + color + '" />');
		document.write('<param name="menu" value="false" />');
		
		document.write('<embed ');
		document.write('src="' + asset + '" ');
		document.write('quality="high" ');
		document.write('bgcolor="' + color + '" ');
		document.write('height="' + height + '" ');
		document.write('width="' + width + '" ');
		document.write('name="' + asset.replace(".swf","") + '" ');
		document.write('align="middle" ');
		document.write('allowScriptAccess="sameDomain" ');
		document.write('type="application/x-shockwave-flash" ');
		document.write('menu="false" ');
		document.write('pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

//These functions are only used for IE 5 on a Mac (importXML and checkXMLLoad).
		
//Create an array for the XML - this is used to determine if the full contents of the XML are fully loaded.
var xmlArray = [];
var xmlDoc;

//This function really only takes two parameters at the moment; the path to the XML package and the resulting function call once the
//package is fully loaded. The third parameter, delayTimer, is set later and determines the length of time to wait for the XML to load. 
function importXML(xmlPackage, functionCall, delayTimer) 
{
	//Create an IFrame for the XML package to load into.
	var xmlIFrame = document.createElement('DIV');
	
	//Set the styles for the XML IFrame - at this point we want it hidden in the top-left of the screen.
	xmlIFrame.style.visibility = 'hidden'; 
	xmlIFrame.style.position = 'absolute'; 
	xmlIFrame.style.top = '0px'; 
	xmlIFrame.style.left = '0px';
	
	//Set up the timer - this is used to check to make sure that the XML package is fully loaded.
	if( !window.xmlTimer ) 
	{ 
		//Set the interval to check if the XML package is fully loaded.
		window.xmlTimer = window.setInterval('checkXMLLoad();',100); 
	}
	
	//Populate the XML IFrame with the loaded XML package (xmlArray)
	xmlIFrame.innerHTML = '<iframe src="' + xmlPackage + '" name="xmlLoader' + xmlArray.length + '" height="0" width="0"></iframe>';
	xmlArray[xmlArray.length] = functionCall + 'split' + (delayTimer?delayTimer:1) + '';
	
	//Add the XMLIFrame to the current document body.
	document.body.appendChild(xmlIFrame);
}

function checkXMLLoad()
{
	//Check to see if the XML Package is fully loaded. Larger files will require that the delay timer be set higher.
	for( var x = 0; x < xmlArray.length; x++ ) 
	{ 
		if( xmlArray[x] && window.frames['xmlLoader' + x] ) 
		{
			setTimeout(xmlArray[x].split('split')[0] + '(window.frames.xmlLoader'+x+'.window.document);', parseInt(xmlArray[x].split('split')[1]));
			xmlArray[x] = false;
		} 
	}
}

function determineBrowser()
{
	var browser = "";

	//Set the browser type - used later for determining the position of the child nodes in the XML.
	if (window.ActiveXObject)
	{
		browser = "IE";
	}
	else if (window.navigator.userAgent.indexOf("Netscape/7") > -1)
	{
		browser = "NN7.x";
	}
	else if (window.navigator.appVersion.indexOf("Safari") > -1)
	{
			browser = "Safari";
	}
	else if (window.navigator.userAgent.indexOf("Netscape/8") > -1)
	{
			browser = "NN8.x";
	}
	
	return browser;
}

function loadXMLPackage(xmlPackage, browser, resultingFunction)
{
	//Determine if the browser is IE by checking to see if ActiveXObjects are supported.
	if (browser == "IE")
	{
		//The try-catch block here is very important as there is a sublty between IE 5 on a Mac and IE 6+ on a PC.
		//If the try portion fails, then the browser is IE on a Mac and therefore needs to use the XML/IFrame method code in the header.
		try
		{
			//Create the XML object by setting the ActiveXObject, the asynchronous property, the XML to load (from the relative path in the
			//initialization above, and then parse the XML.
			xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
			xmlDoc.async = false;
			xmlDoc.load(xmlPackage);
			
			if (resultingFunction == "Video")
			{
				parseXMLVideo();
			}
			else
			{
				parseXML();
			}
		}
		catch(e)
		{
			//The current browser is IE 5 on a Mac - call the functions in the header by passing the path to the XML package at the resulting 
			//function to call once the XML package is fully loaded, in this case a variation of the regular XML parsing procedure.
			if (resultingFunction == "Video")
			{
				importXML(xmlPackage,'parseXML2Video');
			}
			else
			{
				importXML(xmlPackage,'parseXML2');
			}
		}
	}
	
	//Based on the userAgent, determine if the browser is Netscape 7 or any Safari browser.
	if (browser == "Safari")
	{
		//Create the XML object by setting the XML HTTP Request, the On Ready State Change property, the XML to load (from the relative path
		//in the initialization above, and then return null.
		xmlDoc = new XMLHttpRequest();
		
		if (resultingFunction == "Video")
		{
			xmlDoc.onreadystatechange = parseXMLVideo;
		}
		else
		{
			xmlDoc.onreadystatechange = parseXML;
		}
		
		xmlDoc.open("GET", xmlPackage, true);
		xmlDoc.send(null);
	}
	
	//Based on the userAgent, determine if the browser is Netscape 8.
	if (browser == "NN7.x" || browser == "NN8.x")
	{
		//Create the XML object by creating a document, setting the asynchronous property, the XML to load (from the relative path in the
		//intialization above, and then parse the XML.
		xmlDoc = document.implementation.createDocument("", "", null);
		xmlDoc.async = false;
		xmlDoc.load(xmlPackage);
		
		if (resultingFunction == "Video")
		{
			xmlDoc.onload = parseXMLVideo();
		}
		else
		{
			xmlDoc.onload = parseXML();
		}
	}
}

function embedDrillDownPanel(panel)
{
	document.write( '<iframe src="drillDownPanel.html?panel=' + panel + '" ALLOWTRANSPARENCY="true" height="100%" width="100%" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe>' );
}

function embedResourcePanel(panel)
{
	document.write( '<iframe src="resourcePanel.html?panel=' + panel + '" ALLOWTRANSPARENCY="true" height="100%" width="100%" marginwidth="0" marginheight="0" frameborder="2" scrolling="yes"></iframe>' );
}

function embedHeader(folder, video, options)
{
	/*
		The folder parameter contains the path to the support piece as defined by the Learning Object's HTML page.
		
		The video parameter contains the name of the SMIL file that will be launched through the MovieResourceLauncher.
		
		Possible options for the embedFooter function are as follows:
			l - lesson link
			lp - lesson PDF link
			1 - lesson 1 link
			2 - lesson 2 link
			h - help link
			hp - help PDF link
			v - video link
			n - animation link
			g - glossary link
			s - show me link
			c - curriculum link
			a - assumptions link
	*/
	
	//Display the various header pieces based on the options passed from the Learning Object's HTML page.
	if (options.indexOf("l") > -1) document.write('<td class="headerCell"><a href="appletHelp/lesson.doc" target="_blank">Le&#231;on</a></td>');
	if (options.indexOf("lp") > -1) document.write('<td class="headerCell"><a href="appletHelp/lesson.pdf" target="_blank">Le&#231;on - PDF</a></td>');
	if (options.indexOf("1") > -1) document.write('<td class="headerCell"><a href="appletHelp/lesson1.doc" target="_blank">Le&#231;on 1</td>');
	if (options.indexOf("1p") > -1) document.write('<td class="headerCell"><a href="appletHelp/lesson1.pdf" target="_blank">Le&#231;on 1 - PDF</td>');
	if (options.indexOf("2") > -1) document.write('<td class="headerCell"><a href="appletHelp/lesson2.doc" target="_blank">Le&#231;on 2</td>');
	if (options.indexOf("2p") > -1) document.write('<td class="headerCell"><a href="appletHelp/lesson2.pdf" target="_blank">Le&#231;on 2 - PDF</td>');
	if (options.indexOf("h") > -1) document.write('<td class="headerCell"><a href="appletHelp/help.doc" target="_blank">Aide</td>');
	if (options.indexOf("hp") > -1) document.write('<td class="headerCell"><a href="appletHelp/help.PDF" target="_blank">Aide - PDF</td>');
	if (options.indexOf("v") > -1) document.write('<td class="headerCell"><a href="../../../MovieResourceLauncher.htm?asset=' + folder + '/' + video + '" target="_blank">Vid&#233;o</td>');
	if (options.indexOf("n") > -1) document.write('<td class="headerCell"><a href="../../../frameSet.htm?asset=' + folder + '/animation.doc" target="_blank">Animation - French?</td>');
	if (options.indexOf("g") > -1) document.write('<td class="headerCell"><a href="../../../frameSet.htm?asset=glossary/glossary.html" target="_blank">Glossaire</td>');
	if (options.indexOf("s") > -1) document.write('<td class="headerCell"><a href="../../../frameSet.htm?asset=' + folder + '/showme.doc" target="_blank">ShowMe - French?</td>');
	if (options.indexOf("c") > -1) document.write('<td class="headerCell"><a href="../../../frameSet.htm?asset=' + folder + '/curriculum.doc" target="_blank">Curriculum - French?</td>');
	if (options.indexOf("a") > -1) document.write('<td class="headerCell"><a href="../../../frameSet.htm?asset=' + folder + '/assumptions.doc" target="_blank">Assumptions - French?</td>');
}

function embedFooter(options)
{
	/*
		Possible options for the embedFooter function are as follows:
			c - copyright link
			a - acknowledgements link
			f - feedback link
	*/
	
	//Display the various footer pieces based on the options passed from the Learning Object's HTML page.
	document.write('<p class="footer">');
	document.write('<img src="../../../images/logo.gif" alt="LearnAlberta.ca" />');
	
	if (options.indexOf("c") > -1) document.write('|&nbsp;&nbsp;<a href="#" onclick="OpenFooterAsset(\'../../../meta-content/copyright.html\');">Droit d\'auteur</a>');
	if (options.indexOf("a") > -1) document.write('&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#" onclick="OpenFooterAsset(\'../../../meta-content/acknowledgements.html\');">Remerciements</a>');
	if (options.indexOf("f") > -1) document.write('&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#" onclick="OpenFooterAsset(\'../../../meta-content/feedback.html\');">R&#233;troaction</a>');
	
	document.write('&nbsp;&nbsp;|');
	document.write('</p>');
}
