if ("undefined" === typeof(document.oDcaAcceptanceEvent))
{
document.oDcaAcceptanceEvent = function() {
};
}
if ("undefined" === typeof(document.oDcaDeclineEvent))
{
document.oDcaDeclineEvent = function() {
};
}
function cookieAcceptance()
{
var oThisReference = this;
this.sRemoteAddressHash = 'b5eac341620d9494394432649ed31001';
this.oOverlayGlassPlate = null;
this.oOverlayLayoutContainer = null;
this.oOverlayContainer = null;
this.aButtonContainer = new Array();
this.oSmallCookieCorner = null;
this.sCornerPosition = 'bottomright';
if ("undefined" !== typeof(document.sDcaSmallCornerPosition))
{
this.sCornerPosition = document.sDcaSmallCornerPosition.toLowerCase();
}
this.bNotAcceptedCookieFound = false;
this.sTopText = "Welkom op %SITENAME%.
";
this.sTopText += "Sinds de nieuwe telecomwet op 1 juni 2012 van kracht is geworden, is elke website wettelijk verplicht de gebruiker te informeren over de aard van de geleverde cookies en toestemming te vragen voor het gebruik hiervan. Om verder te kunnen gaan dien je alle cookies te accepteren.";
if ("undefined" !== typeof(document.sDcaTxtTopMessage))
{
this.sTopText = document.sDcaTxtTopMessage;
}
this.sTopText += "
";
var sSiteName = 'onze website';
if ("undefined" !== typeof(document.sDcaTxtSitename))
{
sSiteName = document.sDcaTxtSitename;
}
this.sTopText = this.sTopText.replace(/%SITENAME%/g, sSiteName);
this.sMiddleText = "Bij het bezoeken van %SITENAME% kun je naast cookies van deze site ook cookies van de volgende partijen verwachten. Klik op de naam van de partij voor verdere uitleg over dat betreffende cookie:";
if ("undefined" !== typeof(document.sDcaTxtMiddleMessage))
{
this.sMiddleText = document.sDcaTxtMiddleMessage;
}
this.sMiddleText = this.sMiddleText.replace(/%SITENAME%/g, sSiteName);
this.sBottomText = "Een cookie is een eenvoudig klein bestandje dat met pagina's van deze website wordt meegestuurd en door uw browser op uw harde schrijf van uw computer wordt opgeslagen. De daarin opgeslagen informatie kan bij een volgend bezoek weer naar onze servers teruggestuurd worden. Meer informatie over cookies vindt u op Wikipedia.";
if ("undefined" !== typeof(document.sDcaTxtBottomMessage))
{
this.sBottomText = document.sDcaTxtBottomMessage;
}
this.sBottomText = this.sBottomText.replace(/%SITENAME%/g, sSiteName);
this.sNoAcceptText = "Niet accepteren";
if ("undefined" !== typeof(document.sDcaTxtNoAcceptButton))
{
this.sNoAcceptText = document.sDcaTxtNoAcceptButton;
}
this.sCookiesNotAcceptedText = "%SITENAME% gebruikt cookies om instellingen te onthouden.
Klik hier voor meer informatie.";
if ("undefined" !== typeof(document.sDcaTxtClickHereToAccept))
{
this.sCookiesNotAcceptedText = document.sDcaTxtClickHereToAccept;
}
this.sCookiesNotAcceptedText = this.sCookiesNotAcceptedText.replace(/%SITENAME%/g, sSiteName);
this.sAcceptButtonText = "Ik wil naar deze site en accepteer alle cookies"
if ("undefined" !== typeof(document.sDcaTxtAcceptButton))
{
this.sAcceptButtonText = document.sDcaTxtAcceptButton;
}
this.sAcceptButtonText = this.sAcceptButtonText.replace(/%SITENAME%/g, sSiteName);
this.sCloseButtonText = "Sluiten";
if ("undefined" !== typeof(document.sDcaTxtCloseButton))
{
this.sCloseButtonText = document.sDcaTxtCloseButton;
}
this.sAcceptingCookieText = 'Bezig met accepteren..';
if ("undefined" !== typeof(document.sDcaTxtAcceptingCookie))
{
this.sAcceptingCookieText = document.sDcaTxtAcceptingCookie;
}
this.sCookieAcceptedText = 'Geaccepteerd'
if ("undefined" !== typeof(document.sDcaTxtCookieAccepted))
{
this.sCookieAcceptedText = document.sDcaTxtCookieAccepted;
}
this.sStatusLabel = "Status";
if ("undefined" !== typeof(document.sDcaTxtStatusLabel))
{
this.sStatusLabel = document.sDcaTxtStatusLabel;
}
this.sOriganisationLabel = "Organisatie";
if ("undefined" !== typeof(document.sDcaTxtOrganisationLabel))
{
this.sOriganisationLabel = document.sDcaTxtOrganisationLabel;
}
this.sAlreadyAcceptedText = 'Reeds geaccepteerd';
if ("undefined" !== typeof(document.sDcaTxtAlreadyAccepted))
{
this.sOriganisationLabel = document.sDcaTxtAlreadyAccepted;
}
this.sCheckingText = 'Controleren..';
if ("undefined" !== typeof(document.sDcaTxtChecking))
{
this.sOriganisationLabel = document.sDcaTxtChecking;
}
this.sPrivacyLinkTitle = 'Klik hier voor de privacy policy van: %ORGANISATION%';
if ("undefined" !== typeof(document.sDcaTxtPrivacyLinkToolTip))
{
this.sOriganisationLabel = document.sDcaTxtPrivacyLinkToolTip;
}
this.sAcceptenceFailedText = 'Acceptatie mislukt';
if ("undefined" !== typeof(document.sDcaTxtAcceptanceFailed))
{
this.sOriganisationLabel = document.sDcaTxtAcceptanceFailed;
}
this.sSmallCornerCookies = 'Cookies';
if ("undefined" !== typeof(document.sDcaTxtSmallCornerCookies))
{
this.sSmallCornerCookies = document.sDcaTxtSmallCornerCookies;
}
this.sSmallCornerClose = 'X';
if ("undefined" !== typeof(document.sDcaTxtSmallCornerClose))
{
this.sSmallCornerClose = document.sDcaTxtSmallCornerClose;
}
this.sSmallCornerAccept = 'Accepteren';
if ("undefined" !== typeof(document.sDcaTxtSmallCornerAccept))
{
this.sSmallCornerAccept = document.sDcaTxtSmallCornerAccept;
}
this.sAcceptanceCookieName = 'CookiesAccepted';
if ("undefined" !== typeof(document.sDcaAcceptedCookieName))
{
this.sAcceptanceCookieName = document.sDcaAcceptedCookieName;
}
this.sNotAcceptanceCookieName = 'CookiesNotAccepted';
if ("undefined" !== typeof(document.sDcaNotAcceptedCookieName) && this.sAcceptanceCookieName !== document.sDcaNotAcceptedCookieName)
{
this.sNotAcceptanceCookieName = document.sDcaNotAcceptedCookieName;
}
this.iAcceptanceCookieMaxDays = 365;
if ("undefined" !== typeof(document.iDcaCookieDays))
{
this.iAcceptanceCookieMaxDays = document.iDcaCookieDays;
}
this.iAcceptanceCookieMaxDaysNotAccepted = 1;
if ("undefined" !== typeof(document.iDcaCookieNotAcceptedDays))
{
this.iAcceptanceCookieMaxDaysNotAccepted = document.iDcaCookieNotAcceptedDays;
}
this.sPopupFontColor = '#000000';
if ("undefined" !== typeof(document.sDcaPopupFontColor))
{
this.sPopupFontColor = document.sDcaPopupFontColor;
}
this.sPopupBackgroundColor = '#FFFFFF';
if ("undefined" !== typeof(document.sDcaPopupBackgroundColor))
{
this.sPopupBackgroundColor = document.sDcaPopupBackgroundColor;
}
this.sSmallCornerFontColor = '#000000';
if ("undefined" !== typeof(document.sDcaSmallCornerFontColor))
{
this.sSmallCornerFontColor = document.sDcaSmallCornerFontColor;
}
this.sSmallCornerBackgroundColor = '#FF8800';
if ("undefined" !== typeof(document.sDcaSmallCornerBackgroundColor))
{
this.sSmallCornerBackgroundColor = document.sDcaSmallCornerBackgroundColor;
}
this.aParticipantColumns = new Array();
this.check = function()
{
if ("undefined" !== typeof(document.bDcaDefaultRenderMode) && "corneralways" == document.bDcaDefaultRenderMode.toLowerCase())
{
return this.renderSmallCookieCorner();
}
var aCookies = document.cookie.split("; ");
iFoundCookies = aCookies.length;
for (var iCurrentCookie = 0; iCurrentCookie < iFoundCookies; iCurrentCookie++)
{
var aCookie = aCookies[iCurrentCookie].split("=");
var sCookieName = aCookie[0];
var sCookieValue = aCookie[1];
if (sCookieName == this.sAcceptanceCookieName)
{
return;
}
else if (sCookieName == this.sNotAcceptanceCookieName)
{
this.bNotAcceptedCookieFound = true;
return this.renderSmallCookieCorner();
}
}
if ("undefined" !== typeof(document.bDcaDefaultRenderMode) && "cornerstart" == document.bDcaDefaultRenderMode.toLowerCase())
{
return this.renderSmallCookieCorner();
}
this.showRequestOverlay();
};
this.setCookiesNotAccepted = function()
{
this.setAcceptanceCookie(this.sAcceptanceCookieName, -1);
this.setAcceptanceCookie(this.sNotAcceptanceCookieName, this.iAcceptanceCookieMaxDaysNotAccepted);
};
this.setCookiesAcceptedCookie = function()
{
this.setAcceptanceCookie(this.sNotAcceptanceCookieName, -1);
this.setAcceptanceCookie(this.sAcceptanceCookieName, this.iAcceptanceCookieMaxDays);
};
this.setAcceptanceCookie = function(sCookieName, iCookieDays)
{
var oExpiryDate = new Date();
oExpiryDate.setDate(oExpiryDate.getDate() + iCookieDays);
var oCurrentDate = new Date();
var a = document.createElement('a');
a.href = document.location.href;
var sCurrentDomain = a.host.split(':')[0];
document.cookie=sCookieName+'='+escape(oCurrentDate.toUTCString())+';expires='+oExpiryDate.toUTCString()+";path="+escape("/")+';domain=.'+escape(sCurrentDomain);
}
this.showRequestOverlay = function()
{
if (null === this.oOverlayGlassPlate)
{
this.oOverlayGlassPlate = document.createElement("div");
this.oOverlayGlassPlate.className = "DcaGlassPlate";
this.oOverlayGlassPlate.style.zIndex = 1000;
this.oOverlayGlassPlate.style.backgroundColor = '#CCCCCC';
this.oOverlayGlassPlate.style.opacity = 0.7;
this.oOverlayGlassPlate.style.filter = 'alpha(opacity=70)';
this.oOverlayGlassPlate.style.position = 'fixed';
this.oOverlayGlassPlate.style.top = '0px';
this.oOverlayGlassPlate.style.left = '0px';
this.oOverlayGlassPlate.style.bottom = '0px';
this.oOverlayGlassPlate.style.right = '0px';
this.oOverlayGlassPlate.style.width = '100%';
this.oOverlayGlassPlate.style.height = '100%';
document.body.appendChild(this.oOverlayGlassPlate);
}
if (null === this.oOverlayLayoutContainer && null !== this.oOverlayGlassPlate)
{
this.oOverlayLayoutContainer = document.createElement("div");
this.oOverlayLayoutContainer.className = "DcaOverlayLayoutContainer";
this.oOverlayLayoutContainer.style.zIndex = 1001;
this.oOverlayLayoutContainer.style.width = '80%';
this.oOverlayLayoutContainer.style.position = 'fixed';
this.oOverlayLayoutContainer.style.top = '8%';
this.oOverlayLayoutContainer.style.left = '10%';
this.oOverlayLayoutContainer.style.right = '10%';
document.body.appendChild(this.oOverlayLayoutContainer);
this.oOverlayContainer = document.createElement("div");
this.oOverlayContainer.style.border = 'solid 1px gray';
this.oOverlayContainer.className = "DcaOverlayContainer";
this.oOverlayContainer.style.backgroundColor = this.sPopupBackgroundColor;
this.oOverlayContainer.style.maxHeight = '600px';
this.oOverlayContainer.style.padding = '10px';
this.oOverlayContainer.style.overflow = 'auto';
this.oOverlayContainer.style.overflowX = 'hidden';
this.oOverlayContainer.style.fontFamily = 'Arial';
this.oOverlayContainer.style.fontSize = '9pt';
this.oOverlayContainer.style.color = this.sPopupFontColor;
this.oOverlayContainer.style.width = '450px';
this.oOverlayContainer.style.marginLeft = 'auto';
this.oOverlayContainer.style.marginRight = 'auto';
this.oOverlayContainer.style.borderRadius = '1em';
this.oOverlayContainer.style.MozBorderRadius = '1em';
this.oOverlayContainer.style.WebkitBorderRadius = '1em';
this.oOverlayLayoutContainer.appendChild(this.oOverlayContainer);
}
var oMessageContainer = document.createElement("div");
oMessageContainer.className = "DcaMessageContainer";
oMessageContainer.innerHTML = this.sTopText;
this.oOverlayContainer.appendChild(oMessageContainer);
var oMessageContainer = document.createElement("div");
oMessageContainer.className = "DcaMessageContainerMiddleText";
oMessageContainer.style.paddingTop = '16px';
oMessageContainer.innerHTML = this.sMiddleText;
this.oOverlayContainer.appendChild(oMessageContainer);
this.renderParticipants();
this.addButtons();
var oMessageContainer = document.createElement("div");
oMessageContainer.className = 'DcaMessageContainerBottomText';
oMessageContainer.style.paddingTop = '16px';
oMessageContainer.style.cssFloat = "left";
oMessageContainer.style.styleFloat = "left";
oMessageContainer.style.clear = 'both';
oMessageContainer.innerHTML = this.sBottomText;
this.oOverlayContainer.appendChild(oMessageContainer);
var oFooter = document.createElement("div")
oFooter.style.clear = 'both';
oFooter.style.height = '12px';
oFooter.className = "DcaGlassFooter";
this.oOverlayContainer.appendChild(oFooter);
var oPowered = document.createElement("div");
oPowered.className = 'DcaPowered';
oPowered.style.cssFloat = "right";
oPowered.style.styleFloat = "right";
oPowered.style.clear = "both";
oPowered.style.marginBottom = '-17px';
oPowered.style.marginRight = '-10px';
this.oOverlayContainer.appendChild(oPowered);
var oDisclaimer = document.createElement("div");
oDisclaimer.style.className = "DcaDisclaimer";
oDisclaimer.style.cssFloat = "left";
oDisclaimer.style.styleFloat = "left";
oDisclaimer.style.clear = "both";
oDisclaimer.style.fontSize = '8pt';
oDisclaimer.style.marginBottom = '-5px';
oDisclaimer.style.marginRight = '-10px';
oDisclaimer.innerHTML = 'Cookie Beleidsregels';
this.oOverlayContainer.appendChild(oDisclaimer);
oText = document.createElement("div");
oText.className = 'DcaPoweredText';
oText.style.fontSize = '8pt';
oText.style.cssFloat = "left";
oText.style.styleFloat = "left";
oText.style.marginTop = '2px';
oText.style.marginRight = '5px';
oText.style.fontFamily = 'Arial';
oText.innerHTML = 'Powered by DiGiHostWeb';
oPowered.appendChild(oText);
oImage = document.createElement("div");
oImage.className = 'DcaPoweredImage';
oImage.style.cssFloat = "left";
oImage.style.styleFloat = "left";
oImage.style.overflow = 'hidden';
oImage.style.borderBottomRightRadius = '1em';
oImage.style.MozBorderBottomRightRadius = '1em';
oImage.style.WebkitBorderBottomRightRadius = '1em';
oImage.style.width = '58px';
oImage.style.height = '17px';
oPowered.appendChild(oImage);
var oFooter = document.createElement("div");
oFooter.className = 'DcaFooterClass';
oFooter.style.clear = 'both';
oFooter.style.height = '1px';
this.oOverlayContainer.appendChild(oFooter);
};
this.addButtons = function()
{
var iButtonNumber = this.aButtonContainer.length
this.aButtonContainer[iButtonNumber] = document.createElement("div");
this.aButtonContainer[iButtonNumber].className = 'DcaClassButtonContainer'+iButtonNumber;
this.aButtonContainer[iButtonNumber].style.marginTop = '20px';
this.aButtonContainer[iButtonNumber].style.cssFloat = 'left';
this.aButtonContainer[iButtonNumber].style.styleFloat = 'left';
this.aButtonContainer[iButtonNumber].style.clear = 'both';
this.aButtonContainer[iButtonNumber].style.width = '100%';
this.oOverlayContainer.appendChild(this.aButtonContainer[iButtonNumber]);
var oLeftButton = document.createElement("button");
oLeftButton.innerHTML = this.sAcceptButtonText;
oLeftButton.className = 'DcaLeftClass';
oLeftButton.style.cssFloat = 'left';
oLeftButton.style.border = "none";
oLeftButton.style.color = "white";
oLeftButton.style.height = "30px";
oLeftButton.style.borderRadius = '0.5em';
oLeftButton.style.MozBorderRadius = '0.5em';
oLeftButton.style.WebkitBorderRadius = '0.5em';
oLeftButton.style.backgroundColor = "#04B404";
oLeftButton.style.styleFloat = 'left';
oLeftButton.style.cursor = 'pointer';
oLeftButton.style.paddingBottom = '4px';
oLeftButton.style.paddingLeft = '5px';
oLeftButton.style.paddingRight = '5px';
oLeftButton.onclick = function()
{
oThisReference.acceptCookies();
}
this.aButtonContainer[iButtonNumber].appendChild(oLeftButton);
var oRightButton = document.createElement("button");
oRightButton.className = 'DcaRightClass';
oRightButton.innerHTML = this.sNoAcceptText;
oRightButton.style.cssFloat = 'right';
oRightButton.style.styleFloat = 'right';
oRightButton.style.color = "#888888";
oRightButton.style.border = 'none';
oRightButton.style.backgroundColor = 'white';
oRightButton.style.marginTop = '12px';
oRightButton.style.fontSize = '9pt';
oRightButton.style.textDecoration = 'underline';
oRightButton.style.cursor = 'pointer';
oRightButton.style.padding = '0px';
oRightButton.onclick = function()
{
oThisReference.doNotAcceptCookies();
}
this.aButtonContainer[iButtonNumber].appendChild(oRightButton);
}
this.doNotAcceptCookies = function()
{
if ("undefined" !== typeof(document.sDcaDeclineRedirectLocation) && null !== document.sDcaDeclineRedirectLocation && "" !== document.sDcaDeclineRedirectLocation)
{
document.location.href = document.sDcaDeclineRedirectLocation;
return;
}
if (false === this.bNotAcceptedCookieFound)
{
iParticipantCount = document.aDcaOrgList.length;
for (var iParticipantNumber = 0; iParticipantNumber < iParticipantCount; iParticipantNumber++)
{
var aParticipant = document.aDcaOrgList[ iParticipantNumber ];
if ("undefined" !== typeof(aParticipant['name']))
{
if ("undefined" !== typeof(aParticipant['setNotAcceptedUrl']))
{
var oImage = document.createElement('img');
oImage.alt = '';
oImage.title = oImage.alt;
oImage.src = aParticipant['setNotAcceptedUrl']+"&h4h="+this.sRemoteAddressHash;
oImage.iParticipantNumber = iParticipantNumber;
oImage.onload = function() { oThisReference.checkNotAcceptingStatus(this) };
oImage.onerror = function() { oThisReference.checkNotAcceptingStatus(this) };
document.body.appendChild(oImage);
}}}}
this.setCookiesNotAccepted();
this.closeOverlay();
this.renderSmallCookieCorner();
if ("function" == typeof(document.oDcaDeclineEvent))
{
document.oDcaDeclineEvent();
}};
this.acceptCookies = function()
{
iParticipantCount = document.aDcaOrgList.length;
for (var iParticipantNumber = 0; iParticipantNumber < iParticipantCount; iParticipantNumber++)
{
var aParticipant = document.aDcaOrgList[ iParticipantNumber ];
if ("undefined" !== typeof(aParticipant['name']))
{
var sStatus = this.sCookieAcceptedText;
if ("undefined" !== typeof(aParticipant['setAcceptedUrl']))
{
var oImage = document.createElement('img');
oImage.alt = '';
oImage.title = oImage.alt;
oImage.src = aParticipant['setAcceptedUrl']+"&h4h="+this.sRemoteAddressHash+'&s='+Math.random();
oImage.iParticipantNumber = iParticipantNumber;
oImage.onload = function() { oThisReference.checkAcceptingStatus(this) };
oImage.onerror = function() { oThisReference.checkAcceptingStatus(this) };
document.body.appendChild(oImage);
sStatus = this.sAcceptingCookieText;
}
if ("undefined" !== typeof(this.aParticipantColumns[ iParticipantNumber ]))
{
this.aParticipantColumns[ iParticipantNumber ].innerHTML = sStatus;
}}}
this.setCookiesAcceptedCookie();
this.closeOverlay();
this.hideSmallCookieCorner();
if ("function" == typeof(document.oDcaAcceptanceEvent))
{
document.oDcaAcceptanceEvent();
}};
this.closeOverlay = function()
{
if (null !== this.oOverlayGlassPlate)
{
document.body.removeChild(this.oOverlayGlassPlate);
this.oOverlayGlassPlate = null;
}
if (null !== this.oOverlayLayoutContainer)
{
document.body.removeChild(this.oOverlayLayoutContainer);
this.oOverlayContainer = null;
this.oOverlayLayoutContainer = null;
}};
this.renderParticipants = function()
{
var oParticipantRow = document.createElement('div');
oParticipantRow.className = 'DcaParticipantsRowClass';
oParticipantRow.style.cssFloat = 'left';
oParticipantRow.style.styleFloat = 'left';
oParticipantRow.style.clear = 'both';
oParticipantRow.style.marginTop = '16px';
oParticipantRow.style.width = '100%';
oParticipantRow.style.paddingTop = '3px';
oParticipantRow.style.paddingBottom = '3px';
this.oOverlayContainer.appendChild(oParticipantRow);
if ("undefined" === typeof(document.aDcaOrgList) || "object" !== typeof(document.aDcaOrgList))
{
document.aDcaOrgList = new Array();
}
this.checkParticipantList();
iParticipantCount = document.aDcaOrgList.length;
for (var iParticipantNumber = 0; iParticipantNumber < iParticipantCount; iParticipantNumber++)
{
var aParticipant = document.aDcaOrgList[ iParticipantNumber ];
if ("undefined" !== typeof(aParticipant['name']))
{
this.renderParticipant(iParticipantNumber, aParticipant);
}}}
this.checkParticipantList = function()
{
var bDigihostwebRendered = false;
iParticipantCount = document.aDcaOrgList.length;
for (var iParticipantNumber = 0; iParticipantNumber < iParticipantCount; iParticipantNumber++)
{
var aParticipant = document.aDcaOrgList[ iParticipantNumber ];
if ("undefined" !== typeof(aParticipant['name']))
{
if (-1 !== aParticipant['name'].toLowerCase().indexOf("digihostweb"))
{
bDigihostwebRendered = true;
}}}
var aNewParticipantList = new Array();
iParticipantCount = document.aDcaOrgList.length;
var iNewCount = 3;
for (var iParticipantNumber = 0; iParticipantNumber < iParticipantCount; iParticipantNumber++)
{
var aParticipant = document.aDcaOrgList[ iParticipantNumber ];
var iNewNumber = null;
if ("undefined" !== typeof(aParticipant['name']))
{
if (-1 !== aParticipant['name'].toLowerCase().indexOf("google"))
{
iNewNumber = 0;
}
if (-1 !== aParticipant['name'].toLowerCase().indexOf("facebook"))
{
iNewNumber = 1;
}
if (-1 !== aParticipant['name'].toLowerCase().indexOf("twitter"))
{
iNewNumber = 2;
}}
if (null == iNewNumber || "undefined" != typeof(aNewParticipantList[ iNewNumber ]))
{
iNewNumber = iNewCount;
iNewCount++;
}
aNewParticipantList[ iNewNumber ] = document.aDcaOrgList[ iParticipantNumber ];
}
var iParticipantCount = aNewParticipantList.length;
document.aDcaOrgList = new Array();
for (var iParticipantNumber = 0; iParticipantNumber < iParticipantCount; iParticipantNumber++)
{
if ("undefined" != typeof(aNewParticipantList[ iParticipantNumber ]) && null !== aNewParticipantList[ iParticipantNumber ])
{
document.aDcaOrgList[ document.aDcaOrgList.length ] = aNewParticipantList[ iParticipantNumber ];
}}};
this.renderParticipant = function(iParticipantNumber, aParticipant)
{
var oParticipantRow = document.createElement('div');
oParticipantRow.className = 'DcaParticipantsRowSub';
oParticipantRow.style.cssFloat = 'left';
oParticipantRow.style.styleFloat = 'left';
oParticipantRow.style.clear = 'both';
oParticipantRow.style.width = '100%';
oParticipantRow.style.paddingTop = '3px';
oParticipantRow.style.paddingBottom = '3px';
oParticipantRow.style.paddingLeft = '16px';
this.oOverlayContainer.appendChild(oParticipantRow);
var oImageContainer = document.createElement("div");
oImageContainer.style.cssFloat = 'left';
oImageContainer.style.styleFloat = 'left';
oImageContainer.style.width = '16px';
oImageContainer.style.height = '16px';
var oImage = document.createElement("img");
oImage.title = aParticipant['name'];
oImage.alt = aParticipant['name'];
oImage.style.border = '0px';
oImage.style.width = '16px';
oImage.style.height = '16px';
if ("undefined" == typeof(aParticipant['image']) || null == aParticipant['image'] || "" == aParticipant['image'])
{
if ("undefined" == typeof(aParticipant['domain']) || null == aParticipant['domain'] || "" == aParticipant['domain'])
{
aParticipant['image'] = this.sNoImageUrl;
oImage.style.display = 'none';
}
else
{
aParticipant['image'] = aParticipant['domain']+'/'+'favicon.ico';
}}
oImage.src = aParticipant['image'];
oImage.onerror = function () { this.parentNode.removeChild(this); };
oImageContainer.appendChild(oImage);
oParticipantRow.appendChild(oImageContainer);
var oNameContainer = document.createElement("div");
oNameContainer.style.cssFloat = 'left';
oNameContainer.style.styleFloat = 'left';
oNameContainer.style.marginLeft = '5px';
oParticipantRow.appendChild(oNameContainer);
var sPolicyUrl = null;
if ("undefined" != typeof(aParticipant['policyUrl']) && null != aParticipant['policyUrl'] && "" != aParticipant['policyUrl'])
{
sPolicyUrl = aParticipant['policyUrl'];
}
else if ("undefined" != typeof(aParticipant['domain']) && null != aParticipant['domain'] && "" != aParticipant['domain'])
{
sPolicyUrl = aParticipant['domain'];
}
if (null === sPolicyUrl)
{
oNameContainer.innerHTML = aParticipant['name'];
}
else
{
var oAnchor = document.createElement("a");
oAnchor.href = sPolicyUrl;
oAnchor.target = '_blank';
oAnchor.innerHTML = aParticipant['name'];
oAnchor.title = this.sPrivacyLinkTitle.replace(/%ORGANISATION%/g, aParticipant['name']);
oNameContainer.appendChild(oAnchor);
}
this.aParticipantColumns[ iParticipantNumber ] = document.createElement("div");
this.aParticipantColumns[ iParticipantNumber ].style.cssFloat = 'right';
this.aParticipantColumns[ iParticipantNumber ].style.styleFloat = 'right';
this.aParticipantColumns[ iParticipantNumber ].style.width = '15%';
this.aParticipantColumns[ iParticipantNumber ].innerHTML = "Status";
var sStatus = '-';
if ("undefined" != typeof(aParticipant['checkUrl']) && null != aParticipant['checkUrl'] && "" != aParticipant['checkUrl'])
{
var oImage = document.createElement('img');
oImage.alt = '';
oImage.title = oImage.alt;
oImage.src = aParticipant['checkUrl'];
oImage.iParticipantNumber = iParticipantNumber;
oImage.onload = function() { oThisReference.checkAcceptanceStatus(this) };
oImage.onerror = function() { oThisReference.checkAcceptanceStatus(this) };
document.body.appendChild(oImage);
sStatus = this.sCheckingText;
}
this.aParticipantColumns[ iParticipantNumber ].innerHTML = sStatus;
}
this.checkAcceptanceStatus = function(oImage)
{
var iParticipantNumber = oImage.iParticipantNumber;
if (1 == oImage.width && "undefined" !== this.aParticipantColumns[ iParticipantNumber ])
{
this.aParticipantColumns[ iParticipantNumber ].innerHTML = this.sAlreadyAcceptedText;
}
else if ("undefined" !== this.aParticipantColumns[ iParticipantNumber ])
{
this.aParticipantColumns[ iParticipantNumber ].innerHTML = '-';
}
oImage.parentNode.removeChild(oImage);
}
this.checkAcceptingStatus = function(oImage)
{
var iParticipantNumber = oImage.iParticipantNumber;
if (1 == oImage.width && "undefined" !== typeof(this.aParticipantColumns[ iParticipantNumber ]))
{
this.aParticipantColumns[ iParticipantNumber ].innerHTML = this.sCookieAcceptedText;
}
else if ("undefined" !== typeof(this.aParticipantColumns[ iParticipantNumber ]))
{
this.aParticipantColumns[ iParticipantNumber ].innerHTML = this.sAcceptenceFailedText;
}
oImage.parentNode.removeChild(oImage);
}
this.checkNotAcceptingStatus = function(oImage)
{
var iParticipantNumber = oImage.iParticipantNumber;
try
{
oImage.parentNode.removeChild(oImage);
}
catch (e)
{
}}
this.renderSmallCookieCorner = function()
{
this.hideSmallCookieCorner();
this.oSmallCookieCorner = document.createElement('div');
this.oSmallCookieCorner.className = 'DcaSmallCornerContainer';
this.oSmallCookieCorner.style.zIndex = 1000;
this.oSmallCookieCorner.style.backgroundColor = this.sSmallCornerBackgroundColor;
this.oSmallCookieCorner.style.border = 'solid 1px gray';
this.oSmallCookieCorner.style.opacity = 0.7;
this.oSmallCookieCorner.style.filter = 'alpha(opacity=70)';
this.oSmallCookieCorner.style.position = 'fixed';
this.oSmallCookieCorner.style.fontFamily = 'Arial';
this.oSmallCookieCorner.style.fontSize = '8pt';
this.oSmallCookieCorner.style.padding = '8px';
this.oSmallCookieCorner.style.fontWeight = 'bold';
this.oSmallCookieCorner.style.color = this.sSmallCornerFontColor;
this.oSmallCookieCorner.style.width = '160px';
if ('topleft' == this.sCornerPosition)
{
this.oSmallCookieCorner.style.top = '0px';
this.oSmallCookieCorner.style.left = '0px';
this.oSmallCookieCorner.style.borderBottomRightRadius = '0.5em';
this.oSmallCookieCorner.style.MozBorderBottomRightRadius = '0.5em';
this.oSmallCookieCorner.style.WebkitBorderBottomRightRadius = '0.5em';
}
else if ('topright' == this.sCornerPosition)
{
this.oSmallCookieCorner.style.top = '0px';
this.oSmallCookieCorner.style.right = '0px';
this.oSmallCookieCorner.style.borderBottomLeftRadius = '0.5em';
this.oSmallCookieCorner.style.MozBorderBottomLeftRadius = '0.5em';
this.oSmallCookieCorner.style.WebkitBorderBottomLeftRadius = '0.5em';
}
else if ('bottomleft' == this.sCornerPosition)
{
this.oSmallCookieCorner.style.bottom = '0px';
this.oSmallCookieCorner.style.left = '0px';
this.oSmallCookieCorner.style.borderTopRightRadius = '0.5em';
this.oSmallCookieCorner.style.MozBorderTopRightRadius = '0.5em';
this.oSmallCookieCorner.style.WebkitBorderTopRightRadius = '0.5em';
}
else
{
this.oSmallCookieCorner.style.bottom = '0px';
this.oSmallCookieCorner.style.right = '0px';
this.oSmallCookieCorner.style.borderTopLeftRadius = '0.5em';
this.oSmallCookieCorner.style.MozBorderTopLeftRadius = '0.5em';
this.oSmallCookieCorner.style.WebkitBorderTopLeftRadius = '0.5em';
}
document.body.appendChild(this.oSmallCookieCorner);
var oTitleContainer = document.createElement("div");
oTitleContainer.className = 'DcaCookieCornerTitle';
oTitleContainer.style.width = '100%';
oTitleContainer.style.borderBottom = 'solid 1px gray';
oTitleContainer.style.cssFloat = 'left';
oTitleContainer.style.styleFloat = 'left';
oTitleContainer.style.clear = 'both';
this.oSmallCookieCorner.appendChild(oTitleContainer);
var oTitleText = document.createElement("div");
oTitleText.className = 'DcaCookieCornerTitleText';
oTitleText.innerHTML = this.sSmallCornerCookies;
oTitleText.style.cssFloat = 'left';
oTitleText.style.styleFloat = 'left';
oTitleContainer.appendChild(oTitleText);
var oCloseText = document.createElement("div")
oCloseText.innerHTML = this.sSmallCornerClose;
oCloseText.style.cssFloat = 'right';
oCloseText.style.styleFloat = 'right';
oCloseText.style.cursor = 'pointer';
oCloseText.style.fontSize = '7pt';
oCloseText.style.textDecoration = 'underline';
oCloseText.style.marginTop = '-2px';
oCloseText.onclick = function () { oThisReference.hideSmallCookieCorner() };
oCloseText.className = 'DcaSmallCornerCloseLink';
if ('x' == this.sSmallCornerClose.toLowerCase())
{
oCloseText.title = 'Sluiten';
oCloseText.style.fontFamily = 'verdana';
oCloseText.style.fontSize = '6pt';
oCloseText.style.textDecoration = 'none';
oCloseText.style.marginRight = '-2px';
}
oTitleContainer.appendChild(oCloseText);
var oApproveText = document.createElement("div")
oApproveText.innerHTML = this.sSmallCornerAccept;
oApproveText.style.cssFloat = 'right';
oApproveText.style.styleFloat = 'right';
oApproveText.style.cursor = 'pointer';
oApproveText.style.fontSize = '7pt';
oApproveText.style.textDecoration = 'underline';
oApproveText.style.marginTop = '-2px';
oApproveText.style.marginRight = '8px';
oApproveText.onclick = function () { oThisReference.acceptCookies(); };
oApproveText.className = 'DcaSmallCornerAcceptLink';
oTitleContainer.appendChild(oApproveText);
var oTextContainer = document.createElement("div");
oTextContainer.className = 'DcaCookieCornerTitleTextContainer';
this.oSmallCookieCorner.appendChild(oTextContainer);
oTextContainer.innerHTML = this.sCookiesNotAcceptedText;
oTextContainer.style.marginTop = '8px';
oTextContainer.style.cssFloat = 'left';
oTextContainer.style.styleFloat = 'left';
oTextContainer.onclick = function() { oThisReference.hideSmallCookieCorner(); oThisReference.showRequestOverlay(); };
oTextContainer.style.cursor = 'pointer';
}
this.hideSmallCookieCorner = function()
{
if (null !== this.oSmallCookieCorner)
{
this.oSmallCookieCorner.parentNode.removeChild(this.oSmallCookieCorner);
this.oSmallCookieCorner = null;
}}}
var oReference = window.onload;
window.onload = function()
{
document.cookieAcceptenceCheck = new cookieAcceptance();
document.cookieAcceptenceCheck.check();
if ("function" == typeof(oReference))
{
try
{
eval("mReturn = mFunction()");
}
catch (e)
{
}}
else if ("undefined" !== typeof(oReference) && null !== oReference && "" !== oReference)
{
try
{
eval("mReturn = "+mFunction);
}
catch (e)
{
}}}