
﻿
var foto1=new Image()
foto1.src="/images/logo_delonghi.jpg"
var foto2=new Image()
foto2.src="/images/logo_gaggia.jpg"
var foto3=new Image()
foto3.src="/images/logo_danesi.jpg"
var foto4=new Image()
foto4.src="/images/logo_saeco.jpg"
var foto5=new Image()
foto5.src="/images/logo_illy.jpg"
var foto6=new Image()
foto6.src="/images/logo_arabier.jpg"
var foto7=new Image()
foto7.src="/images/logo_rheavendors.jpg"
var foto8=new Image()
foto8.src="/images/logo_spidem.jpg"
var foto9=new Image()
foto9.src="/images/logo_turmix.jpg"<!--
function MM_swapImgRestore(){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(){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){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(){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];}}
var stap=1
var beeldnr=1
function overvloeier(){var o;o=getElementById_s('slide');if(o!=null){setOpacity(o,0);o.src=eval("foto"+stap+".src");fadeIn('slide',0);beeldnr=stap
if(stap<8)
stap++
else
stap=1
setTimeout("overvloeier()",4000)}}
function overgang(){if(beeldnr==1)
window.location="http://www.delonghi-products.net"
else if(beeldnr==2)
window.location="http://www.gaggia.com/index.asp"
else if(beeldnr==3)
window.location="http://www.danesi-caffe.com"
else if(beeldnr==4)
window.location="http://www.saeco.be"
else if(beeldnr==5)
window.location="http://www.illy.com"
else if(beeldnr==6)
window.location="http://www.arabicaffe.com/arabica"
else if(beeldnr==7)
window.location="http://www.rheavendors.nl"
else if(beeldnr==8)
window.location="http://www.spidem.it"
else if(beeldnr==9)
window.location="http://www.turmix.ch"}
function setOpacity(obj,opacity){opacity=(opacity==100)?99.999:opacity;obj.style.filter="alpha(opacity:"+opacity+")";obj.style.KHTMLOpacity=opacity/100;obj.style.MozOpacity=opacity/100;obj.style.opacity=opacity/100;}
function fadeIn(objId,opacity){if(document.getElementById){obj=document.getElementById(objId);if(opacity<=100){setOpacity(obj,opacity);opacity+=100;window.setTimeout("fadeIn('"+objId+"',"+opacity+")",100);}}}
function fadeOut(objId,opacity){if(document.getElementById){obj=document.getElementById(objId);if(opacity>100){setOpacity(obj,opacity);opacity-=100;window.setTimeout("fadeOut('"+objId+"',"+opacity+")",100);}else{obj.className='hideimage';}}}
function PopupWindow(strURL,strName,strWidth,strHeight)
{var hWindow;if(strWidth!=''){strWidth='width='+strWidth;}
if(strHeight!=''){strHeight='Height='+strHeight;}
hWindow=window.open(strURL,'','dependent=yes, hotkeys=no, titlebar=no, fullscreen=no, channelmode=no, toolbar=no, location=no, directories=no, status=no, menubars=no, resizable=no,'+strWidth+', '+strHeight+', top=150, left=70');}
function enableField()
{document.getElementById('btnSubmit').style.visibility="hidden";document.getElementById('cboCountry').style.visibility="hidden";document.getElementById('Betalingsmethode').style.visibility="hidden";return true;}
function activetab(tab){activetab1(tab);setTimeout("activetab1('"+tab+"')",5);}
function activetab1(tab){var intTeller;var obj;var strtab;intTeller=1;strtab='tab'+intTeller;while(getElementById_s(strtab)!=null){obj=getElementById_s(strtab);if(strtab==tab){obj.className='showtab';}else{obj.className='hiddentab';}
intTeller++;strtab='tab'+intTeller;}
intTeller=1;strtab='tab'+intTeller;while(getElementById_s(strtab)!=null){obj=getElementById_s(strtab);if(strtab==tab){document.images[strtab+'_image'].src='/images/'+strtab+'_ro.jpg';}else{document.images[strtab+'_image'].src='/images/'+strtab+'.jpg';}
intTeller++;strtab='tab'+intTeller;}}
function getElementById_s(id){var obj=null;if(document.getElementById){obj=document.getElementById(id);}else if(document.all){obj=document.all[id];}
return obj;}
function initPage(){if(document.getElementById('winkelmand_aantal_artikelen')!=null){ajaxpage('/winkelmand.aspx','winkelmand_aantal_artikelen');}}
var loadedobjects=""
var rootdomain="http://"+window.location.hostname
function ajaxtabpage(url,containerid){ajaxpage(url,containerid);activetab(containerid);}
function ajaxpage(url,containerid){document.getElementById(containerid).innerHTML="<img src='/images/loading.gif' border=0>";var page_request=false;if(window.XMLHttpRequest){page_request=new XMLHttpRequest()}
else if(window.ActiveXObject){try{page_request=new ActiveXObject("Msxml2.XMLHTTP")}
catch(e){try{page_request=new ActiveXObject("Microsoft.XMLHTTP")}
catch(e){}}}
else
return false
page_request.onreadystatechange=function(){loadpage(page_request,containerid)}
page_request.open('GET',url,true)
page_request.send(null)}
function loadpage(page_request,containerid){var rep;if(page_request.readyState==4&&(page_request.status==200||window.location.href.indexOf("http")==-1)){rep=page_request.responseText;document.getElementById(containerid).innerHTML="";document.getElementById(containerid).innerHTML=""+rep+"";}}
function loadobjs(){if(!document.getElementById)
return
for(i=0;i<arguments.length;i++){var file=arguments[i]
var fileref=""
if(loadedobjects.indexOf(file)==-1){if(file.indexOf(".js")!=-1){fileref=document.createElement('script')
fileref.setAttribute("type","text/javascript");fileref.setAttribute("src",file);}
else if(file.indexOf(".css")!=-1){fileref=document.createElement("link")
fileref.setAttribute("rel","stylesheet");fileref.setAttribute("type","text/css");fileref.setAttribute("href",file);}}
if(fileref!=""){document.getElementsByTagName("head").item(0).appendChild(fileref)
loadedobjects+=file+" "}}}
function Nieuwsbriefaanmelden(){var strNaam=document.getElementById("nieuwsbrief_naam").value;var strEmail=document.getElementById("nieuwsbrief_email").value;ajaxpage('/nieuwsbriefaanmeld.aspx?naam='+strNaam+'&email='+strEmail,'nieuwsbrief');}
var dhtmlgoodies_slideSpeed=150;var dhtmlgoodies_timer=20;var objectIdToSlideDown=false;var dhtmlgoodies_activeId=false;var dhtmlgoodies_slideInProgress=false;function showHideContent(e,inputId){if(dhtmlgoodies_slideInProgress)return;dhtmlgoodies_slideInProgress=true;if(!inputId)inputId=this.id;inputId=inputId+'';var numericId=inputId.replace(/[^0-9]/g,'');var answerDiv=document.getElementById('dhtmlgoodies_a'+numericId);objectIdToSlideDown=false;if(!answerDiv.style.display||answerDiv.style.display=='none'){if(dhtmlgoodies_activeId&&dhtmlgoodies_activeId!=numericId){objectIdToSlideDown=numericId;slideContent(dhtmlgoodies_activeId,(dhtmlgoodies_slideSpeed*-1));}else{answerDiv.style.display='block';answerDiv.style.visibility='visible';slideContent(numericId,dhtmlgoodies_slideSpeed);}}else{slideContent(numericId,(dhtmlgoodies_slideSpeed*-1));dhtmlgoodies_activeId=false;}}
function slideContent(inputId,direction){var obj=document.getElementById('dhtmlgoodies_a'+inputId);var contentObj=document.getElementById('dhtmlgoodies_ac'+inputId);height=obj.clientHeight;if(height==0)height=obj.offsetHeight;height=height+direction;rerunFunction=true;if(height>contentObj.offsetHeight){height=contentObj.offsetHeight;rerunFunction=false;}
if(height<=1){height=1;rerunFunction=false;}
obj.style.height=height+'px';var topPos=height-contentObj.offsetHeight;if(topPos>0)topPos=0;contentObj.style.top=topPos+'px';if(rerunFunction){setTimeout('slideContent('+inputId+','+direction+')',dhtmlgoodies_timer);}else{if(height<=1){obj.style.display='none';if(objectIdToSlideDown&&objectIdToSlideDown!=inputId){document.getElementById('dhtmlgoodies_a'+objectIdToSlideDown).style.display='block';document.getElementById('dhtmlgoodies_a'+objectIdToSlideDown).style.visibility='visible';slideContent(objectIdToSlideDown,dhtmlgoodies_slideSpeed);}else{dhtmlgoodies_slideInProgress=false;}}else{dhtmlgoodies_activeId=inputId;dhtmlgoodies_slideInProgress=false;}}}
function initShowHideDivs(){var divs=document.getElementsByTagName('DIV');var divCounter=1;for(var no=0;no<divs.length;no++){if(divs[no].className=='meerinfobar'){divs[no].onclick=showHideContent;divs[no].id='dhtmlgoodies_q'+divCounter;var answer=divs[no].nextSibling;while(answer&&answer.tagName!='DIV'){answer=answer.nextSibling;}
answer.id='dhtmlgoodies_a'+divCounter;contentDiv=answer.getElementsByTagName('DIV')[0];contentDiv.className='meerinfocontent_content';contentDiv.id='dhtmlgoodies_ac'+divCounter;answer.style.display='block';answer.style.height=contentDiv.offsetHeight+' px';divCounter++;if(divs[no].dispatchEvent){var e=document.createEvent("MouseEvents");e.initEvent("click",true,true);divs[no].dispatchEvent(e);}else{divs[no].click();}}}}
function showhideImage(){var strImage;var intTeller;var obj;var strCurrentImage;strCurrentImage="productimage"+intCurrentImage;intTeller=1;strImage="productimage1";obj=getElementById_s(strImage);while(obj!=null){if(strImage==strCurrentImage){obj.className='showimage';}else{obj.className='hideimage';}
intTeller++;strImage="productimage"+intTeller;obj=getElementById_s(strImage);}
intMaxImage=intTeller-1;if(intCurrentImage<intMaxImage){intCurrentImage++;}else{intCurrentImage=1;}
setTimeout(showhideImage,3000);}