function navigateTo(val) { 
   if(val == 'new') { val = prompt('Gallery Name'); }
   if(val) { 
      document.location.href="beheer.php?album="+val;
   }
}

document.onmousedown = function(e) { 
   if(e.which > 1) { 
      return false;
   }
}
document.oncontextmenu = function(e) { 
   if(e.which > 1) { 
      return false;
   }
}
        function winWidth() {
                var myWidth = 0;
                if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
                        myWidth = window.innerWidth;
                } else if( document.documentElement &&
document.documentElement.clientWidth) {
    //IE 6+ in 'standards compliant mode'
                        myWidth = document.documentElement.clientWidth;
                } else if( document.body && document.body.clientWidth ) {
    //IE 4 compatible
                        myWidth = document.body.clientWidth;
                }
                return myWidth;
        }
// get window height independent of browser
        function winHeight() {
                var myHeight = 0;
                if( typeof( window.innerHeight ) == 'number' ) {
                        myHeight = window.innerHeight;
                } else if( document.documentElement &&
document.documentElement.clientHeight) {
                        myHeight = document.documentElement.clientHeight;
                } else if( document.body && document.body.clientHeight ) {
                        myHeight = document.body.clientHeight;
                }
                return myHeight;
        } 

