<!--

var xmlHttp

function setthis(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="selector_set.php"
url=url+"?select="+str
url=url+"&sid="+Math.random()
document.getElementById("main_ref").innerHTML="<img src='loader.gif' alt='' />"
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function getCookie(name) {
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1) {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    } else {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1) {
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 {
var aion_ssource = getCookie("aion_source");
if (aion_ssource == '1')
 {
document.getElementById('aion_source').className='hide'
 }
if (aion_ssource == '2')
 {
document.getElementById('aion_source').className='show'
 }
 
 var aion_online_com = getCookie("aion_online_com");
if (aion_online_com == '1')
 {
document.getElementById('aion_online_com').className='hide'
 }
if (aion_online_com == '2')
 {
document.getElementById('aion_online_com').className='show'
 }
 
 var aion_facebook = getCookie("aion_facebook");
if (aion_facebook == '1')
 {
document.getElementById('aion_facebook').className='hide'
 }
if (aion_facebook == '2')
 {
document.getElementById('aion_facebook').className='show'
 }
 
  var aion_curse = getCookie("aion_curse");
if (aion_curse == '1')
 {
document.getElementById('aion_curse').className='hide'
 }
if (aion_curse == '2')
 {
document.getElementById('aion_curse').className='show'
 }
 
  var mmorpg_com = getCookie("mmorpg_com");
if (mmorpg_com == '1')
 {
document.getElementById('mmorpg_com').className='hide'
 }
if (mmorpg_com == '2')
 {
document.getElementById('mmorpg_com').className='show'
 }
  
  var aion_top = getCookie("aion_top");
if (aion_top == '1')
 {
document.getElementById('aion_top').className='hide'
 }
if (aion_top == '2')
 {
document.getElementById('aion_top').className='show'
 }
 sURL = 'http://www.aletheialegion.com/main/infinity/gotopage.php';
 document.getElementById("main_ref").innerHTML=xmlHttp.responseText
 window.location.href = sURL;
 } 
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}

//-->
