
var popUpWin = false;
var browsertype=false;
var FREQ        = 0.50;
var rand = getRandom();

if((navigator.appName=="Netscape")&&(parseInt(navigator.appVersion)>=3)) browsertype=true;
if((navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion)>=4)) browsertype=true;


if (FREQ >= rand ) {
	launchHelp('http://webcam.ojotv.com/survey.htm','height=450,width=437,scrollbars=1');
}





function objectdata(hsize,vsize,hilite,original,messge)
{if(browsertype)
{		this.messge=messge;
		this.simg=new Image(hsize,vsize);
		this.simg.src=hilite;
		this.rimg=new Image(hsize,vsize);
		this.rimg.src=original;
}}

function swapimg(ToImg, FromImg)
  {
    document.images[ToImg].src=document.images[FromImg].src
  }

function hilite(name)
{if(browsertype) 
{//window.status=object[name].messge;
document[name].src=object[name].simg.src;}} 

function original(name)
{if(browsertype) 
{//window.status="";
document[name].src=object[name].rimg.src;}} 

function launchHelp(newURL, newFeatures)
{
  if ((navigator.appName=='Microsoft Internet Explorer') && (window.HelpWindow)) HelpWindow.close();
  HelpWindow = open(newURL, "HelpWindow", newFeatures + ",screenX=0,left=0,screenY=0,top=0,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,status=0,toolbar=0,scroll=1");
  if (HelpWindow.opener == null) HelpWindow.opener = window;
  //HelpWindow.focus();
}

function CheckPopup() {
	if (popUpWin) {
		popUpWin.close();
	};
};


function launchWin(href, target, params)
{
  var features = params + ',screenX=0,left=0,screenY=0,top=0,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,status=0,toolbar=0';
  popWin = window.open(href, target, features);
  if (popWin.focus) popWin.focus();
}

function getRandom () {
  if((navigator.appName == "Netscape") && 
   ((navigator.appVersion.indexOf("2.0") >= 0) || 
   (navigator.appVersion.indexOf("Win3") >= 0))) {
   now = new Date();
   // pseudo random
   return (now.getTime() % 1000000) / 1000000;
  } else {
    return Math.random();
  }
}