jQuery(document).ready(function() {
    if(getCookie('splash')==null) {
        $("#hidden-link").fancybox().trigger('click');
    
    $.fancybox('<div id="data" style="font-size:1.2em;width:500px;"><h3>Scam Warning</h3><p>We would like to make all of our clients aware that Action Direct UK Limited has been a victim of corporate identity fraud. This means that a small amount of our customers have been contacted by individuals claiming to be Action Direct UK Limited, who are then asking our clients to pay fees for their claims by purchasing ukash vouchers or making transfers via western unions. We are working with the police and external security companies to ensure that the criminals behind this activity are brought to justice swiftly. If you have been effected by such activity please report it immediately to Action Fraud on 0300 123 2040 or visit their website at actionfraud.org.uk. Action Fraud is a service that is run by the National Fraud Authority – the government agency that helps to co-ordinate the fight against fraud in the UK. Please be advised that Action Direct will never request any type of vouchers or western union transfers, we will only ever request our fees to be paid by the way that are highlighted in our terms of agreement.</p><p>It has been brought to our attention that the individuals posing to be Action Direct UK Limited are of foreign decent and as such you may be able to identify such calls as the callers will have strong Indian accents. If you ever have any questions or suspect the call you have received is not from Action Direct please disconnect the call and contact us on 0845 040 58 63, where one of our advisors will be happy to help you.</p></div>',
        {'padding': '20px',
            'width': '500px',
            'onClosed'  : function() {
                setCookie('splash',1,7);
            }
        });
    }
});


function setCookie(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 getCookie(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;
}

function deleteCookie(name) {
    setCookie(name,"",-1);
}

