/*	filename: 
	 - dropdown.js
	10.10.06
	modified 03.31.08 - Updated some news links to point to FW
*/

function HideAll() {
		ShowHideLayer('menu1','hidden');
		ShowHideLayer('menu2','hidden');
		ShowHideLayer('menu3','hidden');
		ShowHideLayer('menu4','hidden');
		ShowHideLayer('menu5','hidden');
		ShowHideLayer('menu6','hidden');
		ShowHideLayer('menu7','hidden');
		ShowHideLayer('menu8','hidden');
		ShowHideLayer('menu9','hidden');
		ShowHideLayer('menu10','hidden');
		ShowHideLayer('menu11','hidden');
}
function ShowHideLayer(id, display) {
		document.getElementById(id).style.visibility=display;
}
function ShowDropdown(id,navTab) {
		HideAll();
		layer = 'menu' + id;
		ShowHideLayer(layer,'visible');

		if (document.getElementById(navTab)) {
			//document.getElementById(navTab).firstChild.style.backgroundPosition="0px -20px";
			document.getElementById(navTab).firstChild.className="hovered";
		}
}
function HideDropdown(id,navTab) {
		layer = 'menu' + id;
		ShowHideLayer(layer, 'hidden');

		if (document.getElementById(navTab)) {
			//document.getElementById(navTab).firstChild.style.backgroundPosition="0px 0px";
			document.getElementById(navTab).firstChild.className="";
		}
}

var str='';
str+='<link rel="stylesheet" href="http://acmairsoft.com/tpl/default/dropdown.css" type="text/css" media="screen" />';
str+='<div id="nav-main-sub">';
str+='<div id="menu1" class="menu" style="background-position:25px 0;" onmouseover="ShowDropdown(\'1\',\'thome\');" onmouseout="HideDropdown(\'1\',\'thome\');">';
str+='<span class="arrow clearer">&nbsp;</span>';
str+='<div style="float:left;">';
str+='<ul>';
str+='<li><strong><a id="TNdd_Home_News" href="http://www.acmairsoft.com/">Game Reviews</a></strong></li>';

str+='</ul>';

str+='</div>';

str+='</div>';
str+='<div id="menu2" class="menu" style="background-position:30px 0;" onmouseover="ShowDropdown(\'2\',\'tbenefits\');" onmouseout="HideDropdown(\'2\',\'tbenefits\');">';
str+='<span class="arrow clearer">&nbsp;</span>';
str+='<ul>';
str+='<li><a id="TNdd_Benefits_Pay" href="http://www.acmairsoft.com/forum/">Acmairsoft Forum Index</a></li>';
str+='<li><a id="TNdd_Benefits_Pay" href="http://acmairsoft.com/forum/index.php?topic=309.0">Forum Rules</a></li>';
str+='<li><a id="TNdd_Benefits_Pay" href="http://acmairsoft.com/forum/index.php?board=70.0">Guide for Newbees</a></li>';
str+='</ul>';
str+='</div>';
str+='<div id="menu3" class="menu" style="background-position:21px 0;" onmouseover="ShowDropdown(\'3\',\'tnews\');" onmouseout="HideDropdown(\'3\',\'tnews\');">';
str+='<span class="arrow clearer">&nbsp;</span>';
str+='<ul>';
str+='<li><a id="TNdd_News_ArmyHL" href="#">Airsoft Community Index (soon)</a></li>';
str+='<li><a id="TNdd_News_ArmyHL" href="#">Search Profile</a></li>';
str+='</ul>';
str+='</div>';
str+='<div id="menu4" class="menu" style="background-position:48px 0;" onmouseover="ShowDropdown(\'4\',\'tentertainment\');" onmouseout="HideDropdown(\'4\',\'tentertainment\');">';
str+='<span class="arrow clearer">&nbsp;</span>';
str+='<ul>';
str+='<li><a id="TNdd_Entertain_Equipment" href="http://acmairsoft.com/forum/index.php?board=10.0">Airsoft News & Announcement</a></li>';
str+='<li><a id="TNdd_Entertain_Equipment" href="http://acmairsoft.com/forum/index.php?board=3.0">Airsoft Events</a></li>';
str+='</ul>';
str+='</div>';
str+='<div id="menu5" class="menu" style="background-position:23px 0;" onmouseover="ShowDropdown(\'5\',\'ttravel\');" onmouseout="HideDropdown(\'5\',\'ttravel\');">';
str+='<span class="arrow clearer">&nbsp;</span>';
str+='<ul>';
str+='<li><a id="TNdd_Travel_Discount" href="#">Loadout / Equipment Guide</a></li>';
str+='<li><a id="TNdd_Travel_Discount" href="#">Game Related Videos</a></li>';
str+='<li><a id="TNdd_Travel_Discount" href="#">Other videos</a></li>';
str+='<li><a id="TNdd_Travel_Discount" href="#">Game Related Photos</a></li>';
str+='<li><a id="TNdd_Travel_Discount" href="#">Other Photos</a></li>';
str+='</ul>';
str+='</div>';
str+='<div id="menu6" class="menu" style="background-position:20px 0;" onmouseover="ShowDropdown(\'6\',\'tshop\');" onmouseout="HideDropdown(\'6\',\'tshop\');">';
str+='<span class="arrow clearer">&nbsp;</span>';
str+='<ul>';
str+='<li><a id="TNdd_Shop_Clothing" href="http://tracking.military.com/cgi-bin/outlog.cgi?url=http%3A//military.usptgear.com/Page.asp%3FnWebPage%3DPCat%26Branch%3DCustomized%2520Clothing&code=tn_uspt&code=dtab">Customized Clothing</a></li>';

str+='</ul>';
str+='</div>';
str+='<div id="menu7" class="menu" style="background-position:28px 0;" onmouseover="ShowDropdown(\'7\',\'tfinance\');" onmouseout="HideDropdown(\'7\',\'tfinance\');">';
str+='<span class="arrow clearer">&nbsp;</span>';
str+='<ul>';

str+='</ul>';
str+='</div>';
str+='<div id="menu8" class="menu" style="background-position:28px 0;" onmouseover="ShowDropdown(\'8\',\'tcareers\');" onmouseout="HideDropdown(\'8\',\'tcareers\');">';
str+='<span class="arrow clearer">&nbsp;</span>';
str+='<ul>';

str+='</ul>';
str+='</div>';
str+='<div id="menu9" class="menu" style="background-position:34px 0;" onmouseover="ShowDropdown(\'9\',\'teducation\');" onmouseout="HideDropdown(\'9\',\'teducation\');">';
str+='<span class="arrow clearer">&nbsp;</span>';
str+='<ul>';
str+='<li><a href="http://acmairsoft.com/forum/index.php?board=43.0">Lonewolves</a></li>';
str+='<li><a href="http://acmairsoft.com/forum/index.php?board=300.0">Team Triple A</a></li>';
str+='<li><a href="http://acmairsoft.com/forum/index.php?board=61.0">A.B.A.</a></li>';
str+='<li><a href="http://acmairsoft.com/forum/index.php?board=289.0">Team Achilles</a></li>';
str+='<li><a href="http://acmairsoft.com/forum/index.php?board=278.0">Team A.C.E.S.</a></li>';
str+='<li><a href="http://acmairsoft.com/forum/index.php?board=309.0">Team A.E.G.</a></li>';
str+='<li><a href="http://acmairsoft.com/forum/index.php?board=269.0">Team Alpha One</a></li>';
str+='<li><a href="http://acmairsoft.com/forum/index.php?board=208.0">Team Armagedon</a></li>';
str+='<li><a href="http://acmairsoft.com/forum/index.php?board=272.0"Team Armed n Loaded</a></li>';
str+='<li><a href="http://acmairsoft.com/forum/index.php?board=230.0">Team Aryan Brotherhood</a></li>';
str+='<li><a href="http://acmairsoft.com/forum/index.php?board=3114.0">Team A.S.A.R.</a></li>';
str+='<li><a href="http://acmairsoft.com/forum/index.php?board=275.0">Team Assault Wolves</a></li>';
str+='</ul>';
str+='</div>';
str+='<div id="menu10" class="menu" style="background-position:50px 0;" onmouseover="ShowDropdown(\'10\',\'tjoin\');" onmouseout="HideDropdown(\'10\',\'tjoin\');">';
str+='<span class="arrow clearer">&nbsp;</span>';
str+='<ul>';

str+='</ul>';
str+='</div>';
str+='<div id="menu11" class="menu" style="padding:0; background-position:100px 0;" onmouseover="ShowDropdown(\'11\',\'tcommunity\');" onmouseout="HideDropdown(\'11\',\'tcommunity\');">';
str+='<span class="arrow clearer" style="float:left;">&nbsp;</span>';
str+='<ul style="padding:10px">';

str+='</ul>';
str+='</div>';
str+='</div>';
document.write(str);
