﻿/* void */var window_onload = function()
{
   
    if(document.getElementById("FilterButtonSpan")!=null)
       document.getElementById("FilterButtonSpan").style.display = "none";
}

if (window.attachEvent)
{
    window.attachEvent("onload", window_onload);
}
else if (window.addEventListener)
{
    window.addEventListener("load", window_onload, false);
}

// time between refreshes in milliseconds
/* number */var refreshInterval = 60000;
// object that holds refresh timeout
/* number */var refreshTimeout = null;

/*****************************************************************************
 * PUBLIC METHODS
 *****************************************************************************/
/**
 * Load handler for the page.
 */
/* void */var cameras_load = function()
{
    // queue up refresh action
    refreshTimeout = setTimeout("autoRefresh();", refreshInterval);
    
}

/**
 * Method that refreshes the page.
 */
/* void */function autoRefresh()
{
    /* HTMLElement */var form = document.aspnetForm;
    if (form != null)
    {
        form.submit();
    }
}

function addOnload(newFunction) {
	var oldOnload = window.onload;
	
	if (typeof oldOnload == "function") {
		window.onload = function() {
			if (oldOnload) {
				oldOnload();
			}
			newFunction();
		}
	}
	else {
		window.onload = newFunction;
	} 
}

addOnload(cameras_load);