<!--
//Random Image Website 
function getImage() 
{ 
   images = new Array();
   images[0] = "<img src='img/intro/1.jpg' border='0'>"; 
   images[1] = "<img src='img/intro/2.jpg' border='0'>"; 
   images[2] = "<img src='img/intro/3.jpg' border='0'>"; 
   images[3] = "<img src='img/intro/4.jpg' border='0'>"; 
   
   index = Math.floor(Math.random() * images.length); 

   document.write(images[index]); 
}

function OK_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.OK_p) d.OK_p=new Array();
    var i,j=d.OK_p.length,a=OK_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.OK_p[j]=new Image; d.OK_p[j++].src=a[i];}}
}

function OK_swapImgRestore() { //v3.0
  var i,x,a=document.OK_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function OK_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=OK_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function OK_swapImage() { //v3.0
  var i,j=0,x,a=OK_swapImage.arguments; document.OK_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=OK_findObj(a[i]))!=null){document.OK_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function OK_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//scroll script
var scroller  = null;
var scrollbar = null;

function scrollbarEvent (o, type) {
	if (type == "mousedown") {
		if (o.className == "Scrollbar-Track") o.style.backgroundColor = "#dbdbdb";
		else o.style.backgroundColor = "#BBB";
	} else {
		if (o.className == "Scrollbar-Track") o.style.backgroundColor = "#dbdbdb";
		else o.style.backgroundColor = "#7f7f7f";
	}
}
//franse pagina
var mem;
var Menu;
function showLayerFR(sp,clicked){
  document.getElementById("contentFR").style.visibility = "visible";
  mem = sp;
  Menu = clicked;
}
function hideLayerFR(lang){
  if(Menu == "collectie"){
	getData('pages/collectieAjax.php?'+mem+'menuClick='+Menu+'&langNEW='+lang+'','mainMenu','langTop');
  }
  else if(Menu == "projectcollectie"){	
  	getData('pages/collectieAjax.php?'+mem+'menuClick='+Menu+'&langNEW='+lang+'','mainMenu','langTop');
  }
  else if(Menu == "dealeroverzicht"){	
  	getData('pages/dealeroverzichtAjax.php?'+mem+'menuClick='+Menu+'&langNEW='+lang+'','mainMenu','langTop');
  }
  else if(Menu == "onderhoud"){	
  	getData('pages/onderhoudAjax.php?'+mem+'menuClick='+Menu+'&langNEW='+lang+'','mainMenu','langTop');
  }
  else if(Menu == "prijslijsten"){	
  	getData('pages/prijslijstAjax.php?'+mem+'menuClick='+Menu+'&langNEW='+lang+'','mainMenu','langTop');
  }
  else if(Menu == "nieuws"){	
  	getData('pages/nieuwsAjax.php?'+mem+'menuClick='+Menu+'&langNEW='+lang+'','mainMenu','langTop');
  }
  else if(Menu == "contact"){	
  	getData('pages/contactAjax.php?'+mem+'menuClick='+Menu+'&langNEW='+lang+'','mainMenu','langTop');
  }
  else{
  	getData('pages/mainAjax.php?langNEW='+lang+'','mainMenu','langTop');
  }
}
//open new window when klikken link
function openLink(URI){
win = window.open(URI,"secWin","left=100,scrollbars=yes,resizable=yes,location=yes");
win.focus;
}
//-->

function LL_rollOver(img_name, img_src)
{
   document[img_name].src = img_src;
}

function LL_hideBlock(id)
{
    document.getElementById(id).style.visibility = "hidden";
}

function getElementsByName_iefix(tag, name) {
     
     var elem = document.getElementsByTagName(tag);
     var arr = new Array();
     for(i = 0,iarr = 0; i < elem.length; i++) {
          att = elem[i].getAttribute("name");
          if(elem[i].className.indexOf('menuItem') != -1){
               arr[iarr] = elem[i];
               iarr++;
          }
     }
     return arr;
}
	  
function LL_toggleSubmenu(id)
{
	cells = getElementsByName_iefix("img","menuItem");
	
	for (var i = 0; i < cells.length; i++) { 
		status = cells[i].src;
		
		if (cells[i].src.indexOf("B.jpg") > 0 && cells[i].src.indexOf("aanbod") == -1) {
			saveStatus = i;
			
			cells[i].src = cells[i].src.replace("B.jpg","T.jpg");
		}
	}
	
	
	

   if(document.getElementById("outlet").src.indexOf("img/menu/nl/aanbodT.jpg") > 0){
	   document.getElementById("outlet").src = "img/menu/nl/aanbodB.jpg";
   } else {
	   cells[saveStatus].src = cells[saveStatus].src.replace("T.jpg","B.jpg");
	   document.getElementById("outlet").src = "img/menu/nl/aanbodT.jpg";
   }
   
   if(document.getElementById(id).style.display == "none"){
	   	document.getElementById(id).style.display = "block";
   }else{
		document.getElementById(id).style.display = "none";  
   }

   
   
}

