ns = (document.layers)? true:false 
ie = (document.all)? true:false 

if (ns) document.captureEvents(Event.MOUSEMOVE | Event.MOUSEDOWN) 

document.onmouseover   = winStatus; 
document.onmouseup     = winStatus; 
document.onmousedown   = mouseDown; 
document.oncontextmenu = mouseDown; 

function winStatus(ev){
//	window.status = "Copyright © Branches Online"; 
	return true;
}

function mouseDown(ev){
    winStatus(ev);
    if (ie && event.button != 1) return false; 
    if (ns && ev.which == 3) return false; 
}

function MM_reloadPage(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

function flip(name,src) {
    if (document.images)
        document.images[name].src = src;
}

function open_window(url, width, height) {
    opener = window.open(url, 'PopupWindowY'+width+'X'+height, 'menubar=no,scrollbars=no,status=no,resizable=no,directories=no,location=no,toolbar=no,width='+width+',height='+height);
    opener.focus();
}

function open_window_scroll(url, width, height) {
    opener = window.open(url, 'PopupWindowScrollY'+width+'X'+height, 'menubar=no,scrollbars=yes,status=no,resizable=no,directories=no,location=no,toolbar=no,width='+width+',height='+height);
    opener.focus();
}

function open_window_music(url, width, height) {
    opener = window.open(url, 'PopupMusicWindow', 'menubar=no,scrollbars=no,status=no,resizable=no,directories=no,location=no,toolbar=no,width='+width+',height='+height);
    opener.focus();
}

function open_window_popup(url, width, height) {
    open_window(url, width, height);
}

function open_window_popup_scroll(url, width, height) {
    open_window_scroll(url, width, height);
}

function open_window_popup_print(url, width, height) {
    open_window(url, width, height);
}

function open_window_popup_scroll_print(url, width, height) {
    open_window_scroll(url, width, height);
}


