function flash(banner, theWidth, theHeight,flv,myTitle) {
	output = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"" + theWidth + "\" height=\"" + theHeight + "\" id=\"video2\" name=\"video2\" align=\"middle\">  ";
	output += "<param name=\"allowScriptAccess\" value=\"sameDomain\" />  ";
	output += "<param name=\"movie\" value=\"" + banner + ".swf?myVid="+flv+"&myTitle="+myTitle+"\" />  ";
	output += "<param name=\"quality\" value=\"high\" />  ";
	output += "<param name=\"wmode\" value=\"transparent\">  ";
	output += "<embed id=\"video2\" name=\"video2\"  src=\"" + banner + ".swf?myVid="+flv+"&myTitle="+myTitle+"\" quality=\"high\" wmode=\"transparent\" width=\"" + theWidth + "\" height=\"" + theHeight + "\" name=\"TFSLogo\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />  ";
	output += "</object>  ";
	document.write(output);
}


function dickies(){

		var tempShell;
    tempShell = document.getElementById('unit');
    
   
    
	output = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"" + 300 + "\" height=\"" + 250 + "\" id=\"video2\" name=\"video2\" align=\"middle\">  ";
	output += "<param name=\"allowScriptAccess\" value=\"sameDomain\" />  ";
	output += "<param name=\"movie\" value=\"swf/dickies_rm.swf\" />  ";
	output += "<param name=\"quality\" value=\"high\" />  ";
	output += "<param name=\"wmode\" value=\"transparent\">  ";
	output += "<embed id=\"video2\" name=\"video2\"  src=\"swf/dickies_rm.swf\" quality=\"high\" wmode=\"transparent\" width=\"" + 300 + "\" height=\"" + 250 + "\" name=\"TFSLogo\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />  ";
	output += "</object>"  ;
     tempShell.innerHTML = output;
	
}


function changeFlash(banner, theWidth, theHeight,flv,myTitle){
		var tempShell;
    tempShell = document.getElementById('unit');
    
   
    
	output = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"" + theWidth + "\" height=\"" + theHeight + "\" id=\"video2\" name=\"video2\" align=\"middle\">  ";
	output += "<param name=\"allowScriptAccess\" value=\"sameDomain\" />  ";
	output += "<param name=\"movie\" value=\"" + banner + ".swf?myVid="+flv+"&myTitle="+myTitle+"\" />  ";
	output += "<param name=\"quality\" value=\"high\" />  ";
	output += "<param name=\"wmode\" value=\"transparent\">  ";
	output += "<embed id=\"video2\" name=\"video2\"  src=\"" + banner + ".swf?myVid="+flv+"&myTitle="+myTitle+"\" quality=\"high\" wmode=\"transparent\" width=\"" + theWidth + "\" height=\"" + theHeight + "\" name=\"TFSLogo\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />  ";
	output += "</object>"  ;
     tempShell.innerHTML = output;
	
}

function pauseVideo() {
     getFlashMovie("video2").pauseIt();
 }


function getFlashMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName];
    }
    else {
      if(document[movieName].length != undefined){
          return document[movieName][1];
      }
        return document[movieName];
    }
}

