var pages = new Array();
var color = "#3484a5";
//var altcolor = "#a0a0a0";
var altcolor = "#737373";
var last = "";
var pagehighlight = new Image();
pagehighlight.src = "high.png";

pages["news"] = "Keep up to date with all the rants and ramblings from GGpX.";
pages["about"] = "Ever wonder how we got started? Me neither.";
pages["projects"] = "Find your favorite project and marvel at how far behind it is.";
pages["forums"] = "Try your best not to get into a flamewar with one of the two people who use the forums.";
pages["join us"] = "Feel like destroying any sense of satisfaction you have with most scans? Apply now.";
pages["irc"] = "Come, experience the emptiness that is our irc channel.";
pages["reader"] = "HDD full with porn? No worries, you can read our scans online.";
pages["rss"] = "Enjoy our RSS feed and don't forget to let us know how it's not working.";

function pageOver( page, obj ) {
    var desc = document.getElementById( "description" );
    obj.style.cursor = "pointer";
    obj.style.color = "white";
    obj.style.backgroundColor = altcolor;
    obj.style.backgroundImage = "url(high.png)";
    obj.style.fontWeight = "bold";
    desc.innerHTML = pages[page];
    desc.style.backgroundColor = altcolor;
}

function pageOut( page, obj ) {
    var desc = document.getElementById( "description" );
    obj.style.color = "#909090";
    obj.style.backgroundColor = "";
    obj.style.backgroundImage = "";
    obj.style.fontWeight = "normal";
    desc.innerHTML = pages[current_page];
    desc.style.backgroundColor = color;
}

function linkOver( obj ) {
    obj.style.cursor = "pointer";
    obj.style.borderBottom = "1px solid #3484a5";
    obj.style.backgroundColor = "#deebf1";
    obj.childNodes[0].style.color = "#3484a5";
    obj.childNodes[1].style.color = "#3484a5";
}

function linkOut( obj ) {
    obj.style.borderBottom = "1px solid #f9f9f9";
    obj.style.backgroundColor = "";
    obj.childNodes[0].style.color = "";
    obj.childNodes[1].style.color = "";
}

function handleProjectOver( obj ) {
    last = obj.style.backgroundColor;
    obj.style.backgroundColor = '#deebf1';
    obj.style.cursor = 'pointer';
    obj.style.color = '#3484a5';
}

function handleProjectOut( obj ) {
    obj.style.backgroundColor = last;
    obj.style.color = '#909090';
    obj.style.fontWeight = '';
}

function loadPage( path ) {
    document.location.href = path;
}


