<!--


// include extra javascript
  document.write('<script type="text/javascript" src="'+ '../include/hoverintent.js' + '"></scr' + 'ipt>'); 


$(document).ready(function(){
	// DROPDOWN PRIM NAV
    $("#nav-blue li").hover(
        function(){ $("ul", this).fadeIn("fast"); }, 
        function() { } 
    );
	$("#nav-blue li").hoverClass ("sfHover");
	
	// DROPDOWN RANGE NAV
    $("#nav-one li").hover(
        function(){ $("ul", this).fadeIn("fast"); }, 
        function() { } 
    );	
    $("#nav-one li").hoverClass ("sfHover");
	
	// GEEN BORDER OP LAATSTE UL
	$('#navside > ul').eq(2).css('border-bottom', 0);
	$('#navside > ul').eq(2).css('margin-bottom', 0);
	
	// SUBNAV VERTICAL VERBERGEN
   	$('#navside ul li ul').hide();
	
   // SUBNAV VERTICAL TONEN (on hoverintent LI )
   	$("#navside ul > li").hoverIntent({
		sensitivity: 10, 
		interval: 100, 
		over: function() { 
			$(this).find('ul').slideDown()
		}, 
		timeout: 250, 
		out: function() { 
			// VERBERGEN DOEN WE NIET OM KERMIS TE VERMIJDEN
			//$(this).find('ul').toggle()
		}
	});
	
	
	
    /*// SUBNAV VERTICAL TONEN ON HOVER
   	$('#navside ul > li').hover(
     function(){
       $(this).find('ul').slideToggle()
     },
     function(){
       // VERBERGEN DOEN WE NIET OM KERMIS TE VERMIJDEN
	   //$(this).find('ul').toggle()
     }
   	);*/
	
	/*
	// SUBNAV VERTICAL VERBERGEN (on hoverout DIV )
	$('#navside').hover(
     function(){},
     function(){
	   $(this).find('ul li ul').hide()
     }
   );
   
   */

	
});

$.fn.hoverClass = function(c) {
    return this.each(function(){
        $(this).hover( 
            function() { $(this).addClass(c);  },
            function() { $(this).removeClass(c); }
        );
    });
};	  


function fPopupPicFindImageFromControl(oPopupImgPath, controlID) { 
	var vImg = document.getElementById(controlID);
	var vImgName = vImg.src;
	vImgName = vImgName.substring(vImgName.lastIndexOf("/")+1);
	fPopupPic(oPopupImgPath + vImgName);
}


function switchBetweenDivs(activetab,deactivetab,activediv,deactivediv)
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
  {
	activetab = document.getElementById( activetab );
	deactivetab = document.getElementById( deactivetab );
	activediv = document.getElementById( activediv );
	deactivediv = document.getElementById( deactivediv );
  }
  else if( document.all ) // this is the way old msie versions work
  {
	activetab = document.all[activetab];
	deactivetab = document.all[deactivetab];
	activediv = document.all[activediv];
	deactivediv = document.all[deactivediv];
	
  }
  else if( document.layers ) // this is the way nn4 works
  {
	activetab = document.layers[activetab];
	deactivetab = document.layers[deactivetab];
	activediv = document.layers[activediv];
	deactivediv = document.layers[deactivediv];
  }

  if(activetab)
 	 activetab.className = 'active';
	 
  if(deactivetab)  
  	deactivetab.className = '';
	
  if(activediv)
 	 activediv.style.display = 'block';
  
  if(deactivediv)
  	deactivediv.style.display = 'none';
}


//-->
