function flash(banner, theWidth, theHeight,vid) {
	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\" align=\"middle\">  ";
	output += "<param name=\"allowScriptAccess\" value=\"sameDomain\" />  ";
	output += "<param name=\"movie\" value=\"" + banner + ".swf?myVid=http://76.12.21.251/BASF/"+vid+".flv\" />  ";
	output += "<param name=\"quality\" value=\"high\" />  ";
	output += "<param name=\"wmode\" value=\"transparent\">  ";
	output += "<embed src=\"" + banner + ".swf?myVid=http://76.12.21.251/BASF/"+vid+".flv\" 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 changeVideo(which){

	var tempShell;
    tempShell = document.getElementById('video_holder');
    
    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=\"" + 700 + "\" height=\"" + 430 + "\" id=\"video2\" align=\"middle\">  ";
	output += "<param name=\"allowScriptAccess\" value=\"sameDomain\" />  ";
	output += "<param name=\"movie\" value=\"" + "map" + ".swf?myVid=http://76.12.21.251/BASF/"+which+".flv\" />  ";
	output += "<param name=\"quality\" value=\"high\" />  ";
	output += "<param name=\"wmode\" value=\"transparent\">  ";
	output += "<embed src=\"" + "map" + ".swf?myVid=http://76.12.21.251/BASF/"+which+".flv\" quality=\"high\" wmode=\"transparent\" width=\"" + 700 + "\" height=\"" + 430 + "\" name=\"TFSLogo\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />  ";
	output += "</object>  ";
     tempShell.innerHTML = output;
	changeClassNames('watch_grey','watch');
     temp=document.getElementById(which);
     
     
	document.getElementById(which).className  = 'watch_grey';
	/*document.getElementById('contentFRAME').src=which+".html";*/
	//document.getElementById(which).scrollIntoView(true);

	/*autoResize('contentFRAME');*/

}


function changeClassNames(oldClassName,newClassName) {
       var divs = document.getElementsByTagName('div')
       for (var i=0;i<divs.length;i++) if (divs[i].className==oldClassName) divs[i].className=newClassName;
      //alert("here");
       return false; 
     }

function changeContent() 
{ 
	
	var _y = document.getElementById('story'); 
	var _x = window.frames[0].document.body.innerHTML; 
	_y.innerHTML = _x 

} 

function autoResize(id) {
    if (element = document.getElementById(id)) {
        var mynode = element.contentWindow.document.body;
        element.height= mynode.scrollHeight + "px";
        element.width= mynode.scrollWidth + "px";
    }
}