
// From http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_20444133.html
var map =
{ 
    "0":"http://www.abroadcasting.com",
    "1":"http://www.abroadcasting.tv/InternetTV", 
    "2":"http://www.abroadcasting.tv/InternetTV/mcot",
    "3":"http://www.abroadcasting.tv/InternetTV/beta",
    "4":"http://dnn.abroadcasting.com/dotnetnuke",
    "5":"http://dnn.abroadcasting.com/dotnetnuke/mcot",
    "6":"http://dnn.abroadcasting.com/dotnetnuke/beta"
};

//Create the global array to hold the requestParameters.
requestParameter = new Array();
//Get the location of the querystring in the current url.
qsStartPos = window.location.href.lastIndexOf('?');
//If there is a queryString (eg, a ? in the url)....
if (qsStartPos != -1) {
     //Get everything after the ? mark
     qs = window.location.href.substr(qsStartPos+1);
     //Split the paramters out into an array;
     qsArrayTemp = (qs.split('&'));
     //Now go through the parameters we've found.
     for (i =0; i < qsArrayTemp.length; i++)
     {
          //and split out the name=values
          element = qsArrayTemp[i].split('=');
          //and populate the requestParameter array
          //with the current name=value pair
          requestParameter[element[0]] = element[1];
     }
     //At this point, we're finished, 'requestParameter' now
     //contains all the values from the query string.
}

function Nexus_Nav()
{
    if (map[requestParameter['id']])
        window.location.href = map[requestParameter['id']];
    else
        window.location.href = map["0"];
}

