function embedFlashObject(asset, color) 
{		
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
		document.write('height="600"');
		document.write('width="960">');
		document.write('<param name="src" value="' + asset + '">');
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		document.write('<param name="align" value="middle">');
		document.write('<param name="quality" value="high">');
		document.write('<param name="bgcolor" value="' + color + '">');
		document.write( '<embed ' );
		document.write( '  src="' + asset + '" ' );
		document.write( '  name="' + asset + '"' );
		document.write( '  height="600" ' );
		document.write( '  width="960" ' );
		document.write( '  align="middle" ' );
		document.write( '  quality="high" ' );
		document.write( '  allowScriptAccess="sameDomain" ' );
		document.write( '  scale="tofit" ' );
		document.write( '  pluginspage="http://www.macromedia.com/go/getflashplayer" ' );
		document.write( '  bgcolor="' + color + '" ' );
		document.write( '  type="application/x-shockwave-flash">' );
		document.write( '</embed>' );
		document.write('</object>');
}

function MovieLauncher(URL, lang)
{
	window.open("movieLauncher.html?asset="+URL+"&lang="+lang);
}

function embedMovie() {
	var asset = parent.window.location.search.substring(7, parent.window.location.search.indexOf("lang") - parent.window.location.search.indexOf("asset"));
							
	asset = asset.replace("SMIL/","MOVIES/").replace(".smil",".mov");
							
	document.write("<object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' width='100%' height='95%' codebase='http://www.apple.com/qtactivex/qtplugin.cab'>");
		document.write("<param name='src' value='../../js/" + 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='tofit' />");
		document.write("<param name='kioskmode' value='true' />");
		document.write("<param name='bgcolor' value='#000000' />");
			
		document.write("<embed ");
			document.write("src='" + asset + "'");
			document.write("width='100%'");
			document.write("height='95%'");
			document.write("autoplay='true'");
			document.write("scale='tofit'");
			document.write("kioskmode='true'");
			document.write("bgcolor='#000000'");
			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 OpenMovie(URL)
{
	window.open("movieLauncher.html?asset=" + URL,"","toolbar=no,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,scrolling=yes,resizable=yes,width=500,height=400,left=0,top=0");
}

function OpenFooterAsset(URL)
{
	window.open(URL,"Career_Quest_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 buttonChange(itemID, identifier){	/*	var imageRef = document.getElementById(itemID);	var arrayLength = buttonArray.length;		for (i = 0; i < arrayLength; i++)	{		buttonArray[i].src = "images/" + buttonArray[i].id + "_btn_off.gif";	}		activeSelection = itemID;		if (itemID != "full") imageRef.src = "images/" + itemID + "_btn_on.gif";	*/		window.open("index_desc.html","descriptionPage");}function LA_swapImgRestore(itemID) {	if (itemID != activeSelection)	{		var imageRef = document.getElementById(itemID); 				imageRef.src = "../images/" + itemID + "_btn_off.gif"; 	}}function LA_swapImage(itemID) {	if (itemID != activeSelection)	{		var imageRef = document.getElementById(itemID); 				imageRef.src = "../images/" + itemID + "_btn_on.gif"; 	}}function LA_swapImgRestore2(itemID) {	var imageRef = document.getElementById(itemID); 		imageRef.src = "thumbnails/" + itemID + ".jpg"; }function LA_swapImage2(itemID) {	var imageRef = document.getElementById(itemID); 		imageRef.src = "thumbnails/" + itemID + "_gray.jpg"; }function arraySorter(whichArray, whichField)
{
	// whichArray: {name:value, name:value, ..... }
	// whichField: String -- One of the names in whichArray to sort by.
	var temp = [];
	
	for (var i = 0; i < whichArray.length; i++) 
	{
		temp.push([whichArray[i][whichField], whichArray[i]]);
	}
	
	temp.sort();
	
	for (var i = 0; i < temp.length; i++) 
	{
		whichArray[i] = temp[i][1];
	}
}

function showHideText()
{
	var layer = document.getElementById("textArea");
	var button = document.getElementById("showHideButton");
	var targetIFrame = document.getElementById("menu");
	
	if (layer.innerHTML == "")
	{
		button.src = "img/hide.gif";
		layer.innerHTML = '<iframe name="menu" src="menu.html" scrolling="auto" height="100%" width="150px" frameborder="0"></iframe>';
		
		var text = "";
		
		if (navigator.appVersion.indexOf("Safari") > -1)
		{
			for (var i=0; i<35; i++) 
			{
				text += '&nbsp;';
			}
		}
			
		layer.innerHTML += text;
	}
	else
	{
		button.src = "img/show.gif";
		layer.innerHTML = '';
		targetIFrame.width = "0";
	}
}