var mymessage = "Welkom bij Ton van den Berg BV Oudewater" ;  
var pos;
pos = 400;

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
}

function rtclickcheck(keyp){

  if (document.layers && keyp.which != 1) {
    alert(mymessage);
    return false;
  }


  if (document.all && event.button != 1) { 
    alert(mymessage);
    return false;
  }
}

document.onmousedown = rtclickcheck

function MakeMenuCell(file, title)
{
  if(parent.contentFrame.location.href.match(file))
  {
    document.write("<td class=MenuActive "); 
    document.write("onclick=parent.contentFrame.location.href='");
	document.write(file);
	document.write("' ");
	document.write("onmouseout =this.className='MenuActive' ");
	document.write("onmouseover=this.className='MenuActiveOver'>");
	document.write(title);
	document.write('</td>');
  }
  else
  {
    document.write("<td class=MenuOut "); 
    document.write("onclick=parent.contentFrame.location.href='");
	document.write(file);
	document.write("' ");
	document.write("onmouseout =this.className='MenuOut' ");
	document.write("onmouseover=this.className='MenuOver'>");
	document.write(title);
	document.write('</td>');
  }
}   

function GoToIndex()
{
  var ContentFilename;
  
  if(top==self)
  {
// what content page to open
    ContentFilename = self.location.href;
    pos = ContentFilename.lastIndexOf('/');
    ContentFilename = ContentFilename.substring(pos+1,ContentFilename.length);

// open frames page when contenpage is openen 
    if (window.location.href.match(/file/g))
    {
	  top.location.href="../../default.htm"; // opening local
    }
	else
	{
	  top.location.href="../../default.htm"; // opening on the web
	}
  }
}
function OneStepBackIndex()
{
  var ContentFilename;
  
  if(top==self)
  {
// what content page to open
    ContentFilename = self.location.href;
    pos = ContentFilename.lastIndexOf('/');
    ContentFilename = ContentFilename.substring(pos+1,ContentFilename.length);

// open frames page when contenpage is openen 
    if (window.location.href.match(/file/g))
    {
	//top.location.href="../../default.htm?"+ContentFilename; // opening local
	  //top.location.href="../default.htm"; // opening local
		top.location.href="../"; // opening local
    }
	else
	{
	  //top.location.href="../../default.htm?"+ContentFilename; // opening on the web
	   top.location.href="../"; // opening on the web
	}
  }
}
function BreakFrame()
{
  if(top!=self) 
  {
    top.location.href=self.location.href;
  }
}

function OnFramesetLoaded()
{
  var ContentFilename;

  ContentFilename = parent.location.search;
  ContentFilename = ContentFilename.substring(1);

// plage original content in contentFrame (if any)
  if(ContentFilename.length > 0)
  { 
    self.contentFrame.location.href = ContentFilename; 
  }
}


 
