﻿var x = readCookie('ValueInvestDisclaimer')
var xday = readCookie('ValueInvest')

if (x != 'accepted' && xday != 'dontshowdisclaimeroneday') {
    $(document).ready(function() {
    $.popup.show("<img src='/Files/System/Valueinvest/Graphic/disclamertop.jpg' />", "<h2>Regulatory information</h2><p>In using this website you accept the terms of use. ValueInvest LUX Sicav reserves the right to change these terms of use on an ongoing basis. You should therefore review the terms of use on an ongoing basis. </p><p>The ValueInvest LUX Sicav website is not intended for any persons whose place of residence or who are subject to conditions that deprive them of the right to invest in ValueInvest LUX Sicav. </p><h2>No Financial Advice</h2><p>Any information published on this homepage is meant exclusively as information and not as an offer or recommendation to buy or sell any investment instrument.</p><p>Any economic transaction based on the information on this homepage is on the investor's own risk and account. ValueInvest LUX Sicav declines to accept any liability for damages caused by the use of our website. Investors are recommended to seek professional advice before investing in ValueInvest LUX Sicav.</p><h2>Liability</h2><p>ValueInvest LUX Sicav has taken all reasonable care to ensure that the information and data on this homepage are accurate and reliable. ValueInvest LUX Sicav declines to accept any responsibility for the published data being up to date at all times, accurate, correct or complete or free of risk, virus or other damage.</p><p>Past performance is not necessarily a guide to future performance. The value of an investment may fall as well as rise. ValueInvest LUX Sicav cannot guarantee that capital investments will maintain or increase in value. </p><h2>Applicable Law</h2><p>The governing law is the law of Luxembourg. By using this website, you hereby submit to and waive any objections to the jurisdiction of such courts in respect of any dispute, which may arise by using this website.</p><input type=button value=Accept class=knapper onclick=acceptIt() /><input type=button value=Decline class=knapper onclick=decline() /><input type=checkbox id=huskmig name=huskmig value=yes1/><span class=huskmig>Remember Me</span>");
    });
} 



function acceptIt() {
	createCookie("ValueInvest", "dontshowdisclaimeroneday", 1)
	
    if (document.getElementById("huskmig").checked) {
        createCookie("ValueInvestDisclaimer", "accepted", 1000)
    }

    if (this.showing) {
        jQuery('#' + settings.bg_id).fadeOut("normal");
        jQuery('#' + settings.main_id).fadeOut("normal");
        this.showing = false;
    }

}
function decline() {
    history.go(-1);

}

function createCookie(name, value, days) {
    if (days) {
        var date = new Date();
        date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
        var expires = "; expires=" + date.toGMTString();
    }
    else var expires = "";
    document.cookie = name + "=" + value + expires + "; path=/";
}

function readCookie(name) {
    var nameEQ = name + "=";
    var ca = document.cookie.split(';');
    for (var i = 0; i < ca.length; i++) {
        var c = ca[i];
        while (c.charAt(0) == ' ') c = c.substring(1, c.length);
        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
    }
    return null;
}

