var bVer = navigator.appName;
var bNum = parseInt(navigator.appVersion);

// Go to URL
function goUrl(strUrl) {
    window.location.href = strUrl;
}

// Shifts the background on object
function menuOver(obj) {
	obj.style.background='#ffcc33';
	obj.style.color='#333333'
}

// Shifts the background on object
function menuOut(obj) {
	obj.style.background='#687E97';
	obj.style.color='#EEEEEE'
}

// Shifts the background on object
function submenuOver(obj) {
	obj.style.background='#ffcc33';
}

// Shifts the background on object
function submenuOut(obj) {
	obj.style.background='#FFFFFF';
}


//General


function confirmLink(msg)
{
 bConfirm=confirm(msg)
 return (bConfirm);
}



function showmenu(elmnt)
{
document.all(elmnt).style.visibility="visible"
}

function hidemenu(elmnt)
{
document.all(elmnt).style.visibility="hidden"
}


function openURL(sURL) {
    opener.document.location = sURL; 
}


var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)

}



function placeFocus() {
if (document.forms.length > 0) {
var field = document.forms[0];
for (i = 0; i < field.length; i++) {
if ((field.elements[i].type == "text") || (field.elements[i].type == "textarea") || (field.elements[i].type.toString().charAt(0) == "s")) {
document.forms[0].elements[i].focus();
break;
         }
      }
   }
}	



// Generic Preload
function preload() {
  var d = document.images; var s, p; var y = 1;
  for(var x=0;x<d.length;x++) {s = new String(d[x].src);
    if(s.indexOf('/off/')!=-1) { p = s.replace(/off/gi, 'on');
      d[d.length+y] = new Image(); d[d.length+y].src = p; y++; 
      self.status = 'preloading : ' + p; }} self.status = '';
} 


// Generic Rollover
function r2(i) { 
  var e = document.images[i]; s = new String(e.src);
  e.src=(s.indexOf('off')==-1?s.replace(/\/on\//gi, '/off/'):s.replace(/\/off\//gi, '/on/'));
} 
