function GetXMLHttpRequest() { 
    var object = null; 
    if (window.XMLHttpRequest) object = new XMLHttpRequest(); 
    else if (window.ActiveXObject) { 
        try { object = new ActiveXObject("Msxml2.XMLHTTP"); } 
        catch(e) { } 
        if (object == null) 
            try { object = new ActiveXObject("Microsoft.XMLHTTP"); } 
            catch(e) { } 
    } if (object == null) alert("Your browser does not support AJAX"); 
    return object; 
}

function agent(v) { return(Math.max(navigator.userAgent.toLowerCase().indexOf(v),0)); }
function AthenaProfiles()
{
        this.UserProfile = { Colors: { Body: '#FFFFFF', Nav: '#017FB0', Text: '#666666', Link: '#3366CC' } };
    this.DefaultProfile = { Colors: { Body: '#FFFFFF', Nav: '#017FB0', Text: '#666666', Link: '#3366CC' } };
    this.TempProfile = { Colors: { Body: '#FFFFFF', Nav: '#017FB0', Text: '#666666', Link: '#3366CC' } };

}
var AthenaColorSelector = {
    Parent: 0,
    Selector: 0,
    Load: function (parent)
    {
        if (AthenaColorSelector.Parent != 0) AthenaColorSelector.Close();
        AthenaColorSelector.Parent = parent;
        AthenaColorSelector.Selector = document.createElement('div');
        AthenaColorSelector.Selector.id = 'AthenaColorSelector';
        AthenaColorSelector.Selector.style.zIndex = '1000';
        AthenaColorSelector.Selector.style.display = 'none';
        AthenaColorSelector.Selector.innerHTML = '\
         <div id="AthenaColorSelectorCUR"></div><div id="AthenaColorSelectorHEX" onmousedown="stop=0; setTimeout(\'stop=1\',100);">FFFFFF</div><div id="AthenaColorSelectorClose" onclick="AthenaColorSelector.Close();">X</div><br>\
            <div id="SV" onmousedown="HSVslide(\'SVslide\',\'' + AthenaColorSelector.Selector.id + '\',event)" title="Saturation + Value">\
                <div id="SVslide" style="TOP: -4px; LEFT: -4px;"><br /></div>\
            </div>\
            <form id="H" onmousedown="HSVslide(\'Hslide\',\'' + AthenaColorSelector.Selector.id + '\',event)" title="Hue">\
                <div id="Hslide" style="TOP: -4px; LEFT: -8px;"><br /></div>\
                <div id="Hmodel"></div>\
            </form>\
         </div>';
        document.body.appendChild(AthenaColorSelector.Selector);
        loadSV();
        AthenaColorSelector.Selector.style.left=AthenaColorSelector.Parent.offsetLeft+'px';
        AthenaColorSelector.Selector.style.top=AthenaColorSelector.Parent.offsetTop+'px';
        AthenaColorSelector.Selector.style.display='block';
        AthenaColorSelector.Parent.onclick = function () { AthenaColorSelector.Close(); };
    },
    Close: function ()
    {
        AthenaColorSelector.Parent.onclick = function () { AthenaColorSelector.Load(this); };
        document.body.removeChild(AthenaColorSelector.Selector);
        AthenaColorSelector.Selector = 0;
        AthenaColorSelector.Parent = 0;
    }
}

function $(v) { return(document.getElementById(v)); }
function $S(v) { return($(v).style); }
function agent(v) { return(Math.max(navigator.userAgent.toLowerCase().indexOf(v),0)); }
function within(v,a,z) { return((v>=a && v<=z)?true:false); }
function XY(e,v) { var z=agent('msie')?[event.clientX+document.body.scrollLeft,event.clientY+document.body.scrollTop]:[e.pageX,e.pageY]; return(z[zero(v)]); }
function XYwin(v) { var z=agent('msie')?[document.body.clientHeight,document.body.clientWidth]:[window.innerHeight,window.innerWidth]; return(!isNaN(v)?z[v]:z); }
function zero(v) { v=parseInt(v); return(!isNaN(v)?v:0); }

/* PLUGIN */

var maxValue={'h':360,'s':100,'v':100}, HSV={0:360,1:100,2:100};
var hSV=165, wSV=162, hH=163, slideHSV={0:360,1:100,2:100}, zINDEX=15, stop=1;

function HSVslide(d,o,e) {

	function tXY(e) { tY=XY(e,1)-top; tX=XY(e)-left; }
	function mkHSV(a,b,c) { return(Math.min(a,Math.max(0,Math.ceil((parseInt(c)/b)*a)))); }
	function ckHSV(a,b) { if(within(a,0,b)) return(a); else if(a>b) return(b); else if(a<0) return('-'+oo); }
	function drag(e) { if(!stop) { if(d!='drag') tXY(e);
	
		if(d=='SVslide') { ds.left=ckHSV(tX-oo,wSV)+'px'; ds.top=ckHSV(tY-oo,wSV)+'px';
		
			slideHSV[1]=mkHSV(100,wSV,ds.left); slideHSV[2]=100-mkHSV(100,wSV,ds.top); HSVupdate();

		}
		else if(d=='Hslide') { var ck=ckHSV(tY-oo,hH), j, r='hsv', z={};
		
			ds.top=(ck)+'px'; slideHSV[0]=mkHSV(360,hH,ck);
 
			for(var i=0; i<=r.length-1; i++) { j=r.substr(i,1); z[i]=(j=='h')?maxValue[j]-mkHSV(maxValue[j],hH,ck):HSV[i]; }

			HSVupdate(z); $S('SV').backgroundColor='#'+hsv2hex([HSV[0],100,100]);

		}

	}}

	if(stop) { stop=''; var ds=$S(d!='drag'?d:o);
		var left=($(o).offsetLeft+10), top=($(o).offsetTop+22), tX, tY, oo=(d=='Hslide')?2:4; if(d=='SVslide') slideHSV[0]=HSV[0];

		document.onmousemove=drag; document.onmouseup=function(){ stop=1; document.onmousemove=''; document.onmouseup=''; }; drag(e);

	}
}
function HSVupdate(v) { v=hsv2hex(HSV=v?v:slideHSV);
	$('AthenaColorSelectorHEX').innerHTML=v;
	$S('AthenaColorSelectorCUR').background='#'+v;
	AthenaColorSelector.Parent.style.background='#'+v;
	AthenaColorSelector.Parent.innerHTML='#'+v;
	Athena.Profiles.TempProfile.Colors[AthenaColorSelector.Parent.parentNode.id.replace("AthenaColor", "")] = '#' + v;
	Athena.CSS.PreviewFrom(Athena.Profiles.TempProfile);
	return(v);

}

function loadSV() { var z='';

	for(var i=hSV; i>=0; i--) z+="<div style=\"BACKGROUND: #"+hsv2hex([Math.round((360/hSV)*i),100,100])+";\"><br /><\/div>";
	
	$('Hmodel').innerHTML=z;
	
}

/* CONVERSIONS */

function toHex(v) { v=Math.round(Math.min(Math.max(0,v),255)); return("0123456789ABCDEF".charAt((v-v%16)/16)+"0123456789ABCDEF".charAt(v%16)); }
function rgb2hex(r) { return(toHex(r[0])+toHex(r[1])+toHex(r[2])); }
function hsv2hex(h) { return(rgb2hex(hsv2rgb(h))); }	

function hsv2rgb(r) { // easyrgb.com/math.php?MATH=M21#text21

    var R,B,G,S=r[1]/100,V=r[2]/100,H=r[0]/360;

    if(S>0) { if(H>=1) H=0;

        H=6*H; F=H-Math.floor(H);
        A=Math.round(255*V*(1.0-S));
        B=Math.round(255*V*(1.0-(S*F)));
        C=Math.round(255*V*(1.0-(S*(1.0-F))));
        V=Math.round(255*V); 

        switch(Math.floor(H)) {

            case 0: R=V; G=C; B=A; break;
            case 1: R=B; G=V; B=A; break;
            case 2: R=A; G=V; B=C; break;
            case 3: R=A; G=B; B=V; break;
            case 4: R=C; G=A; B=V; break;
            case 5: R=V; G=A; B=B; break;

        }

        return([R?R:0,G?G:0,B?B:0]);

    }
    else return([(V=Math.round(V*255)),V,V]);

}
function AthenaCSS()
{
    this.CSS = null;
    this.x = 0;
}

AthenaCSS.prototype = {
    Load: function() {
        if (!agent('msie') && this.CSS != null) document.getElementsByTagName("head")[0].removeChild(this.CSS);
        this.CSS = document.createElement('style');
        if (agent('msie')) {
            this.CSS = document.createStyleSheet();
            var a = this.CSS.owningElement || this.CSS.ownerNode;
            a.setAttribute('type', 'text/css');
        } else { this.CSS.setAttribute('type', 'text/css'); this.CSS.id = "AthenaCSS"; }
        var arra = document.getElementById('AthenaBarHeaderBackgrounds').getElementsByTagName('img');
        this.x = Math.floor(Math.random() * arra.length);
        var img = arra[this.x].getAttribute("onclick").replace("Athena.Bar.ChangeBg('", "").replace("');", "");
        var s = "                 form { background-image: url(" + Athena.Root + "Themes/Athena2008/api.ashx/Background/Form); }\n";
        s += "                  a:Link, a:ACTIVE { color: " + Athena.Profiles.UserProfile.Colors.Link + "; }\n";
        s += "                  a:VISITED { color: " + this.AdjustColorIntensity(Athena.Profiles.UserProfile.Colors.Link, {Red: 20, Green: 20, Blue: 20 }) + "; }\n";
        s += "                  #CommonHeader { background-image: url(" + Athena.Root + "Themes/Athena2008/api.ashx/Background/Header/" + img + "); }\n";
        s += "                  body { color: " + Athena.Profiles.UserProfile.Colors.Text + "; }\n";
        s += "                  #CommonNavigation .CommomNavigationLink, .CommomNavigationLinkRoundTop .r1, .CommomNavigationLinkRoundTop .r2, .CommomNavigationLinkRoundTop .r3, .CommomNavigationLinkRoundTop .r4, #CommonNavigation .rightPadding:HOVER .CommomNavigationLink, #CommonHeaderUserContent, #CommonHeaderAthenaLinkContent, #CommonHeaderUserRoundLeft .r2, #CommonHeaderUserRoundLeft .r3, #CommonHeaderUserRoundLeft .r4, #CommonHeaderUserRoundLeft .r5, #CommonHeaderUserRoundRight .r2, #CommonHeaderUserRoundRight .r3, #CommonHeaderUserRoundRight .r4, #CommonHeaderUserRoundRight .r5, #CommonHeaderAthenaLinkRoundLeft .r2, #CommonHeaderAthenaLinkRoundLeft .r3, #CommonHeaderAthenaLinkRoundLeft .r4, #CommonHeaderAthenaLinkRoundLeft .r5, #CommonHeaderAthenaLinkRoundRight .r2, #CommonHeaderAthenaLinkRoundRight .r3, #CommonHeaderAthenaLinkRoundRight .r4, #CommonHeaderAthenaLinkRoundRight .r5, #CommonNavigation .rightPadding:HOVER .CommomNavigationLinkRoundTop b { background-color: " + Athena.Profiles.UserProfile.Colors.Nav + "; }\n";
        s += "                  #CommonNavigation li:HOVER .CommomNavigationLink, #CommonHeaderAthenaLink:HOVER .r2, #CommonHeaderAthenaLink:HOVER .r3, #CommonHeaderAthenaLink:HOVER .r4, #CommonHeaderAthenaLink:HOVER .r5, #CommonHeaderAthenaLink:HOVER #CommonHeaderAthenaLinkContent, #CommonNavigation li:HOVER .CommomNavigationLinkRoundTop b { background-color: " + this.AdjustColorIntensity(Athena.Profiles.UserProfile.Colors.Nav, {Red: 1, Green: 25, Blue: 35 }) + "; }\n";
        s += "                  #CommonNavigation li.Selected a .CommomNavigationLink, #CommonNavigation li.Selected a .CommomNavigationLinkRoundTop b { background-color: " + this.AdjustColorIntensity(Athena.Profiles.UserProfile.Colors.Nav, {Red: 122, Green: 65, Blue: 44 }) + "; }\n";
        s += "                  #CommonHeaderAthenaLink.open .r2, #CommonHeaderAthenaLink.open .r3, #CommonHeaderAthenaLink.open .r4, #CommonHeaderAthenaLink.open .r5, #CommonHeaderAthenaLink.open #CommonHeaderAthenaLinkContent { background: #fff; }\n";
        s += "                  #CommonBody { background-color: " + Athena.Profiles.UserProfile.Colors.Body + "; }";
        if (agent('msie'))
        {
            ruleArray = s.split("}");
            for (i in ruleArray) {
                try {
                var currentRule = ruleArray[i].replace(/^\s*/, "").replace(/\s*$/, "");
                var nameValueArray = currentRule.split("{");
                var names = nameValueArray[0].replace(/^\s*/, "").replace(/\s*$/, "").split(',');
                var value = nameValueArray[1].replace(/^\s*/, "").replace(/\s*$/, "");
                for (n in names) this.CSS.addRule(names[n],value);
                } catch (e) { }
            }
        }
        else {
            this.CSS.appendChild(document.createTextNode(s));
            document.getElementsByTagName("head")[0].appendChild(this.CSS);
        }
    },
    PreviewFrom: function (profile)
    {
        if (!agent('msie') && this.CSS != null) document.getElementsByTagName("head")[0].removeChild(this.CSS);
        this.CSS = document.createElement('style');
        if (agent('msie')) {
            this.CSS = document.createStyleSheet();
            var a = this.CSS.owningElement || this.CSS.ownerNode;
            a.setAttribute('type', 'text/css');
        } else { this.CSS.setAttribute('type', 'text/css'); this.CSS.id = "AthenaCSS"; }
        var arra = document.getElementById('AthenaBarHeaderBackgrounds').getElementsByTagName('img');
        var img = arra[this.x].getAttribute("onclick").replace("Athena.Bar.ChangeBg('", "").replace("');", "");
        var s = "                 form { background-image: url(" + Athena.Root + "Themes/Athena2008/api.ashx/Background/Form); }\n"
        s += "                  a:Link, a:ACTIVE { color: " + profile.Colors.Link + "; }\n";
        s += "                  a:VISITED { color: " + this.AdjustColorIntensity(profile.Colors.Link, {Red: 122, Green: 65, Blue: 44 }) + "; }\n";
        s += "                  #CommonHeader { background-image: url(" + Athena.Root + "Themes/Athena2008/api.ashx/Background/Header/" + img + "); }\n";
        s += "                  body { color: " + profile.Colors.Text + "; }\n";
        s += "                  #CommonNavigation .CommomNavigationLink, .CommomNavigationLinkRoundTop .r1, .CommomNavigationLinkRoundTop .r2, .CommomNavigationLinkRoundTop .r3, .CommomNavigationLinkRoundTop .r4, #CommonNavigation .rightPadding:HOVER .CommomNavigationLink, #CommonHeaderUserContent, #CommonHeaderAthenaLinkContent, #CommonHeaderUserRoundLeft .r2, #CommonHeaderUserRoundLeft .r3, #CommonHeaderUserRoundLeft .r4, #CommonHeaderUserRoundLeft .r5, #CommonHeaderUserRoundRight .r2, #CommonHeaderUserRoundRight .r3, #CommonHeaderUserRoundRight .r4, #CommonHeaderUserRoundRight .r5, #CommonHeaderAthenaLinkRoundLeft .r2, #CommonHeaderAthenaLinkRoundLeft .r3, #CommonHeaderAthenaLinkRoundLeft .r4, #CommonHeaderAthenaLinkRoundLeft .r5, #CommonHeaderAthenaLinkRoundRight .r2, #CommonHeaderAthenaLinkRoundRight .r3, #CommonHeaderAthenaLinkRoundRight .r4, #CommonHeaderAthenaLinkRoundRight .r5, #CommonNavigation .rightPadding:HOVER .CommomNavigationLinkRoundTop b { background-color: " + profile.Colors.Nav + "; }\n";
        s += "                  #CommonNavigation li:HOVER .CommomNavigationLink, #CommonHeaderAthenaLink:HOVER .r2, #CommonHeaderAthenaLink:HOVER .r3, #CommonHeaderAthenaLink:HOVER .r4, #CommonHeaderAthenaLink:HOVER .r5, #CommonHeaderAthenaLink:HOVER #CommonHeaderAthenaLinkContent, #CommonNavigation li:HOVER .CommomNavigationLinkRoundTop b { background-color: " + this.AdjustColorIntensity(profile.Colors.Nav, {Red: 1, Green: 25, Blue: 35 }) + "; }\n";
        s += "                  #CommonNavigation li.Selected a .CommomNavigationLink, #CommonNavigation li.Selected a .CommomNavigationLinkRoundTop b { background-color: " + this.AdjustColorIntensity(profile.Colors.Nav, {Red: 122, Green: 65, Blue: 44 }) + "; }\n";
        s += "                  #CommonHeaderAthenaLink.open .r2, #CommonHeaderAthenaLink.open .r3, #CommonHeaderAthenaLink.open .r4, #CommonHeaderAthenaLink.open .r5, #CommonHeaderAthenaLink.open #CommonHeaderAthenaLinkContent { background: #fff; }\n";
        s += "                  #CommonBody { background-color: " + profile.Colors.Body + "; }";
        if (agent('msie'))
        {
            ruleArray = s.split("}");
            for (i in ruleArray) {
                try {
                var currentRule = ruleArray[i].replace(/^\s*/, "").replace(/\s*$/, "");
                var nameValueArray = currentRule.split("{");
                var names = nameValueArray[0].replace(/^\s*/, "").replace(/\s*$/, "").split(',');
                var value = nameValueArray[1].replace(/^\s*/, "").replace(/\s*$/, "");
                for (n in names) this.CSS.addRule(names[n],value);
                } catch (e) { }
            }
        }
        else {
            this.CSS.appendChild(document.createTextNode(s));
            document.getElementsByTagName("head")[0].appendChild(this.CSS);
        }
    },
    AdjustColorIntensity: function(color, ammount)
    {
        var hexChars = "0123456789ABCDEF";
        function Dec2Hex(Dec) { var a = Dec % 16; var b = (Dec - a)/16; return "" + hexChars.charAt(b) + hexChars.charAt(a); }
        var c = { Red: 0, Green: 0, Blue: 0 };
        c.Red = parseInt(color.charAt(1) + "" + color.charAt(2), '16');
        c.Green = parseInt(color.charAt(3) + "" + color.charAt(4), '16');
        c.Blue = parseInt(color.charAt(5) + "" + color.charAt(6), '16');
        c.Red += ammount.Red; c.Blue += ammount.Blue; c.Green += ammount.Green;
        if (c.Red > 255) c.Red = 255; if (c.Green > 255) c.Green = 255; if (c.Blue > 255) c.Blue = 255;
        return "#" + Dec2Hex(c.Red) + Dec2Hex(c.Green) + Dec2Hex(c.Blue);
    }
}
function AthenaBar()
{
    this.loaded = false;
}

AthenaBar.prototype = {
    Toggle: function() {
        if (document.getElementById('CommonHeaderAthenaLink').className == "open")
        {
            document.getElementById('CommonHeaderAthenaLink').className = "";
            document.getElementById('AthenaBar').style.display = "";
            document.getElementsByTagName('form')[0].removeAttribute("style");
            if (AthenaColorSelector.Selector != 0) AthenaColorSelector.Close();
        }
        else
        {
            document.getElementById('CommonHeaderAthenaLink').className = "open";
            document.getElementById('AthenaBar').style.display = "block";
            document.getElementsByTagName('form')[0].setAttribute('style', 'background-position: left ' + document.getElementById('AthenaBar').offsetHeight + 'px;');
        }
        return false;
    },
    ChangeBg: function(bg) {
    },
    ChangeFont: function(font) {
    },
    ViewBg: function(bg) {
        document.getElementById('CommonHeader').setAttribute('style', "background-image: url(/Themes/Athena2008/api.ashx/Background/Header/" + bg + ");");
    },
    ViewFont: function(font) {
        document.body.style.fontFamily = font;
    },
    ResetBg: function() {
        document.getElementById('CommonHeader').removeAttribute('style');
    },
    ResetFont: function() {
        document.body.style.fontFamily = '';
    },
    Reset: function() {
        Athena.Profiles.TempProfile = Athena.Profiles.UserProfile = Athena.Profiles.DefaultProfile;
        AthenaBar.CSS.Load();
    },
    Undo: function() {
        Athena.Profiles.TempProfile = Athena.Profiles.UserProfile;
        AthenaBar.CSS.Load();
    },
    SwitchPane: function(o, p) {
        var sel = (o.className == "Selected");
        if (AthenaColorSelector.Selector != 0) AthenaColorSelector.Close();
        for (var x = 0; x < o.parentNode.getElementsByTagName('a').length; x++)
            o.parentNode.getElementsByTagName('a')[x].className = '';
        if (sel == false) o.className = 'Selected';
        for (var x = 0; x < document.getElementById('AthenaBarContent').getElementsByTagName('div').length; x++)
            document.getElementById('AthenaBarContent').getElementsByTagName('div')[x].style.display = '';
        if (sel == false) document.getElementById(p).style.display = 'block';
        document.getElementsByTagName('form')[0].setAttribute('style', 'background-position: left ' + document.getElementById('AthenaBar').offsetHeight + 'px;');
        return false;
    }
};

function AthenaSearch(searchboxid) {
    this.loaded = false;
    this.resultclick = false;
    this.requestObject = null;
    this.requestObject = GetXMLHttpRequest();
    this.requestObject.onreadystatechange = this.ProcessRequest;
    this.SearchTimeOut = null;
    if (searchboxid != "") {
        document.getElementById(searchboxid).setAttribute("onkeyup", "Athena.Search.SearchKey(this);");
        document.getElementById(searchboxid).parentNode.parentNode.parentNode.setAttribute("onclick", "if (document.getElementById('" + searchboxid + "').value != '') Athena.Search.Open();");
    }
}
AthenaSearch.prototype = {
    Close: function()
    {
        document.getElementById("SearchResults").style.display = "";
    },
    Open: function()
    {
        this.resultclick = true;
        document.getElementById("SearchResults").style.display = "block";
    },
    ProcessRequest: function() { 
        if (Athena.Search.requestObject.readyState == 4) { 
            if (Athena.Search.requestObject.status == 200) { 
                if (Athena.Search.requestObject.responseText != null) { 
                    var myObject = eval("(" + unescape(Athena.Search.requestObject.responseText) + ")");
                    if (myObject.results > 0)
                    {
                        if (myObject.results > 10)
                            document.getElementById("SearchResultsContent").innerHTML = "<div>Displaying Results 1-" + myObject.searchresults.length + " out of " + myObject.results + "</div>";
                        else document.getElementById("SearchResultsContent").innerHTML = "<div>Displaying Results 1-" + myObject.results + " of of " + myObject.results + "</div>";
                        var list = document.createElement("ul");
                        for (var x = 0; x < myObject.searchresults.length; x++) {
                            var item = document.createElement("li");
                            item.innerHTML = "<h1><a href=\"" + myObject.searchresults[x].url + "\"><b><b>" + myObject.searchresults[x].title + "</b></b></a></h1>\n";
                            item.innerHTML += "<div>" + Athena.Search.RemoveExtra(unescape(myObject.searchresults[x].body)) + "</div></li>\n";
                            list.appendChild(item);
                        }
                        document.getElementById("SearchResultsContent").appendChild(list);
                        var listfoot = document.createElement("div");
                        listfoot.innerHTML = "<a href=\"" + myObject.resultspage + "\"><b><b>Full Search Results</b></b></a>";
                        document.getElementById("SearchResultsContent").appendChild(listfoot);
                        
                    } else document.getElementById("SearchResultsContent").innerHTML = "No Results";
                }
            } else {  
                if (Athena.Search.requestObject.responseText) alert("AJAX Error: " + Athena.Search.requestObject.responseText);
                else alert("Unknown AJAX Error!");
            } 
        }
    },
    RemoveExtra: function(string)
    {
        string = string.replace(/<[^>]*>/gi, "");
        if (string.length > 300) string = string.substring(0, 300);
        return string;
    },
    SearchKey: function(o) {
        if (o.value == "") { 
            document.getElementById("SearchResults").style.display = "";
            clearTimeout(this.SearchTimeOut);
            return;
        }
        if (!this.loaded) {
            document.body.onclick = function() { if (!Athena.Search.resultclick) Athena.Search.Close(); Athena.Search.resultclick = false; };
            document.getElementById("SearchResults").onclick = function () { Athena.Search.resultclick = true; setTimeout('document.getElementById("SearchResults").style.display = "block";', 100); };
            this.loaded = true;
        }
        clearTimeout(this.SearchTimeOut);
        this.SearchTimeOut = setTimeout("Athena.Search.Search('" + o.value + "');", 500);

    },
    Search: function(value)
    {
        document.getElementById("SearchResultsContent").innerHTML = "Loading...";
        document.getElementById("SearchResults").style.display = "block";
        var url = "/Themes/Athena2008/api.ashx/Search/";
        this.requestObject.open("GET", url, true); 
        this.requestObject.setRequestHeader("json", "put");
        this.requestObject.setRequestHeader("query", value);
        this.requestObject.send("");
    }
};

var Athena = { Profiles: new AthenaProfiles(), Bar: new AthenaBar(), CSS: new AthenaCSS(), Root: '/', Search: new AthenaSearch('') };


Athena.CSS.Load();
