var bVer = navigator.appName;
var bNum = parseInt(navigator.appVersion);

// Go to URL
function goUrl(strUrl) {
  if (window.parent != null)
    window.parent.location.href = strUrl;
  else
    window.location.href = strUrl;
}

// Shifts the background on object
function menuOver(obj) {
	obj.style.background='#FFFFDD';
}

// Shifts the background on object
function menuOut(obj) {
	obj.style.background='#dbd9d4';
}

// Shifts the background on object
function submenuOver(obj) {
	obj.style.background='#FFFFDD';
}

// Shifts the background on object
function submenuOut(obj) {
	obj.style.background='#eeeeec';
}

function bookmarkUrl(strUrl, strTitle) {
  window.external.AddFavorite(strUrl, strTitle)
}

//Login using DI
function DoLogin()
{
  var sDI = document.frmLogin.di.value;
  var sReturnURL = (window.parent != null ? window.parent.location.href : window.location.href);
  sReturnURL = sReturnURL.split("?")[0];

  PopupLoginDialog(sDI, sReturnURL);
}

function onSearch()
{
  if (document.forms.search.search.value == "")
    return false;

  if (document.forms.search.site.value == "web")
  {
    window.open("http://www.google.com/search?q=" + escape(document.forms.search.search.value));
    return false;
  }
}

function ClearLogin()
{
  if (document.all("di").value == document.all("di").getAttribute("default"))
    document.all("di").value = "";
}
function SetDefaultLoginText()
{
  if (document.all("di").value == "")
    document.all("di").value = document.all("di").getAttribute("default");
}

