

//// Disable Right Click
var message="";

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false")
//// Disable Right Click

//// Title Tag / Status Bar
var default1 = "Welcome to Fresh Coffee!"; 
var text1 = "Welcome to Fresh Coffee!";

var changeRate = 2000; 
var messageNumber = 0;

function changeStatus() {
  if (messageNumber == 0) {
     window.status=default1;
     document.title=default1;
    }


  messageNumber++;
  setTimeout("changeStatus();",changeRate);

}

changeStatus(); 


function openWin( windowURL, windowName, windowFeatures ) { 
  return window.open( windowURL, windowName, windowFeatures ) ; 
 }
//// Title Tag / Status Bar

//// Bookmark
function addbookmark()
{
bookmarkurl="http://www.fresh-coffee.net"
bookmarktitle="Joffrey's coffee"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
//// Bookmark

//// Disable Text Select
function disableselect(e){
return false
}

function reEnable(){
return true
}

document.onselectstart=new Function ("return false")

if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
//// Disable Text Select

//// CSS Menu
activateMenu = function(nav) {

    /* currentStyle restricts the Javascript to IE only */
	if (document.all && document.getElementById(nav).currentStyle) {  
        var navroot = document.getElementById(nav);
        
        /* Get all the list items within the menu */
        var lis=navroot.getElementsByTagName("LI");  
        for (i=0; i<lis.length; i++) {
        
           /* If the LI has another menu level */
            if(lis[i].lastChild.tagName=="UL"){
            
                /* assign the function to the LI */
             	lis[i].onmouseover=function() {	
                
                   /* display the inner menu */
                   this.lastChild.style.display="block";
                }
                lis[i].onmouseout=function() {                       
                   this.lastChild.style.display="none";
                }
            }
        }
    }
}
window.onload= function(){
    /* pass the function the id of the top level UL */
    /* remove one, when only using one menu */
    activateMenu('nav'); 
   
}
//// CSS Menu
