//<!-- Hide script from old browser
IE4plus = (document.all) ? true : false;
NS4 = (document.layers) ? true : false;
function clickIE()
{
    return false;
}
function clickNS(e)
{
	if (e.which==2 || e.which==3) 
     {
       return false;
     }
}
if (!IE4plus) 
{
   document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP);
   document.onmousedown=clickNS;
   document.onmouseup= clickNS;
   document.oncontextmenu=clickIE; // For NS 6+
} 
else 
{
   document.onmouseup= clickIE;
   document.oncontextmenu=clickIE;
}

var xmlhttp;
if(window.ActiveXobject){
	xmlthttp=new ActiveXObject("Microsoft.XMLHTTP");
	}else{
		xmlhttp = new XMLHttpRequest();
		}
function makerequest(serverPage, objID){
var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function(){
if(xmlhttp.readyState == 4 && xmlhttp.status == 200){
obj.innerHTML = xmlhttp.responseText;
}
}		
xmlhttp.send(null);
}

   if (document.images)
    {
      preload_image_object = new Image();
      image_url = new Array();
      image_url[1] = "images/private.gif";
      image_url[2] = "images/private1.gif";
	    
      var i = 1;
      for(i=1; i<=2; i++) 
      preload_image_object.src = image_url[i];

      button1 = new Image
      button2 = new Image
	  button1.src = 'images/private1.gif'
	  button2.src = 'images/private.gif'
	}
var win = null;
   
function open_win(url_add)
   {
if (win == null || win.closed)
win = window.open(url_add,'livecam','width=470,height=470,left=150,top=0');
else
    win.close();
	win = window.open(url_add,'livecam','width=470,height=470,left=150,top=0');
   }
//End hiding script from old browser-->