var popAllow
var ppt_animation = anim_obj()
function setSize()
	{
		var myWidth, myHeight, x, y
		x = 0
		y = 0
		myWidth = screen.availWidth
		myHeight = screen.availHeight
		if (myWidth > 900)
			{
			myWidth = 900
			x = (screen.availWidth - 900)/2
			}
		if (myHeight > 800)
			{
			myHeight = 800
			y = (screen.availHeight - 800)/2
			}
	
	self.resizeTo(myWidth,myHeight)
	self.moveTo(x,y)
  }

function start_up()
{
	//setSize()
	var str = ""
	if(navigator.OS != "win")
		{
		 str = "You need Microsoft Windows to use this page." + "\n" + "\n"
		}
	 if(navigator.org.toLowerCase() != "microsoft")
		{
		str = str + "Your browser is from: " + navigator.org + "\n" + "If this test does not work, switch to a browser from Microsoft.\n\nClick Start, select Run and type IEXPLORE.EXE and click OK"
		}
	
	if(str.length > 0)
		{
		alert(str)
		}
		
	//bMSvmAvailable = oClientCaps.isComponentInstalled("{22D6F312-B0F6-11D0-94AB-0080C74C7E95}","componentid");
   	//sMSvmVersion   = oClientCaps.getComponentVersion ("{22D6F312-B0F6-11D0-94AB-0080C74C7E95}","componentid");
   
   //sNeg = (bMSvmAvailable) ? sMSvmVersion : "not installed";
   	
	
	setTimeout("popup_blocked()",1500)
	

   	sTempStr = "\n" +
   			"Browser:"  +  navigator.userAgent 		+ "\n" + 
   			//"Screen:" +  oClientCaps.width    + "x" + oClientCaps.height + "\n" +
   			//"Avail_screen:"  + oClientCaps.availWidth + "x" + oClientCaps.availHeight    + "\n" + 
              //"Color_Depth:" + oClientCaps.colorDepth     + "\n" +
              //"Buffer_Depth:" + oClientCaps.bufferDepth    + "\n" +
              //"Connection_Type:" + oClientCaps.connectionType + "\n" +
              //"Cookies_Enabled:" + oClientCaps.cookieEnabled  + "\n" +  
              //"Cpu_Class:" + oClientCaps.cpuClass       + "\n" + 
              //"Java_Enabled:" + oClientCaps.javaEnabled    + "\n" + 
              //"Platform:" + oClientCaps.platform       + "\n" + 
              //"System_Language:" + oClientCaps.systemLanguage + "\n" + 
              //"User_Language:" + oClientCaps.userLanguage   + "\n" +
              "PPT_Animation:" +  ppt_animation  + "\n"  
              				

  
   
   document.Checkout.ClientCaps.value = 	  sTempStr;
   
  
}
function anim_obj()
	{
	// This control is normally installed by Office. It is required for Producer.
	var pMSOANIM
	try
		{
		pMSOANIM = new ActiveXObject("MsoRun.IEAnimBehaviorFactory.1")
		}
		catch(e)
			{
	 		return false
			}
	if (!pMSOANIM)
		{
   	 	return false
    	}
    	else
    		{
    		return true
    		}
	}

function popup_blocked()
	{
	var mypopup=window.open("","test_pop",'width=100,height=100');
	if (mypopup)
		{
  		mypopup.close();
  		}
		else
		{
		alert("You have blocked pop ups!" + "\n" + "Enabling pop ups from this site may improve your viewing experience." + "\n" + "Don't worry, you won't get any annoying 'advertising' pop ups.")
		}
  	
  	}

function getIndiv()
	{
	try
		{
		var str = netobj.GetDRMSecurityVersion()
		return str.substr(str.length-1,1) 
		}
		catch(e)
		{
		return -1
		}
	}
function start_test()
	{
	try
		{
		document.Player.controls.play()
		Msg.innerHTML ="<p align='center'><b><font face='Arial' color='#006699'>Attempting to start...</font></b></p>"
		}
		catch(e)
			{
			Msg.innerHTML ="<p align='center'><b><font face='Arial' color='#FF0000'>Error: Media player failed to start" + "<BR>" + "Make sure the player is installed" + "<BR>" + "Use the link at the bottom of this page to install the player" +"</font></b></p>"
			document.Checkout.ClientCaps.value = document.Checkout.ClientCaps.value + "Player_Start_Err:" + e.message + "\n"
			
			}
	}	

var pWin = null
function portWin(url)
    	{

    	pWin = window.open (url, "newWin", "menubar=no")
    	
    	pWin.focus()
       }
