var iButton = new Image();
var iButton0 = new Image();

function GetLocation() 
{
L = (location).toString();
n = L.lastIndexOf("/");
return L.substr(0,n);
}

function GetQueryString() 
{
L = (location).toString();
n = L.indexOf("?");
var s = "";
if (window.screen.height == 600) s = ((n == -1) ? "?" : "&") + "PageWidth=700&PageHeight=450";
if (n == -1) return s;
return L.substr(n) + s;
}

function _onload()
{
ver = 0;
s = navigator.appVersion;
n = s.indexOf("MSIE");
if (n != -1) ver = parseFloat(s.substr(n+4));
if (navigator.appName != "Microsoft Internet Explorer" || ver < 5.0)
{
alert("infraEnterprise requires Microsoft Internet Explorer Version 5.0 or later");
return false;
}
iButton.src = "home_middle-middle_r.jpg";
target = GetLocation() + "/infraEnterprise.aspx" + GetQueryString();
if (document.all.wrapper != null)
{  
try
{
document.all.wrapper.NavigatePage(target);
document.all.DB.BringAppToFront(document.all.wrapper.GetProcID());
return true;
}
catch (exception) {};
}
alert("There was an error attempting to access a control. Please see your Administrator");
}

function MouseOver(item)
{
if (iButton0.src == "") iButton0.src = item.src;
item.src = iButton.src;
window.status = "Click button to reload infraEnterprise";
return true;
}

function MouseOut(item)
{
item.src = iButton0.src;
window.status = "";
return true;
}

