// File PandorionStart.js - Initial JavaScript file for the Pandorion web site

// Determine the browser type
var client = 'ALL';
if (navigator.appName.indexOf('Microsoft') != -1) {
    client = 'IE';
}
createCookie('PandorionBrowserType', client, 30);
// redirect - redirect the browser after a delay
function redirect(delay) {
    setTimeout('window.location.replace("http://www.pandorion.co.uk/pandorion")', delay);
}
// createCookie - create a cookie
function createCookie(name, value, days) {
    var cookie = name + '=' + value + '; expires=';
    var date = new Date();
    date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
    cookie += date.toGMTString() + ';';
    cookie += ' path=/';
    document.cookie = cookie;
}

