/*
 main code to be triggered from within home page
*/

var domain = 'http://www.brotherscider.co.uk/';
var agecheck = 'age-check.php?rurl=';
var path = location.pathname;

if (getCookie('agecookie') == 'imover18') {
    // no action required
} else {
    // do validation stuff
    location.assign(domain + agecheck + path);
}
