    var timerid;
    var istimerset = false;
    var firstTime = false;
    var orig = '';
	
	// special tag for philips banner showing or not...
	_page.hideFlashSectionBanner = true;
    
	function swapinhoud_healty(v,n) {
      document.getElementById(n).innerHTML = document.getElementById(v).innerHTML;
    }
	
	
    function swapinhoud(v,n) {
      if (orig!='') {
        document.getElementById(orig).innerHTML = document.getElementById('dd-recipes-explain').innerHTML;
      }
      document.getElementById(n).innerHTML = document.getElementById(v).innerHTML;
      document.getElementById(v).innerHTML = '';
      orig=v;
    }
    
    function loadrecept(nr) {
      if (firstTime) {
        cancelrecept0();
        swapinhoud('recept'+nr,'dd-recipes-explain');
      }
    }
    
    function cancelrecept0() {
      if (istimerset) {
        clearTimeout(timerid);
        istimerset = false;
      }
    }
    
    function loadrecept0() {
      cancelrecept0();
      istimerset = true;
      timerid = setTimeout('recept0timeout()',2000)
    }
    
    function recept0timeout() {
      cancelrecept0();
      istimerset = false;
	  if (document.getElementById('dd-recipes-explain')) {
        swapinhoud('recept0','dd-recipes-explain');
	  }
      firstTime = true;
    }

	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_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_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_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_jumpMenu(targ,selObj,restore){ //v3.0
	  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	  if (restore) selObj.selectedIndex=0;
	}
	
	function MM_jumpMenuGo(selName,targ,restore){ //v3.0
	  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
	}


// Write breadcrumb adapted for recipe 
	_page.writeBreadCrumbRecipe = function (active_item,recipeLink,recipeName) {
		_page.breadCrumbItem = active_item;
		var strThisId;
		var strNavTrail='';
		var max_length = 94;
		var total_length = 0;
		var first_item = 0;
		var spacing_length = 3; // Number of chars for spacing
		// Initalize array of breadcrumb ID's
		var parent_ids=active_item.split("_");
		for (var i=0; i<parent_ids.length; i++) {
			parent_ids[i]=(i>0?parent_ids[i-1]+"_"+parent_ids[i]:parent_ids[i]);
		}
		// Reduce length when font size is enlarged
		if(_page.locale.substring(3,5)=="zh" || _page.locale.substring(3,5)=="ja" || _page.locale.substring(3,5)=="ko"){
			max_length = max_length - 40; // Used to be 15
		}
		if(_page.locale.substring(3,5)=="th"){
			max_length = max_length - 10;
		}
		if(_page.locale.substring(3,5)=="ru"){
			max_length = max_length - 5;
		}
		// Get length of youarehere
		youarehere_length = _page.getstringlength(_page.text["youarehere"]);
		// Get length of home
		home_length = _page.getstringlength(_page.text["home_breadcrumb"]);
		// Reduce max length for 'you are here' and 'home' texts
		max_length = max_length - youarehere_length - home_length -2;
		strNavTrail+='<table class="p-breadcrumb-table" cellspacing="0">\n';
		strNavTrail+='	<tr>\n';
		strNavTrail+='		<td id="p-youarehere">'+_page.text["youarehere"]+':</td>\n';
		strNavTrail+='		<td id="p-home"><a href="'+_page.link["home"]+'">'+_page.text["home_breadcrumb"]+'</a></td>\n';
		// Set special section vars
		var strSectionMainName = (typeof _page.sectionMain[0]!="undefined"?_page.sectionMain[0]:'')
		var strSectionMainLink = (typeof _page.sectionMain[1]!="undefined"?_page.sectionMain[1]:'')
		var strSectionSpecialName = (typeof _page.sectionSpecial[0]!="undefined"?_page.sectionSpecial[0]:'')
		var strSectionSpecialLink = (typeof _page.sectionSpecial[1]!="undefined"?_page.sectionSpecial[1]:'')
		// Reduce max lenght for section
		var area_string='';
		if(_page.area!="" && strSectionSpecialName==""){
			if(_page.headerType == "external_extranet") {
				firstElement = (typeof(_page.topNavXN[_page.area])!="undefined"?_page.topNavXN[_page.area][0][0]:"");
			} else{
				firstElement = (typeof(_page.topNav[_page.area])!="undefined"?_page.topNav[_page.area][0][0]:"");
			}
			// Only show section when section is available
			if(active_item!="") {
				if(firstElement!="") {
					//Show translated section contents
					strNavTrail+='		<td class="p-microarrow"><a href="'+_page.locales[_page.locale]+'">'+firstElement+'</a></td>\n';
					area_string = firstElement;
				} else {
					strNavTrail+='		<td class="p-microarrow">'+_page.area+'</td>\n';
					area_string = _page.area;
				}
			} else {
				if(firstElement!=""){
					//Show translated section contents
					strNavTrail+='		<td class="p-microarrow">'+firstElement+'</td>\n';
					area_string = firstElement;
				}else{
					// Include text that is used in _page.area (other site)
					strNavTrail+='		<td class="p-microarrow">'+_page.area+'</td>\n';
					area_string = _page.area;
				}
			}
		} else if(strSectionSpecialName!="") {
			// Show special section items
			if(strSectionMainName!="")		strNavTrail+='		<td class="p-microarrow">'+(strSectionMainLink!=""?'<a href="'+strSectionMainLink+'">'+strSectionMainName+'</a>':strSectionMainName)+'</td>\n';
			if(strSectionSpecialName!="")	strNavTrail+='		<td class="p-microarrow">'+(strSectionSpecialLink!="" && active_item!=""?'<a href="'+strSectionSpecialLink+'">'+strSectionSpecialName+'</a>':strSectionSpecialName)+'</td>\n';
			area_string = strSectionMainName+strSectionSpecialName;
		}
		// reduce max length
		if(area_string!="") {
			max_length = max_length - _page.getstringlength(area_string);
		}
		if(active_item!=""){
			// Check if all items fit on 1 row		
			total_length += recipeName.length;
			for (var i=0; i<parent_ids.length; i++) {
				total_length += _page.leftNav[parent_ids[i]].text.length;
			}
			counter = 0;
			if(total_length>max_length){
				while((total_length>max_length) && (counter<parent_ids.length)){
					total_length = total_length - _page.leftNav[parent_ids[counter]].text.length - spacing_length;
					i = i - 1;
					counter += 1;
				}
			}
			start_item = parent_ids.length - i;
			if(start_item!=0){
				strNavTrail+='		<td class="p-microarrow">...</td>\n';
			}
			for (var j=start_item; j<parent_ids.length; j++) {
				// if(j!=(parent_ids.length-1)){
					strNavTrail+='<td class="p-microarrow"><a href="'+_page.leftNav[parent_ids[j]].link+'">'+_page.leftNav[parent_ids[j]].text+'</a></td>\n';
				// }else{
				//	strNavTrail+='<td class="p-microarrow">'+_page.leftNav[parent_ids[j]].text+'</td>\n';
				// }
			}
		}
		strNavTrail+='<td class="p-microarrow"><a href="'+recipeLink+'">'+recipeName+'</a></td>\n';
		strNavTrail+='</tr>\n';
		strNavTrail+='</table>\n';
		document.write(strNavTrail);
	};


	function showImage(i,n) {
	  o = document.getElementById(n+'-text');
	  o.innerHTML = '&nbsp;&nbsp;' + i;
	  if (i==-1) {
	    o = document.getElementById(n+'-value');
		i = o.value;
	    o = document.getElementById(n+'-text');
	    o.innerHTML = '';
	  }
	  o = document.getElementById(n);
	  o.src = '/be_fr/images/rating/bolrating' + i + '0.gif';
	}
	
	function setImage(i,n) {
      o = document.getElementById(n+'-value');
	  o.value = i;
	}
