<!--
var win=null;

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function MM_findObj(n, d) { //v3.0
  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); return x;
}

function MM_showHideLayers() { //v3.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 MM_setTextOfLayer(objName,x,newText) { //v3.0
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (navigator.appName=='Netscape') {document.write(unescape(newText)); document.close();}
    else innerHTML = unescape(newText);
}

function tmt_findObj(n){
	var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
	x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
	}else{x=document.getElementById(n)}return x;
}

function tmt_showhideAll(c){
	var v = (document.layers) ? ".visibility" : ".style.visibility";
	var arr = (document.layers) ? document.layers : (document.all) ? document.all.tags("DIV") : document.getElementsByTagName("DIV");
	for(var i=0;i<arr.length;i++){eval("arr["+i+"]"+v+"='"+c+"'");}
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function openBrWindow(theURL,winName,features)
{
  window.open(theURL,winName,features);
  window.focus;
}

function MM_changeProp(objName,x,theProp,theValue) { //v3.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)) eval("obj."+theProp+"='"+theValue+"'");
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function printArticle()
{
  if (window.print)
  {
    window.print();
    window.close();
  }
  else if (agt.indexOf("mac") != -1)
  {
    alert("Press 'Cmd+p' on your keyboard to print article.");
  }
  else
  {
    alert("Press 'Ctrl+p' on your keyboard to print article.")
  }
}

function confirmDelete(link) {
  if (confirm('Record verwijderen ?'))
  {
    document.location = (link);
    document.location = (link);
  }
  else
  {}
}

function centerwindow(mypage,myname,w,h)
{
  LeftPosition=(screen.width)?(screen.width-w)/2:100;
  TopPosition=(screen.height)?(screen.height-h)/2:100;

  settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no';
  win=window.open(mypage,myname,settings);
}

function centerwindow2(mypage,myname,w,h)
{
  LeftPosition=(screen.width)?(screen.width-w)/2:100;
  TopPosition=(screen.height)?(screen.height-h)/2:100;

  settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
  win=window.open(mypage,myname,settings);
}

function centerwindow3(mypage,myname,w,h)
{
  LeftPosition=(screen.width)?(screen.width-w)/2:100;
  TopPosition=(screen.height)?(screen.height-h)/2:100;

  settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
  win=window.open(mypage,myname,settings);
}

function centerwindow4(mypage,myname,w,h)
{
  LeftPosition=(screen.width)?(screen.width-w)/2:100;
  TopPosition=(screen.height)?(screen.height-h)/2:100;

  settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=auto,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
  win=window.open(mypage,myname,settings);
}

function centerwindow5(mypage,myname,w,h)
{
  LeftPosition=(screen.width)?(screen.width-w)/2:100;
  TopPosition=(screen.height)?(screen.height-h)/2:100;

  settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
  win=window.open(mypage,myname,settings);
}

function inspect(elm)
{
  currentobject = document.getElementById(elm);
  var str = "";
  for (var i in currentobject){
    str += i + ": " + currentobject.getAttribute(i) + "\n";
  }
  document.getElementById('TEMPTEMP').innerText = str;
  alert(str);
}

function inspectStyle(elm) 
{
  if (elm.style){
    var str = "";
    for (var i in elm.style){
	  str += i + ": " + elm.style[i] + "\n";
	}
	alert(str);
  }
}

function checkConditional(imgID) 
{
	var imgObj = document.getElementById(imgID);

	if (imgID == 'summaryarrow1')	var oTrg = document.getElementById('StatsSummaryDIV');
	if (imgID == 'summaryarrow2')	var oTrg = document.getElementById('StatsDaysOfMonthDIV');	
	if (imgID == 'summaryarrow3')	var oTrg = document.getElementById('StatsPageHitsDIV');		
	if (imgID == 'summaryarrow4')	var oTrg = document.getElementById('StatsYearHistoryDIV');
	if (imgID == 'summaryarrow5')	var oTrg = document.getElementById('StatsTotalUniqueVisitorsDIV');
	if (imgID == 'summaryarrow6')	var oTrg = document.getElementById('StatsTopBrowsersDIV');
	if (imgID == 'summaryarrow7')	var oTrg = document.getElementById('StatsTotalReferersDIV');	
	if (imgID == 'summaryarrow8')	var oTrg = document.getElementById('StatsAllHitsDIV');
	if (imgID == 'summaryarrow9')	var oTrg = document.getElementById('StatsSearchQueriesDIV');

  if (imgID == 'summaryarrow1') setHiddenValue('summaryactive1');
  if (imgID == 'summaryarrow2') setHiddenValue('summaryactive2');
  if (imgID == 'summaryarrow3') setHiddenValue('summaryactive3');
  if (imgID == 'summaryarrow4') setHiddenValue('summaryactive4');
  if (imgID == 'summaryarrow5') setHiddenValue('summaryactive5');
  if (imgID == 'summaryarrow6') setHiddenValue('summaryactive6');
  if (imgID == 'summaryarrow7') setHiddenValue('summaryactive7');
  if (imgID == 'summaryarrow8') setHiddenValue('summaryactive8');
  if (imgID == 'summaryarrow8') setHiddenValue('summaryactive9');

	if (imgObj.src == 'http://www.bikerider.nl/images/layout/white_arrow_up.gif')
	{
		imgObj.src = '/images/layout/white_arrow_down.gif';
		oTrg.style.display = 'block';
	}
	else
	{
		imgObj.src = '/images/layout/white_arrow_up.gif';
		oTrg.style.display = 'none';
	}

}

function setHiddenValue(field)
{
	if (document.getElementById(field).value == 'none') 
	  document.getElementById(field).value = 'block';
  else 
  	document.getElementById(field).value = 'none';
}

function toggleHelp() {
	if(document.getElementById('help').style.display == 'block')
		document.getElementById('help').style.display = 'none';
	else
		document.getElementById('help').style.display = 'block';
}

function /*out: String*/ number_format( /* in: float   */ number, 
                                        /* in: integer */ laenge, 
                                        /* in: String  */ sep, 
                                        /* in: String  */ th_sep ) {

  number = Math.round( number * Math.pow(10, laenge) ) / Math.pow(10, laenge);
  str_number = number+"";
  arr_int = str_number.split(".");
  if(!arr_int[0]) arr_int[0] = "0";
  if(!arr_int[1]) arr_int[1] = "";
  if(arr_int[1].length < laenge){
    nachkomma = arr_int[1];
    for(i=arr_int[1].length+1; i <= laenge; i++){  nachkomma += "0";  }
    arr_int[1] = nachkomma;
  }
  if(th_sep != "" && arr_int[0].length > 3){
    Begriff = arr_int[0];
    arr_int[0] = "";
    for(j = 3; j < Begriff.length ; j+=3){
      Extrakt = Begriff.slice(Begriff.length - j, Begriff.length - j + 3);
      arr_int[0] = th_sep + Extrakt +  arr_int[0] + "";
    }
    str_first = Begriff.substr(0, (Begriff.length % 3 == 0)?3:(Begriff.length % 3));
    arr_int[0] = str_first + arr_int[0];
  }
  return arr_int[0]+sep+arr_int[1];
}
//-->