function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function startpagina() 
{
if (navigator.appName == "Microsoft Internet Explorer")
	{
	 if (!hp.isHomePage('http://www.fastcode.nl/')) // checked of startpagina al is ingesteld
		{
		document.write('<a href=\"http://www.fastcode.nl\" onClick=\"style.behavior=\'url(#default#homepage)\';setHomePage(\'http://www.fastcode.nl\')\" onMouseOver=\"window.status = \'Maak van Fastcode je startpagina!\'; return true;\" onMouseOut=\"window.status = \' \' ;\">Fastcode je startpagina!</a>');
		}
	else	{
		document.write('&nbsp;Welkom op Fastcode.nl!');
		}
	}
else {
		document.write('<a href=\"#\" onClick=\"MM_showHideLayers(\'kliksleep\',\'\',\'show\')\" onMouseOver=\"window.status = \'Maak van Fastcode je startpagina!\'; return true;\" onMouseOut=\"window.status = \' \' ;\">Fastcode je startpagina!</a>');
	}
}
var req;

function showXML(url) {

   // IE
   try { req = new ActiveXObject("Msxml2.XMLHTTP"); }
   catch(e) {
      try { req = new ActiveXObject("Microsoft.XMLHTTP"); }
      catch(oc) { req = null; }
   }

   // Firefox & Safari
   if (!req && typeof XMLHttpRequest != "undefined") { req = new XMLHttpRequest(); }

   // Roept funct: change aan -> reload
   if (req != null) {
      req.onreadystatechange = startChange;
      req.open("GET", url, true);
      req.send(null);
   }
}

function startChange() {
   // Pagina geladen status 200 ok
   if (req.readyState == 4 && req.status == 200) {

      // Laat de gevonden items zien in showResults layer
      getObject("showResults").innerHTML = req.responseText;
   }
}

function getObject(name) {
   var ns4 = (document.layers) ? true : false;
   var w3c = (document.getElementById) ? true : false;
   var ie4 = (document.all) ? true : false;

   if (ns4) return eval('document.' + name);
   if (w3c) return document.getElementById(name);
   if (ie4) return eval('document.all.' + name);
   return false;
}


window.onload = function() {
   getObject("q").focus();
}

