function SetHover  (l_style){ l_style.backgroundColor='#8287A7';  }
function SetNoHover(l_style){ l_style.backgroundColor='#575C7D';  }

//---------------------
  function SetBlurLinks() {
//---------------------
//alert("SetBlurLinks");
  if (document.all) {
		for (var i in document.links) {
			document.links[i].onclick = document.links[i].blur
		}
	}
}

//------------------
  function initArray()
//------------------
{
  this.length = initArray.arguments.length;

  for (var i = 0; i < this.length; i++)
    this[i+1] = initArray.arguments[i];
}

//------------------------
  function WriteLastMod_UK()
//------------------------
{
  //This shows the user the last date this page was modified
  //Modified by Coffeecup.com *** Heavily modified by Bo Johansson

  var lastModDate = new Date(document.lastModified);


  var test = lastModDate.getYear();      // *** Mod Bo Johansson 2000-03-27

  if(isNaN(parseInt(test)) || test == 70 || test == 1970)
    lastModDate = new Date(operaParse(document.lastModified));


  test = lastModDate.getYear();      // *** Mod Bo Johansson 2000-03-27

  if(isNaN(parseInt(test)) || test == 70 || test == 1970)
    lastModDate = new Date(hotjavaParse(document.lastModified));


  test = lastModDate.getYear();      // *** Mod Bo Johansson 2000-03-27

  if(isNaN(parseInt(test)) || test == 70 || test == 1970)
    return;

  var DOWArray = new initArray("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
  var MOYArray = new initArray("January","February","March","April","May","June","July","August","September","October","November","December");

  //document.write("This page was last updated on ");
  document.write(DOWArray[(lastModDate.getDay()+1)],", ");
  document.write(MOYArray[(lastModDate.getMonth()+1)]," ");
  document.write(lastModDate.getDate(),", ");

  var year = lastModDate.getYear();

  if(year < 70)         //**** Modified by Bo Johansson 2000-03-27
    year += 2000;

  if(year < 1900)       //**** Modified by Bo Johansson 2000-01-01
    year += 1900;

  document.write(year, ".");
}

//------------------------
  function WriteLastMod_NL()
//------------------------
{
  //This shows the user the last date this page was modified
  //Modified by Coffeecup.com *** Heavily modified by Bo Johansson

  var lastModDate = new Date(document.lastModified);


  var test = lastModDate.getYear();      // *** Mod Bo Johansson 2000-03-27

  if(isNaN(parseInt(test)) || test == 70 || test == 1970)
    lastModDate = new Date(operaParse(document.lastModified));


  test = lastModDate.getYear();      // *** Mod Bo Johansson 2000-03-27

  if(isNaN(parseInt(test)) || test == 70 || test == 1970)
    lastModDate = new Date(hotjavaParse(document.lastModified));


  test = lastModDate.getYear();      // *** Mod Bo Johansson 2000-03-27

  if(isNaN(parseInt(test)) || test == 70 || test == 1970)
    return;

  var DOWArray = new initArray("zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag");
  var MOYArray = new initArray("januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december");

//  document.write(DOWArray[(lastModDate.getDay()+1)],", ");
  document.write(lastModDate.getDate()," ");
  document.write(MOYArray[(lastModDate.getMonth()+1)]," ");

  var year = lastModDate.getYear();

  if(year <   70) year += 2000;
  if(year < 1900) year += 1900;

  document.write(year);
}

//-------------
  function Trim(str) {
//-------------
  var out = str;

  while( out.charAt(0) == ' ' ) out = out.substring(1);
  while( out.charAt(out.length - 1) == ' ' ) out = out.substring(0, out.length - 2);

  return out;
}

//------------------
  function LoadImage( I_Name ) {
//------------------
  parent.tekst.document.open();
  parent.tekst.document.write( '<HTML>'
                             + '<body BGCOLOR="#575C7D">'
                             + '<TABLE WIDTH="100%" HEIGHT="100%" VALIGN=Middle><tr><TD>'
                             + '    <center>'
                             + '    <img src=' + I_Name + '></img>'
                             + '    </center>'
                             + '  </TD></tr></TABLE>'
                             + '</body></HTML>'
                             );
  parent.tekst.document.close();
}

function Speel( wat ){
  msgWindow=window.open( "Audio/" + wat,'PlayThis','toolbar=no,scrollbars=no,width=280,height=123,screenX=0,screenY=0');
  msgWindow.moveTo(0,0);
}

function LargeScreen() {
  return( window.screen.width >= 1024 )
}

function WriteD4DHead(){
  if( LargeScreen() ){
    document.write( '<Font Face="Arial" size=2><b>' +
                    'De Vierde Dimensie: Vuurwerkshows en Pyrotechnische Spektakels' +
                    '</b></font><b>' );
  }
}

function NoErrors(){return true}
function HideErrors(){ window.onerror=NoErrors}
function IsOpera(){ return navigator.userAgent.indexOf("Opera")>0 }

function MoveToTop( page, subPage, Destination ){
    if ( self==top ){ top.location = page + "?" + subPage + "?" + Destination }
}
