_page.siteMenu = { sfHover: function() { var sfEls = document.getElementById("pagenav").getElementsByTagName("LI"); for (var i=0; i'+oText+'':oText); } function getSiblings(id, level) { var i = 1; var html = ""; idSibling = (level === 0?i:id+"_"+i); //console.log("level="+level); while(_page.items[idSibling] && i"+createLink(_page.items[idSibling], level); if(_page.items[idSibling+"_1"] && level < maxLevels) { html+="" } html+=""; i++; idSibling = (level === 0?i:id+"_"+i); } return html; } var html = ''; return html; }, write: function(active) { //document.write(this.getHTML(active)); //if (window.attachEvent) // IE ONLY // _page.siteMenu.sfHover(); } } // Not required since the list items are rendered by javascript //if (window.attachEvent) window.attachEvent("onload", _page.siteMenu.sfHover); function showMap(tmpID){ objMap = window.document.getElementById("p-globalmaps"); objMap.src = "/prd/delicia/quicksite.nsf/vwLkUpWImages/page_v2/$FILE/map" + tmpID + ".gif"; } function openForm(tmpID){ } function siteMap() { var p=_page; var html='\ \n\ \n'; function doTable(p, i, l){ var t; var html='\ \n\ \n'; if (l>1) html+='\ \n'; html+='\ \n'; //p.output(html); document.write(html) if (p.items[i+'_1']!=null) { for(t=1; p.items[i+'_'+t.toString()]!=null; t++) { doTable(p, i+"_"+t.toString(), l+1); } } } for(var i=1; p.items[i.toString()]!=null; i++) { html+='\ \n'; if (Math.floor(i/3)==i/3) { html+='\ \n\ \n\ \n\ \n\ \n'; } else { html+='\ \n'; } } html+='\ \n\
1?' style="padding-left:'+(l*16-20)+'px"':'')+'>\n'; if (l>1) html+='\
\n\ \n'; //p.output(html); document.write(html) doTable(p, i.toString(), 0); html='\
\n\
 
 
\n'; document.write(html); } var menuTimeout; //DE VARIABELE WAAR WE DE TIMEOUT IN BEWAREN. function printMenu( strMenu ){ if( strMenu == "" ){ strMenu = _page.curItem; } var arrCurMenu = strMenu.split("_"); //PRINT THE MAIN MENU. if(arrCurMenu.length > 0) showMenu( arrCurMenu, strMenu ); } function showMenu( arrCurMenu, strMenu ){ var strHTML = ""; for(i=1;_page.items[i];i++){ if(strMenu.substr(0,i.toString().length)==i.toString()){ if( _page.items[i].link = "#" ){ strHTML += ''+_page.items[i].text+''; }else{ strHTML += ''+_page.items[i].text+''; } if( arrCurMenu.length > 0 && arrCurMenu[0] != "0" ){ //PRINT SUBMENU. strHTML += showSubMenu( arrCurMenu[0], strMenu ); } }else{ if( _page.items[i].link = "#" ){ strHTML += ''+_page.items[i].text+''; }else{ strHTML += ''+_page.items[i].text+''; } } } document.getElementById("navBody").innerHTML = strHTML; } function showSubMenu( strParent, strMenu ){ strMenuActive = strParent; var strHTML = ""; for(k=1;_page.items[strParent + "_" + k];k++){ if(strMenu.substr(0,(strParent + "_" + k).toString().length)==(strParent + "_" + k).toString()){ strHTML += ''+_page.items[strParent + '_' + k].text+''; //PRINT SUBSUBMENU. strHTML += showSubSubMenu( strParent + '_' + k, strMenu ); }else{ strHTML += ''+_page.items[strParent + '_' + k].text+''; } } return strHTML; } function showSubSubMenu( strParent, strMenu ){ strMenuActive = strParent; var strHTML = ""; for(m=1;_page.items[strParent + "_" + m];m++){ if(strMenu.substr(0,(strParent + "_" + m).toString().length)==(strParent + "_" + m).toString()){ strHTML += ''+_page.items[strParent + '_' + m].text+''; }else{ strHTML += ''+_page.items[strParent + '_' + m].text+''; } } return strHTML; } function restoreMenu(){ printMenu(); } function cleanMenu(){ //RESET THE MENU TO THE INITIAL STATE IT WAS IN. menuTimeout = setTimeout('restoreMenu()',1000); } function setContactCopy(){ //SET THE COPY TO FIELD IN THE CONTACT FORM. GETS THE VALUE FROM THE URL. var tmpPath = self.location.href; var tmpEmailPos = tmpPath.toLowerCase().indexOf( "email=" ); if( tmpEmailPos > -1 ){ var tmpEmail = tmpPath.substring( tmpEmailPos + 6, tmpPath.length ); var tmpField = document.frmSurvey.CopyTo; if( tmpField ){ tmpField.value=tmpEmail; //tmpField.type="disabled"; } } } function fixPNG(myImage) { if ((version >= 5.5) && (version < 7) && (document.body.filters)) { var imgID = (myImage.id) ? "id='" + myImage.id + "' " : "" var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : "" var imgTitle = (myImage.title) ? "title='" + myImage.title + "' " : "title='" + myImage.alt + "' " var imgStyle = "display:inline-block;" + myImage.style.cssText var strNewHTML = "" myImage.outerHTML = strNewHTML } } function imageItem(image_location) { this.image_item = new Image(); this.image_item.src = image_location; } function get_ImageItemLocation(imageObj) { return(imageObj.image_item.src) } function generate(x, y) { var range = y - x + 1; return Math.floor(Math.random() * range) + x; } function getNextImage() { if (random_display) { image_index = generate(0, number_of_image-1); }else { image_index = (image_index+1) % number_of_image; } var new_image = get_ImageItemLocation(image_list[image_index]); return(new_image); } function rotateImage(place) { var new_image = getNextImage(); document[place].src = new_image; var recur_call = "rotateImage('"+place+"')"; setTimeout(recur_call, interval); }