
	var info = '';
		if (title !='') {info  = info + title;}
		if (speaker !='') {info  = info + ': ' + speaker}
		var wsWidth = document.getElementById('FLVplayer').style.width
		wsWidth = wsWidth.substr(0,(wsWidth.length-2));
		var wsHeight = document.getElementById('FLVplayer').style.height
		wsHeight = wsHeight.substr(0,(wsHeight.length-2));
		
		if(wsWidth == '') {
			wsWidth = 515;
			
		}
		
		if(wsHeight == '') {
			wsHeight = 305;
		}
		
					
	mov = 'movieSource=' + mov + '&info=' + info + '&cuepoints=' + cuepoints + '&bg=' + background + '&poster=' + poster + '&wsWidth=' + wsWidth + '&wsHeight=' + wsHeight + '&mresize=' + mresize + '&folder=' + folder + '&fsbutton=' + fscreen;
		
 if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '100%',
			'height', '100%',
			'src', theplayer,
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'false',
			'loop', 'false',
			'scale', 'noscale',
			//'wmode', 'transparent',  this breaks mouse wheel in FF
			'devicefont', 'true',
			'id', 'player',
			'bgcolor', background,
			'name', 'player',
			'menu', 'true',
			'allowFullScreen', 'true',
			'allowScriptAccess','always',
			'movie', theplayer,
			'salign', 'TL',
			'FlashVars', mov
			); //end AC code
	}

// talk to the flv and get the cuepoints
function getChapters(chapters,times)
{	

	if (chapters) {
	
		if (!document.getElementById('flvlink_1')) {
		var listChap = chapters.split(",")	
		var listTime = times.split(",")		
		var box = document.getElementById('chapterDiv');
		// loop through cuepoints and create html link for each
			for(i=1;i<listChap.length;i++) {				
			var sp = document.createElement('span');
			var a = document.createElement('a');  	
			a.appendChild(document.createTextNode(listChap[i]));	
			a.setAttribute("href","javascript:sendCue(" + "'" + listTime[i] + "'" + ",'" + listChap[i] +  "')");
			a.className = 'dlink'
			//a.setAttribute("class","dlink");
			a.id = "flvlink_" + i;
			sp.appendChild(a);
			br = document.createElement("br");
			br.style.clear = "both";
			sp.appendChild(br);
			box.appendChild(sp);			
			}
		}
	}
}
  
function getLink (str) {
    return str;
} 

function getMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName];
    } else {
        return document[movieName];
    }
}
// send cuepoint back to flv for chapter jumps
function sendCue(txx,chap) {
	var flash = getMovie('player');
    flash.cp(txx,chap);
}
// get the dimensions of the loaded flv and resize the movie div to match
function getDims(wd,ht){
	if (wd) {
	document.getElementById('FLVplayer').style.width = wd +"px";

	document.getElementById('chapterDiv').style.width = wd +"px";
	}
	if (ht) {
document.getElementById('FLVplayer').style.height = ht +"px";
	}
}