var xhr = false;
var dID = null;
var hID1 = null;
var hID2 = null;
var filename = 'empty.html';

window.onload = execute;

function execute() {
	document.getElementById("sitemap").onmouseover=showInfo1;
	document.getElementById("privacy").onmouseover = showInfo2;
	document.getElementById("friend").onmouseover = showInfo3;

	document.getElementById("sitemap").onmouseout = function() {
		document.getElementById("smpopup").style.display = 'none';	
		return false;
	}
	document.getElementById("privacy").onmouseout = function() {
                document.getElementById("smpopup").style.display = 'none';
                return false;
        }
	document.getElementById("friend").onmouseout = function() {
                document.getElementById("smpopup").style.display = 'none';
                return false;
        }

        document.getElementById("brooke").onmouseover = function()
	{
		display1("brooke");
	}
        document.getElementById("alaric").onmouseover = function()
	{
        	display1("alaric");
	}
        document.getElementById("alba").onmouseover = function()
        {
                display2("alba");
        }
        document.getElementById("albrecht").onmouseover = function()
        {
                display3("albrecht");
        }
        document.getElementById("alcibiades").onmouseover = function()
        {
                display3("alcibiades");
        }
        document.getElementById("suvorov").onmouseover = function()
        {
                display1("suvorov");
        }
        document.getElementById("alexandertg").onmouseover = function()
        {
                display1("alexandertg");
        }
        document.getElementById("mahan").onmouseover = function()
        {
                display2("mahan");
        }
	        document.getElementById("alfredtg").onmouseover = function()
        {
                display3("alfredtg");
        }
        document.getElementById("jomini").onmouseover = function()
        {
                display3("jomini");
        }
        document.getElementById("wellesley").onmouseover = function()
        {
                display1("wellesley");
        }
        document.getElementById("attila").onmouseover = function()
        {
                display1("attila");
        }
        document.getElementById("babur").onmouseover = function()
        {
                display2("babur");
        }
        document.getElementById("bayezid").onmouseover = function()
        {
                display3("bayezid");
        }
        document.getElementById("belisarius").onmouseover = function()
        {
                display3("belisarius");
        }
        document.getElementById("bdavis").onmouseover = function()
        {
                display1("bdavis");
        }
        document.getElementById("bmontgomery").onmouseover = function()
        {
                display1("bmontgomery");
        }
        document.getElementById("boru").onmouseover = function()
        {
                display2("boru");
        }
        document.getElementById("canute").onmouseover = function()
        {
                display3("canute");
        }
        document.getElementById("mannerheim").onmouseover = function()
        {
                display3("mannerheim");
        }

        document.getElementById("charlemagne").onmouseover = function()
        {
                display1("charlemagne");
        }
        document.getElementById("martel").onmouseover = function()
        {
                display1("martel");
        }
        document.getElementById("charlesxii").onmouseover = function()
        {
                display2("charlesxii");
        }
        document.getElementById("nimitz").onmouseover = function()
        {
                display3("nimitz");
        }
        document.getElementById("kaishek").onmouseover = function()
        {
                display3("kaishek");
        }
        document.getElementById("cjoseph").onmouseover = function()
        {
                display1("cjoseph");
        }
        document.getElementById("clovis").onmouseover = function()
        {
                display1("clovis");
        }
        document.getElementById("ccampbell").onmouseover = function()
        {
                display2("ccampbell");
        }
        document.getElementById("cpowell").onmouseover = function()
        {
                display3("cpowell");
        }
        document.getElementById("constantine").onmouseover = function()
        {
                display3("constantine");
        }
        document.getElementById("cyrus").onmouseover = function()
        {
                display1("cyrus");
        }
        document.getElementById("farragut").onmouseover = function()
        {
                display1("farragut");
        }
        document.getElementById("macarthur").onmouseover = function()
        {
                display2("macarthur");
        }
        document.getElementById("eisenhower").onmouseover = function()
        {
                display3("eisenhower");
        }
        document.getElementById("allenby").onmouseover = function()
        {
                display3("allenby");
        }

        document.getElementById("edwardi").onmouseover = function()
        {
                display1("edwardi");
        }
        document.getElementById("bprince").onmouseover = function()
        {
                display1("bprince");
        }
        document.getElementById("elcid").onmouseover = function()
        {
                display2("elcid");
        }
        document.getElementById("rommel").onmouseover = function()
        {
                display3("rommel");
        }
        document.getElementById("savoy").onmouseover = function()
        {
                display3("savoy");
        }
        document.getElementById("foch").onmouseover = function()
        {
                display1("foch");
        }
        document.getElementById("cordoba").onmouseover = function()
        {
                display1("cordoba");
        }
        document.getElementById("drake").onmouseover = function()
        {
                display2("drake");
        }
        document.getElementById("pizarro").onmouseover = function()
        {
                display3("pizarro");
        }
        document.getElementById("frederickii").onmouseover = function()
        {
                display3("frederickii");
        }
        document.getElementById("roberts").onmouseover = function()
        {
                display1("roberts");
        }
        document.getElementById("wolseley").onmouseover = function()
        {
                display1("wolseley");
        }
        document.getElementById("blucher").onmouseover = function()
        {
                display2("blucher");
        }
        document.getElementById("khan").onmouseover = function()
        {
                display3("khan");
        }
        document.getElementById("marshall").onmouseover = function()
        {
                display3("marshall");
        }
        document.getElementById("dewey").onmouseover = function()
        {
                display1("dewey");
        }
        document.getElementById("patton").onmouseover = function()
        {
                display1("patton");
        }
        document.getElementById("washington").onmouseover = function()
        {
                display2("washington");
        }
        document.getElementById("zhukov").onmouseover = function()
        {
                display3("zhukov");
        }
        document.getElementById("geronimo").onmouseover = function()
        {
                display3("geronimo");
        }
        document.getElementById("douhet").onmouseover = function()
        {
                display1("douhet");
        }
        document.getElementById("garibaldi").onmouseover = function()
        {
                display1("garibaldi");
        }
        document.getElementById("gustavus").onmouseover = function()
        {
                display2("gustavus");
        }
        document.getElementById("hannibal").onmouseover = function()
        {
                display3("hannibal");
        }
        document.getElementById("arnold").onmouseover = function()
        {
                display3("arnold");
        }
        document.getElementById("halexander").onmouseover = function()
        {
                display1("halexander");
        }
        document.getElementById("togo").onmouseover = function()
        {
                display1("togo");
        }
        document.getElementById("guderian").onmouseover = function()
        {
                display2("guderian");
        }
        document.getElementById("moltke").onmouseover = function()
        {
                display3("moltke");
        }
        document.getElementById("turenne").onmouseover = function()
        {
                display3("turenne");
        }
        document.getElementById("petain").onmouseover = function()
        {
                display1("petain");
        }
        document.getElementById("saxe").onmouseover = function()
        {
                display1("saxe");
        }
        document.getElementById("cortez").onmouseover = function()
        {
                display2("cortez");
        }
        document.getElementById("kitchener").onmouseover = function()
        {
                display3("kitchener");
        }
        document.getElementById("nelson").onmouseover = function()
        {
                display3("nelson");
        }
        document.getElementById("yamamoto").onmouseover = function()
        {
                display1("yamamoto");
        }
        document.getElementById("konev").onmouseover = function()
        {
                display1("konev");
        }
        document.getElementById("wolfe").onmouseover = function()
        {
                display2("wolfe");
        }
        document.getElementById("zizka").onmouseover = function()
        {
                display3("zizka");
        }
        document.getElementById("gribeauval").onmouseover = function()
        {
                display3("gribeauval");
        }
        document.getElementById("arc").onmouseover = function()
        {
                display1("arc");
        }
        document.getElementById("tilly").onmouseover = function()
        {
                display1("tilly");
        }
        document.getElementById("fisher").onmouseover = function()
        {
                display2("fisher");
        }
        document.getElementById("burgoyne").onmouseover = function()
        {
                display3("burgoyne");
        }
        document.getElementById("dchurchill").onmouseover = function()
        {
                display3("dchurchill");
        }
        document.getElementById("fuller").onmouseover = function()
        {
                display1("fuller");
        }
        document.getElementById("pershing").onmouseover = function()
        {
                display1("pershing");
        }
        document.getElementById("sanmartin").onmouseover = function()
        {
                display2("sanmartin");
        }
        document.getElementById("caesar").onmouseover = function()
        {
                display3("caesar");
        }
        document.getElementById("clausewitz").onmouseover = function()
        {
                display3("clausewitz");
        }
        document.getElementById("alwalid").onmouseover = function()
        {
                display1("alwalid");
        }
        document.getElementById("sung").onmouseover = function()
        {
                display1("sung");
        }
        document.getElementById("kkhan").onmouseover = function()
        {
                display2("kkhan");
        }
        document.getElementById("carnot").onmouseover = function()
        {
                display3("carnot");
        }
        document.getElementById("torstensson").onmouseover = function()
        {
                display3("torstensson");
        }
        document.getElementById("leoiii").onmouseover = function()
        {
                display1("leoiii");
        }
        document.getElementById("piao").onmouseover = function()
        {
                display1("piao");
        }
        document.getElementById("berthier").onmouseover = function()
        {
                display2("berthier");
        }
        document.getElementById("bourbon").onmouseover = function()
        {
                display3("bourbon");
        }
        document.getElementById("tromp").onmouseover = function()
        {
                display3("tromp");
        }
        document.getElementById("mao").onmouseover = function()
        {
                display1("mao");
        }
        document.getElementById("nassau").onmouseover = function()
        {
                display1("nassau");
        }
        document.getElementById("mehmedii").onmouseover = function()
        {
                display2("mehmedii");
        }
        document.getElementById("mney").onmouseover = function()
        {
                display3("mney");
        }
        document.getElementById("musashi").onmouseover = function()
        {
                display3("musashi");
        }
        document.getElementById("dayan").onmouseover = function()
        {
                display1("dayan");
        }
        document.getElementById("kemal").onmouseover = function()
        {
                display1("kemal");
        }
        document.getElementById("bonaparte").onmouseover = function()
        {
                display2("bonaparte");
        }
        document.getElementById("greene").onmouseover = function()
        {
                display3("greene");
        }
        document.getElementById("schwarzkopf").onmouseover = function()
        {
                display3("schwarzkopf");
        }
        document.getElementById("nobunaga").onmouseover = function()
        {
                display1("nobunaga");
        }
        document.getElementById("cromwell").onmouseover = function()
        {
                display1("cromwell");
        }
        document.getElementById("bradley").onmouseover = function()
        {
                display2("bradley");
        }
        document.getElementById("otto").onmouseover = function()
        {
                display3("otto");
        }
        document.getElementById("hindenburg").onmouseover = function()
        {
                display3("hindenburg");
        }
        document.getElementById("petertg").onmouseover = function()
        {
                display1("petertg");
        }
        document.getElementById("philipii").onmouseover = function()
        {
                display1("philipii");
        }
        document.getElementById("pompey").onmouseover = function()
        {
                display2("pompey");
        }
        document.getElementById("scipio").onmouseover = function()
        {
                display3("scipio");
        }
        document.getElementById("abercromby").onmouseover = function()
        {
                display3("abercromby");
        }
        document.getElementById("lionhearted").onmouseover = function()
        {
                display1("lionhearted");
        }
        document.getElementById("rbruce").onmouseover = function()
        {
                display1("rbruce");
        }
        document.getElementById("rlee").onmouseover = function()
        {
                display2("rlee");
        }
        document.getElementById("saladin").onmouseover = function()
        {
                display3("saladin");
        }
        document.getElementById("houston").onmouseover = function()
        {
                display3("houston");
        }
        document.getElementById("vauban").onmouseover = function()
        {
                display1("vauban");
        }
        document.getElementById("selimi").onmouseover = function()
        {
                display1("selimi");
        }
        document.getElementById("shaka").onmouseover = function()
        {
                display2("shaka");
        }
        document.getElementById("bolivar").onmouseover = function()
        {
                display3("bolivar");
        }
        document.getElementById("stephentg").onmouseover = function()
        {
                display3("stephentg");
        }
        document.getElementById("suleymani").onmouseover = function()
        {
                display1("suleymani");
        }
        document.getElementById("suntzu").onmouseover = function()
        {
                display1("suntzu");
        }
        document.getElementById("tariq").onmouseover = function()
        {
                display2("tariq");
        }
        document.getElementById("themistocles").onmouseover = function()
        {
                display3("themistocles");
        }
        document.getElementById("tjackson").onmouseover = function()
        {
                display3("tjackson");
        }
	        document.getElementById("cochrane").onmouseover = function()
        {
                display1("cochrane");
        }
        document.getElementById("timur").onmouseover = function()
        {
                display1("timur");
        }
        document.getElementById("louverture").onmouseover = function()
        {
                display2("louverture");
        }
        document.getElementById("grant").onmouseover = function()
        {
                display3("grant");
        }
        document.getElementById("giap").onmouseover = function()
        {
                display3("giap");
        }
        document.getElementById("halseyjr").onmouseover = function()
        {
                display1("halseyjr");
        }
        document.getElementById("sherman").onmouseover = function()
        {
                display1("sherman");
        }
        document.getElementById("williamtc").onmouseover = function()
        {
                display5("williamtc");
        }
        document.getElementById("wallace").onmouseover = function()
        {
                display3("wallace");
        }
        document.getElementById("wscott").onmouseover = function()
        {
                display3("wscott");
        }
        document.getElementById("xenophon").onmouseover = function()
        {
                display4("xenophon");
        }

}

function display1(id)
{
        var id2 = id + "-data";
        popup = document.getElementById(id2);
        popup.style.top = "0px";
        popup.style.left = "100px";
        popup.style.display = 'inline';
        document.getElementById(id).onmouseout = function()
        {
                document.getElementById(id2).style.display='none';
        }
        document.getElementById(id).onclick = function()
        {
                return false;
        }

}

function display2(id)
{
        var id2 = id + "-data";
        popup = document.getElementById(id2);
        popup.style.top = "100px";
        popup.style.left = "-110px";
        popup.style.display = 'inline';
        document.getElementById(id).onmouseout = function()
        {
                document.getElementById(id2).style.display='none';
        }
        document.getElementById(id).onclick = function()
        {
                return false;
        }

}

function display3(id)
{
        var id2 = id + "-data";
        popup = document.getElementById(id2);
        popup.style.top = "0px";
        popup.style.left = "-310px";
        popup.style.display = 'inline';
        document.getElementById(id).onmouseout = function()
        {
                document.getElementById(id2).style.display='none';
        }
        document.getElementById(id).onclick = function()
        {
                return false;
        }

}

function display4(id)
{
        var id2 = id + "-data";
        popup = document.getElementById(id2);
        popup.style.top = "-90px";
        popup.style.left = "100px";
        popup.style.display = 'inline';
        document.getElementById(id).onmouseout = function()
        {
                document.getElementById(id2).style.display='none';
        }
        document.getElementById(id).onclick = function()
        {
                return false;
        }

}

function display5(id)
{
        var id2 = id + "-data";
        popup = document.getElementById(id2);
        popup.style.top = "-280px";
        popup.style.left = "-110px";
        popup.style.display = 'inline';
        document.getElementById(id).onmouseout = function()
        {
                document.getElementById(id2).style.display='none';
        }
        document.getElementById(id).onclick = function()
        {
                return false;
        }

}

function makeRequest() {
        if (window.XMLHttpRequest) {
                xhr = new XMLHttpRequest();
        }
        else {
                if (window.ActiveXObject) {
                        try {
                                xhr = new ActiveXObject("Microsoft.XMLHTTP");
                        }
                        catch (e) { }
                }
        }

        if (xhr) {
                xhr.onreadystatechange = show_page;
                xhr.open("GET", filename, true);
                xhr.send(null);
        }
        else {
                document.getElementById(dID).innerHTML = "Sorry, but I couldn't create an XMLHttpRequest";
        }
}

function showInfo1(evt)
{
	if(!evt) {
		evt = window.event;
	}
	var xpos = evt.clientX;
	var ypos = evt.clientY;
	xpos = parseInt(xpos) -10;
	var msg = "Site Map";
	display(msg, xpos, ypos);
}

function showInfo2(evt)
{
        if(!evt) {
                evt = window.event;
        }
        var xpos = evt.clientX;
        var ypos = evt.clientY;
	xpos = parseInt(xpos) -30;
	var msg = 'Sonshi Privacy Policy';
        display(msg, xpos, ypos);
}
function showInfo3(evt)
{
        if(!evt) {
                evt = window.event;
        }
        var xpos = evt.clientX;
        var ypos = evt.clientY;
	xpos = parseInt(xpos) -30;
	var msg = 'Tell Your Friends';
        display(msg, xpos, ypos);
}
function display(msg, xpos, ypos)
{
        smpopup2 = document.getElementById("smpopup");
        smpopup2.innerHTML = msg;
        smpopup2.zIndex = 1000;
        smpopup2.style.top = parseInt(ypos) + 60 + "px";
        smpopup2.style.left = parseInt(xpos) -30 + "px";
        msg2 = xpos + " " + ypos;
        document.getElementById("smpopup").style.display = 'inline';
}





