function back() {
    var now = new Date();
    now.setSeconds(now.getSeconds()+15);
    var expiryDate = now.toGMTString();
    document.cookie = 'back=refresh;expires=' + expiryDate + ';path=/';
    window.history.go(-1);
}

function refreshIfBack() {
    var cookieValue = document.cookie;
    var cookieName = 'back';
    var cookieRegExp = new RegExp('\\b' + cookieName + '=([^;]+)');
    cookieValue = cookieRegExp.exec(cookieValue);
    if(cookieValue != null) {
        document.cookie = 'back=refresh;expires=' + (new Date()).toGMTString() +
            ';path=/';
        location.href = location.href;
    }
}

function goToPage(page) {
    location.href = '/CasinoLive/' + page;
    return false;
}

function goToNews() {
    document.getElementById('headerButtonsForm:newsButton').click();
    return false;
}

function goToBetting() {
    document.getElementById('headerButtonsForm:oddsButton').click();
    return false;
}

function goToPoker() {
    document.getElementById('headerButtonsForm:pokerButton').click();
    return false;
}

function goToCasino() {
    document.getElementById('headerButtonsForm:casinoButton').click();
    return false;
}

function goToLiveCasino() {
    document.getElementById('headerButtonsForm:liveCasinoButton').click();
    return false;
}

function goToScandicLive() {
    location.href = 'http://scandiclive.com/ScandicLive/';
    return false;
}

function goToScandicLive_PageLive() {
    location.href = 'http://scandiclive.com/ScandicLive/Live';
    return false;
}

function goToScandicLive_PageResultater(){
	location.href = 'http://scandiclive.com/ScandicLive/Resultater';
	return false;
}

function goToScandicLive_PageStatistik(){
	location.href = 'http://scandiclive.com/ScandicLive/Statistik';
	return false;
}