﻿// JScript File
function setPageTitle(what){
    document.title = what;
}

var bgImages = new Array()

var j = bgImages.length;

// To add more image files, continue with the
// pattern below, adding to the arrays.
//bgImages[0] = 'heroes08_bg.jpg'
//bgImages[1] = 'heroes08_bg.jpg'
//bgImages[2] = 'background_3.jpg'

function getIEVersionNumber() {
    var ua = navigator.userAgent;
    var MSIEOffset = ua.indexOf("MSIE ");
    
    if (MSIEOffset == -1) {
        return 0;
    } else {
        return parseFloat(ua.substring(MSIEOffset + 5, ua.indexOf(";", MSIEOffset)));
    }
}



// END HIDE CODE -->

function setMask(themePath){
    
   // Use if Array is needed 
   //var randomItem = Math.round(((Math.random()*Math.random()) * 100) % (j-1));   
    document.body.style.backgroundImage = "url(" + themePath +  'heroes08_bg.jpg' + ")";
    
    if(!isIE){
    document.getElementById("header1").style.top="0px";
    document.getElementById("countdownie").style.top="0px";
    document.getElementById("maintable").style.width = "100%";
    document.getElementById("backgroundRepeatTable").style.width = "100%";
    }else{
        var isIE7Min = getIEVersionNumber() >= 7;
        if (!isIE7Min) {
        //alert("Less than IE 7");
            document.getElementById("maintable").style.width = "100%";
            document.getElementById("backgroundRepeatTable").style.width = "100%"; 
        }
    }
    //document.getElementById("header1").style.display = "inline";
    document.getElementById("maintable").style.display = "inline";
    document.getElementById("backgroundRepeatTable").style.display = "inline";
    //alert(document.getElementById("mainTable").style.height);
    start_countdown();
    
}


