﻿// JScript File

function cfTubePlayerOpen(filename){
	if(filename != undefined && filename != ""){
		window.open('/NS/ctube_player.php?v='+filename, 'cfTubePlayer', 'width=640,height=560,left=360,top=60');
	}	
}

function changeCFTubeFileName2() {
	
	var left = (( screen.width / 2 ) - ( w / 2 ) - 280);
	var top = ( screen.height / 2 ) - ( h / 2 );
	
	newwindow2 = window
			.open('', 'name', 'height=560,width=640,left='+left+',top='+top);
	var tmp = newwindow2.document;

	var CFTubeFileName2 = document.getElementById('CFMembersPosting').value;

	// Change Path
	var CFPath = 'http://www.comancheflyer.com/NS/movies/';

	// Filename passed from Index page
	var CFFile = document.getElementById("CFMembersPosting").value;

	tmp
			.write('<html><head><title>Comanche Tube</title></head><body topmargin=0 leftmargin=0>');

	tmp
			.write('<table border=0 width=700 cellpadding=0 cellspacing=0 style=border-collapse: collapse bgcolor=#3333cc>');
	tmp
			.write('<tr bgcolor=#3333cc ><td align=center colspan=2><font size=+6 color=black><i>Comanche Tube</i></font></td></tr>');

	tmp
			.write('<tr><td colspan=2><object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0 width=640 height=480>');
	tmp.write('<param name=movie value=' + CFPath + CFFile + '_pl.swf>');
	tmp.write('<param name=wmode value=transparent>');
	tmp
			.write('<param name=bgcolor value=#000000><param name=quality value=high> ');
	tmp.write('<param name=menu value=true><param name=play value=true> ');
	tmp.write('<param name=loop value=true><param name=scale value=noscale> ');

	tmp
			.write('<param name=flashvars value=videoUrl='
					+ CFPath
					+ CFFile
					+ '.flv&loopVideo=stopstart&playOnLoad=false&autobuffer=true&embed=false> ');
	tmp
			.write('<embed src='
					+ CFPath
					+ CFFile
					+ '_pl.swf type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer wmode=transparent bgcolor=#000000 width=640 height=480 quality=high menu=true play=true loop=true scale=noscale flashvars=videoUrl='
					+ CFPath
					+ CFFile
					+ '.flv&loopVideo=stopstart&playOnLoad=false&autobuffer=true&embed=false></embed></object>');
	tmp.write('</td></tr>');

	tmp.write('<tr><td colspan=2 align=center><b>' + CFFile
			+ '</b></a> </td></tr>');

	tmp.write('</table>');
	tmp.write('</body></html>');
	tmp.close();
}
// - <a href="javascript:self.close()">CLOSE COMANCHE TUBE

