<!--

	// REQUIRES 3 VARIABLES

	// movie = full url of the ref movie (http:// or doc root)

	// title = one line string title of clip

	// player = 'real' or 'qt'

function video(movie,title,player,width,height,banner,bg,typeclass) {

	if ((typeclass == "#FFFFFF") || (typeclass == "FFFFFF")) { typeclass = "promo-white"; }
	if ((typeclass == "#000000") || (typeclass == "000000")) { typeclass = "promo-black"; }


	// if ((movie == null) || (title == null) || (player == null)) {

	//	alert("There are missing parameters. Check your code");

	//	}

	newWindow = window.open("","","width=360,height=200,RESIZABLE=NO,SCROLLBARS=NO");

	if (newWindow != null) {

	newWindow.moveTo(10,10);

	newWindow.document.writeln("<html><head><title>Sant Thakar Singh's: Audio Room<\/title>");
	newWindow.document.writeln("<link rel=stylesheet href=..\/pages\/ruhani.css>");
	newWindow.document.writeln("<SCRIPT LANGUAGE=JavaScript>");
	newWindow.document.writeln("<!-- Hide");
	newWindow.document.writeln("function close_window(){");
	newWindow.document.writeln("parent.window.close();}");
	newWindow.document.writeln("\/\/-->");
	newWindow.document.writeln("<\/SCRIPT>");
	newWindow.document.write("<\/head><body bgcolor=" + bg + " TOPMARGIN=0 LEFTMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH=0><table border=0 width=350 cellspacing=0 cellpadding=0 valign=top><tr><td colspan=3><IMG SRC=" + banner + " ALT=Manav Kendra Video Clip BORDER=0 align=left><\/td><\/tr><tr><td bgcolor=" + bg + " rowspan=2 align=center><b>" + title + "</b><hr><\/span><\/td><\/tr><\/table><table align=center><tr><td align=CENTER VALIGN=TOP bgcolor=" + bg + ">");

	if (player == 'qt') {

	newWindow.document.write("<OBJECT CLASSID=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" WIDTH=" + width + " HEIGHT=" + height + " CODEBASE=\"http:\/\/www.apple.com\/qtactivex\/qtplugin.cab\"><PARAM name=\"SRC\" VALUE=" + movie + "><PARAM name=\"BGCOLOR\" VALUE=\"" + bg + "\"><PARAM name=\"AUTOPLAY\" VALUE=\"true\"><PARAM name=\"CONTROLLER\" VALUE=\"true\"><EMBED SRC=" + movie + " PLUGINSPAGE=http:\/\/www.apple.com\/quicktime\/download\/ AUTOPLAY=TRUE CONTROLLER=TRUE width=" + width + " height=" + height + " bgcolor=" + bg + "><\/EMBED><\/OBJECT><\/td><\/tr><tr><td width=350 colspan=3 HEIGHT=35 VALIGN=BOTTOM><TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 BGCOLOR=" + bg + "><TR><TD><IMG SRC=..\/Videos\/spacer.gif width=100 height=1 border=0><\/TD><TD><IMG SRC=..\/Videos\/spacer.gif width=150 height=1 border=0><\/TD><TD><IMG SRC=..\/Videos\/spacer.gif width=100 height=1 border=0><\/TD><\/TR><TR><TD><a href=http:\/\/www.apple.com\/quicktime target=_blank><IMG SRC=http:\/\/www.RuhaniSatsang.com\/screening\/img\/template\/quicktime4download.gif target=_blank border=0 width=88 height=31 hspace=6><\/A><\/TD><TD align=center><SPAN class=" + typeclass + ">You need QuickTime 4.0 to view this clip<\/SPAN><\/TD><TD><a href=\"#\" onClick=\"javascript:window.close();\"><IMG SRC=http:\/\/www.RuhaniSatsang.com\/screening\/img\/template\/close.gif target=_blank border=0 width=100 height=31><\/A><\/TD><\/TR><\/TABLE><\/TD><\/TR><\/TABLE><\/body><\/html>");

	}

	else if (player == 'real') {

	newWindow.document.write("<br>&nbsp;<br<OBJECT ID=RP2 CLASSID=\"clsid:CFCDAA03-8BE40-11cf-B84B-0020AFBBCCFA\" WIDTH=" + width + " HEIGHT=26><PARAM NAME=SRC VALUE=" + movie + "><PARAM NAME=CONTROLS VALUE=ControlPanel><PARAM NAME=AUTOSTART VALUE=TRUE><PARAM NAME=CONSOLE VALUE=_master><EMBED nologo=true type=audio\/x-pn-realaudio-plugin nojava=true SRC=" + movie + " WIDTH=" + width + " HEIGHT=26 CONSOLE=_master controls=ControlPanel AUTOSTART=TRUE bgcolor=" + bg + "><\/EMBED><\/OBJECT><\/td><\/tr><\/table><table><TR><TD><a href=http:\/\/www.real.com target=_blank><IMG SRC=..\/Videos\/logo.real.gif border=0 width=100 height=33><\/A><\/TD><TD align=center><SPAN class=" + typeclass + ">You need RealPlayer  to view this clip<\/SPAN><\/TD><TD><a href=\"#\" onClick=\"javascript:window.close();\"><IMG SRC=..\/Videos\/close.gif target=_blank border=0 width=100 height=31><\/A><\/TD><\/TR><\/TABLE><\/TD><\/TR><\/TABLE><\/body><\/html>");

	}


	newWindow.document.write("");




	newWindow.document.close();

	newWindow.focus();

	}

}

// -->



