// Scripts:
//
// - No Image Tool Bar (META)
// - MouseOver Script
// - FullScreen Script
// - Rechter muis uit  -- STAAT UIT
// - Shift Button uit  -- STAAT UIT


var Count = 100; var Text = "This is the line that you edit."; var Speed = 90; var timerID = null; var TimerRunning = false; 
var i = 0; while (i ++ < 140) Text = " " + Text; function Scroll(){ 
window.status = Text.substring(Count++, Text.length); if (Count == Text.length) 
Count = 0; timerID = setTimeout("Scroll()", Speed); TimerRunning = true; 
} function Start(){ Stop(); Scroll(); } function Stop(){ if(TimerRunning) clearTimeout(timerID); 
TimerRunning = false; } Start();



// =========================================
// Disable Javascript Errors
// =========================================
//function NoError()
//{
//return true;
//}
//window.onerror=NoError;


IBrowserCanvas browser = BrowserFactory.spawnInternetExplorer();

browser.addJavascriptListener(new JavascriptAdapter() {
         public void onJavascriptDialog(JavascriptEvent e) {
                 e.blockDialog();
         }
});


// =========================================
// No Image Tool Bar (META)
// =========================================
document.write("<META HTTP-EQUIV='imagetoolbar' CONTENT='no'>")


// =========================================
// Disable right click
// =========================================

var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")



// =========================================
// Disable Shift, Alt, CTRL click
// =========================================

function mouseDown(e) {
 var ctrlPressed=0;
 var altPressed=0;
 var shiftPressed=0;
 if (parseInt(navigator.appVersion)>3) {
  if (navigator.appName=="Netscape") {
   var mString =(e.modifiers+32).toString(2).substring(3,6);
   shiftPressed=(mString.charAt(0)=="1");
   ctrlPressed =(mString.charAt(1)=="1");
   altPressed  =(mString.charAt(2)=="1");
   self.status="modifiers="+e.modifiers+" ("+mString+")"
  }
  else {
   shiftPressed=event.shiftKey;
   altPressed  =event.altKey;
   ctrlPressed =event.ctrlKey;

  }
  if (shiftPressed || altPressed || ctrlPressed) 
   alert ("Muis Klik met de "
    + (shiftPressed ? "Shift ":"")
    + (altPressed   ? "Alt "  :"")
    + (ctrlPressed  ? "Ctr " :"")
    + " is niet toegestaan."
   )
 }
 return true;
}
if (parseInt(navigator.appVersion)>3) {
 document.onmousedown = mouseDown;
 if (navigator.appName=="Netscape") 
  document.captureEvents(Event.MOUSEDOWN);
}
