function load()
{
    dashcode.setupParts();
    var t=setTimeout("slidenews(event)",100);
    var t=setTimeout("bottombarchange(event)",10000);
    var t=setTimeout("slidemenu(event)",200);
    var t=setTimeout("slidelike(event)",300);
    var t=setTimeout("showapplist(event)",4300);
    var t=setTimeout("window.scrollTo(0,1)",4000);
}

// Call upon the GUI for the loading page
function loadpage(event)
{
var t=setTimeout("putbacknews(event)",10);
var t=setTimeout("putbackmenu(event)",10);
var t=setTimeout("putbacklike(event)",10);
var t=setTimeout("loadingpage(event)",1000);
    var t=setTimeout("window.scrollTo(0,1)",10);
}

function loadingpage(event)
{
    var views = document.getElementById('load');
    var front = document.getElementById('loading');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
}

// Application Loading Procedures
function loadcalc(event)
{
    var t=setTimeout("loadpage(event)",100);
    loadstatus.value = "STATUS: Loading ArenaCalc"
    var t=setTimeout("window.location = 'http://nantyr.110mb.com/arena'",4000);
}

function loadabout(event)
{
    var t=setTimeout("loadpage(event)",100);
    loadstatus.value = "STATUS: Loading About Page"
    var t=setTimeout("window.location = 'http://nantyr.110mb.com/about'",4000);
}

function loadoldcalc(event)
{
    var t=setTimeout("loadpage(event)",100);
    loadstatus.value = "STATUS: Loading Old Arena Point Calculator"
    var t=setTimeout("window.location = 'http://nantyr.110mb.com/oldarena'",4000);
}


function loaddnd(event)
{
    var t=setTimeout("loadpage(event)",100);
    loadstatus.value = "STATUS: Loading (Classic)DNDCode Application"
    var t=setTimeout("window.location = 'http://nantyr.110mb.com/company'",4000);
}

function loadchange(event)
{
    var t=setTimeout("loadpage(event)",100);
    loadstatus.value = "STATUS: Loading changelog data"
    var t=setTimeout("window.location = 'http://nantyr.110mb.com/changelog'",4000);
}

function loadvids(event)
{
    var t=setTimeout("loadpage(event)",100);
    loadstatus.value = "STATUS: Loading WoW: Vids"
    var t=setTimeout("window.location = 'http://nantyr.110mb.com/wowvids'",4000);
}


// Sliding procedures
function slidenews(event)
{
    var views = document.getElementById('newsslide');
    var front = document.getElementById('whenload');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
}

function slidemenu(event)
{
    var views = document.getElementById('menuslide');
    var front = document.getElementById('whenmenuload');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
}

function slidelike(event)
{
    var views = document.getElementById('likeapp');
    var front = document.getElementById('whenlikeload');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
}

function putbackmenu(event)
{
    var views = document.getElementById('menuslide');
    var front = document.getElementById('nomenu');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
}

function putbacklike(event)
{
    var views = document.getElementById('likeapp');
    var front = document.getElementById('nolike');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
}

function putbacknews(event)
{
    var views = document.getElementById('newsslide');
    var front = document.getElementById('nonews');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
}

function rstsite(event)
{
alert("This will reset the application. Press OK to continue!");
    var t=setTimeout("resetsite(event)",1000);
}

function showapplist(event)
{
    var views = document.getElementById('appinfo');
    var front = document.getElementById('start');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
}

// Description Pages
function calcdescription(event)
{
    var views = document.getElementById('appinfo');
    var front = document.getElementById('arenacalcinfo');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
}


function oldcalcdescription(event)
{
    var views = document.getElementById('appinfo');
    var front = document.getElementById('oldcalcinfo');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
}


function aboutdescription(event)
{
    var views = document.getElementById('appinfo');
    var front = document.getElementById('aboutinfo');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
}


function dnddescription(event)
{
    var views = document.getElementById('appinfo');
    var front = document.getElementById('dndinfo');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
}

function resetsite(event)
{
window.location = "http://nantyr.110mb.com/"
}
// Application List Page Change
function applistpage2(event)
{
    var views = document.getElementById('applistlist');
    var front = document.getElementById('page2');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
}


function applistpage1(event)
{
    var views = document.getElementById('applistlist');
    var front = document.getElementById('page1');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
}


function wowmediadescription(event)
{
    var views = document.getElementById('appinfo');
    var front = document.getElementById('wowmediainfo');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
}

function bottombarchange(event)
{
    var views = document.getElementById('bottombar');
    var front = document.getElementById('ad1');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
var t=setTimeout("bottombarchange1(event)",10000);
}

function bottombarchange1(event)
{
    var views = document.getElementById('bottombar');
    var front = document.getElementById('ad2');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
var t=setTimeout("bottombarchange2(event)",10000);
}

function bottombarchange2(event)
{
    var views = document.getElementById('bottombar');
    var front = document.getElementById('ad3');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
var t=setTimeout("bottombarchange3(event)",10000);
}

function bottombarchange3(event)
{
    var views = document.getElementById('bottombar');
    var front = document.getElementById('ad4');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
var t=setTimeout("bottombarchange4(event)",10000);
}

function bottombarchange4(event)
{
    var views = document.getElementById('bottombar');
    var front = document.getElementById('ad5');
    if (views && views.object && front) {
        views.object.setCurrentView(front, true);
    }
var t=setTimeout("bottombarchange(event)",10000);
}


function tapadhere(event)
{
alert("Please EMail dndcode@gmail.com for more information. Ad spots are guarenteed, and have a flat fee, no payperclick.");
}


function ad3msg(event)
{
alert("Please look at the top of the page (Unless you are in Safari Web Browser) to the right of the clock for the version number. This is where the version will now be displayed.");
}

function ad5click(event)
{
alert("You have chosen a link that leaves WoW: Portals Site. Though we have looked over this site and have verified it as safe, we do not take responsibility for anything on the pages after this message. By tapping OK you agree that the website(s) displayed after this message is not owned by WoW: Portal and is therefore not WoW: Portals Responsibility. To return to WoW: Portal, please restart the application from the homescreen or revisit our webapp. Thanks! ;; C ;; When WoW: Portal is displayed, assume (WoW: Portal and DNDCode)");
window.location = "http://www.worldofwarcraft.com/account/wrath-direct-online-upgrade.html?ref=wowportaldndcode"
}


function cancelandreturn(event)
{
var t=clearTimeout
}


function callfunction(event)
{
window.location = "http://nantyr.110mb.com/arenacalc"
window.location = "javascript:support(event)"
}


function gotodesktopversionofarenacalc(event)
{
window.location = "http://nantyr.110mb.com/desktop"
}
