// This is the BRU functionality code.
//if (env.ns6)
//{
     //-- This next line ensures that any plugins just installed are updated in the Browser
     //-- without quitting the browser.
  //  navigator.plugins.refresh();
    //document.write("\x3C" + "applet MAYSCRIPT Code=NPDS.npDSEvtObsProxy.class" )
    //document.writeln(" width=5 height=5 name=appObs\x3E \x3C/applet\x3E")
// }

// The reason this is separated is because we are checking it for both WM (javascript)
// and RealPlayer (vbScript). I need to move this file to .js external file.

function ShowSplash() {
		document.getElementById('splashLayer').style.height = 290;
        document.getElementById('splashFrame').style.height = 290;
		document.getElementById('splashLayer').style.visibility = "hidden";
		getsSplash = false;
}

function checkStream(mySrc) {
	var pat_pre = mySrc.indexOf("prestream");
	var pat_mid = mySrc.indexOf("midstream");
	var pat_post = mySrc.indexOf("poststream");
	
	if (mySrc == "") {
		pat_pre = 1;
	}
	
	if ((pat_mid > 0) || (pat_post > 0)|| (pat_pre > 0)) {
		// The following code is for Oracle only - who wanted a different creative to expand
		// during the middle stream break.
		if (pat_mid > 0) {
			if (env.good_ie) {
				document.all.splashFrame.src = splashPath2;
			} else {
				document.layers['splashFrame'].document.src = splashPath2;
			}
		}
		
		ShowSplash();
	} else {
		Rollup();
		// The following code is for Oracle only - who wanted a different creative to expand
		// during the middle stream break.
			if (env.good_ie) {
				setTimeout("document.all.splashFrame.src = splashPath2;", 3000);
			} else {
				setTimeout("document.layers['splashFrame'].document.src = splashPath2;", 3000);
			}
		// End of Oracle code.

	}
}
