/////////////////////////////////////
startList = function() 
{
	if (document.all&&document.getElementById) {
	/*navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
  				}
  				node.onmouseout=function() {
 					this.className=this.className.replace(" over", "");
   				}
   			}
  		}*/
		
		navRoot2 = document.getElementById("nav2");
		for (i=0; i < navRoot2.childNodes.length; i++) {
			node = navRoot2.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
  				}
  				node.onmouseout=function() {
 					this.className=this.className.replace(" over", "");
   				}
   			}
  		}
	}
}
window.onload=startList;


function Faces(){
	rand=Math.ceil(Math.random() * 4);
	document.write('<a href=' + 'faces.asp#story' + rand + ' >');
	document.write('<img src=' + 'images/faces_img' + rand + '.jpg' + ' + border="0" />');
	document.write('</a>');
}

function Tip(){
	rand=Math.ceil(Math.random() * 15);
	
	if(rand==1)
	{
		document.write('<a href="smarttip.asp">');
		document.write('<img src="images/TIP1.gif" border="0" />');
		document.write('</a>');
	}
	
	else
	//document.write('<a href=' + 'faces.asp#story' + rand + ' >');
	document.write('<img src=' + '"images/TIP' + rand + '.gif"' + 'border="0" />');
	//document.write('</a>');
}


function RunFlashAnim()
{
   document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="520" height="274" id="real_flash8" align="middle">\n');
   document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
   document.write('<param name="movie" value="materials/real_flash8.swf" />\n');
   document.write('<param name="menu" value="false" />\n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<param name="wmode" value="transparent" />\n');
   document.write('<param name="bgcolor" value="#ffffff" />\n');
   document.write('<embed src="materials/real_flash8.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="520" height="274" name="real_flash8" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
   document.write('</object>\n');
}



function RunFlash()
{
   document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="760" height="30" id="news_real" align="middle">\n');
   document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
   document.write('<param name="movie" value="materials/news_real.swf" />\n');
   document.write('<param name="menu" value="false" />\n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<param name="wmode" value="transparent" />\n');
   document.write('<param name="bgcolor" value="#ffffff" />\n');
   document.write('<embed src="materials/news_real.swf" menu="false" quality="medium" wmode="transparent" bgcolor="#ffffff" width="760" height="30" name="news_real" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
   document.write('</object>\n');
}



var vid = 1;
var video = "";
/*var temp=null;*/

function RunWin(vid){

switch(vid)
{
	case 1: video = "materials/GLOVER-REV 2.mpg"; break;
	case 2: video = "materials/Real Sense Clients.mpg"; break;
	case 3: video = "materials/Real Sense Rashean.mpg"; break;
	case 4: video = "materials/Rashean_RealSensePSA0809.mpg"; break;
	case 5: video = "materials/RasheanMom_RealSensePSA0809.mpg"; break;
	default: video = "materials/GLOVER-REV 2.mpg"; break;
}

/*newwindow=window.open(' ','','width=400, height=425, resizable=1');
if (newwindow.window.focus) { newwindow.window.focus(); }
temp= newwindow.document;*/

/*temp.write('<html><head><title></title></head>');
temp.write('<body><br/><br/><center>');*/
document.write('<OBJECT ID="MediaPlayer" WIDTH="320" HEIGHT="290" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" TYPE="application/x-oleobject">\n');
document.write('<PARAM NAME="URL" VALUE="' + video + '">\n');
document.write('<PARAM NAME="AUTOSTART" VALUE="True">\n');
document.write('<PARAM NAME="UIMODE" VALUE="Full">\n');
document.write('<PARAM NAME="FULLSCREEN" value="False">\n');
document.write('<PARAM NAME="ENABLECONTEXTMENU" value="True">\n');
document.write('<PARAM NAME="STRETCHTOFIT" value="false">\n');
document.write('<EMBED TYPE="application/x-mplayer2"\n');
document.write('SRC="' + video + '" ');
document.write('WIDTH="320"\n');
document.write('HEIGHT="290"\n');
document.write('AUTOSTART="True"\n');
document.write('SHOWCONTROLS="True"\n');
document.write('ENABLECONTEXTMENU="True"\n');
document.write('STRETCHTOFIT="false">\n');
document.write('</EMBED>\n');
document.write('</OBJECT>\n');
/*temp.write('</center></body></html>');
temp.close();*/
}


function RunQuick(vid){

switch(vid)
{
	case 1: video = "materials/GLOVER-REV 2.mpg"; break;
	case 2: video = "materials/Real Sense Clients.mpg"; break;
	case 3: video = "materials/Real Sense Rashean.mpg"; break;
	case 4: video = "materials/Rashean_RealSensePSA0809.mpg"; break;
	case 5: video = "materials/RasheanMom_RealSensePSA0809.mpg"; break;
	default: video = "materials/GLOVER-REV 2.mpg"; break;
}


/*newwindow=window.open(' ','','width=400, height=425, resizable=1');
if (newwindow.window.focus) { newwindow.window.focus(); }
temp= newwindow.document;*/

/*temp.write('<html><head><title></title></head>');
temp.write('<body><br/><br/><center>');*/
document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="290" codebase="http://www.apple.com/qtactivex/qtplugin.cab">\n');
document.write('<param name="src" value="' + video + '" >\n');
document.write('<param name="autoplay" value="true" >\n');
document.write('<param name="controller" value="true" >\n');
document.write('<param name="loop" value="false" >\n');
document.write('<embed src="' + video + '" width="320" height="290" autoplay="true" controller="true" loop="false" bgcolor="#000000" pluginspage="http://www.apple.com/quicktime/download/" >\n');
document.write('</embed>\n');
document.write('</object>\n');
/*temp.write('</center></body></html>');
temp.close();*/
}