// ----------- Accordion Function *attention* (moo.fx.pack.js, moo.fx.js, prototype.js)------------//
//the main function, call to the effect object			
initAccordion = function(){

	stretchers = document.getElementsByClassName('stretcher'); 
	toggles = document.getElementsByClassName('display'); 


	//accordion effect
	myAccordion = new fx.Accordion(toggles, stretchers, {opacity: false, duration: 300});
	//myAccordion.showThisHideOpen = function(toShow){this.clearAndToggle(toShow);};	

}
// ---------END Accordion Function --------------//

// Image Rollover & Preload
if (document.images) {

// ----------Main Navigation-----------// 
homeoff = new Image();
homeoff.src = "images/us/btn_homeoff.gif";
homeon =  new Image();
homeon.src = "images/us/btn_homeon.gif";

newsoff = new Image();
newsoff.src = "images/us/btn_newsoff.gif";
newson =  new Image();
newson.src = "images/us/btn_newson.gif";

gameinfooff = new Image();
gameinfooff.src = "images/us/btn_gameinfooff.gif";
gameinfoon =  new Image();
gameinfoon.src = "images/us/btn_gameinfoon.gif";

mediaoff = new Image();
mediaoff.src = "images/us/btn_mediaoff.gif";
mediaon =  new Image();
mediaon.src = "images/us/btn_mediaon.gif";

downloadsoff = new Image();
downloadsoff.src = "images/us/btn_downloadsoff.gif";
downloadson =  new Image();
downloadson.src = "images/us/btn_downloadson.gif";

partnersoff = new Image();
partnersoff.src = "images/us/btn_rankedpartnersoff.gif";
partnerson =  new Image();
partnerson.src = "images/us/btn_rankedpartnerson.gif";

// ----------Top Navigation-----------// 
eaoff = new Image();
eaoff.src = "images/logo_eaoff.gif";
eaon =  new Image();
eaon.src = "images/logo_eaon.gif";

bfportaloff = new Image();
bfportaloff.src = "images/us/btn_bfportaloff.gif";
bfportalon =  new Image();
bfportalon.src = "images/us/btn_bfportalon.gif";

bf2off = new Image();
bf2off.src = "images/us/btn_bf2off.gif";
bf2on =  new Image();
bf2on.src = "images/us/btn_bf2on.gif";

moderncombatoff = new Image();
moderncombatoff.src = "images/us/btn_moderncombatoff.gif";
moderncombaton =  new Image();
moderncombaton.src = "images/us/btn_moderncombaton.gif";

forumsoff = new Image();
forumsoff.src = "images/us/btn_forumsoff.gif";
forumson =  new Image();
forumson.src = "images/us/btn_forumson.gif";

registeroff = new Image();
registeroff.src = "images/us/btn_registeroff.gif";
registeron =  new Image();
registeron.src = "images/us/btn_registeron.gif";

// ----------Sub Buttons-----------// 
battlefieldoff = new Image();
battlefieldoff.src = "images/us/btn_battlefieldoff.gif";
battlefieldon =  new Image();
battlefieldon.src = "images/us/btn_battlefieldon.gif";

communityoff = new Image();
communityoff.src = "images/us/btn_communityoff.gif";
communityon =  new Image();
communityon.src = "images/us/btn_communityon.gif";

aboutoff = new Image();
aboutoff.src = "images/us/btn_aboutoff.gif";
abouton =  new Image();
abouton.src = "images/us/btn_abouton.gif";

factionsoff = new Image();
factionsoff.src = "images/us/btn_factionsoff.gif";
factionson =  new Image();
factionson.src = "images/us/btn_factionson.gif";

mapsoff = new Image();
mapsoff.src = "images/us/btn_mapsoff.gif";
mapson =  new Image();
mapson.src = "images/us/btn_mapson.gif";

gamemodesoff = new Image();
gamemodesoff.src = "images/us/btn_gamemodesoff.gif";
gamemodeson =  new Image();
gamemodeson.src = "images/us/btn_gamemodeson.gif";

moviesoff = new Image();
moviesoff.src = "images/us/btn_moviesoff.gif";
movieson =  new Image();
movieson.src = "images/us/btn_movieson.gif";

screenshotsoff = new Image();
screenshotsoff.src = "images/us/btn_screenshotsoff.gif";
screenshotson =  new Image();
screenshotson.src = "images/us/btn_screenshotson.gif";

fansitekitoff = new Image();
fansitekitoff.src = "images/us/btn_fansitekitoff.gif";
fansitekiton =  new Image();
fansitekiton.src = "images/us/btn_fansitekiton.gif";

wallpapersoff = new Image();
wallpapersoff.src = "images/us/btn_wallpapersoff.gif";
wallpaperson =  new Image();
wallpaperson.src = "images/us/btn_wallpaperson.gif";

assaultoff = new Image();
assaultoff.src = "images/us/sbtn_assaultoff.gif";
assaulton =  new Image();
assaulton.src = "images/us/sbtn_assaulton.gif";

reconoff = new Image();
reconoff.src = "images/us/sbtn_reconoff.gif";
reconon =  new Image();
reconon.src = "images/us/sbtn_reconon.gif";

engineeroff = new Image();
engineeroff.src = "images/us/sbtn_engineeroff.gif";
engineeron =  new Image();
engineeron.src = "images/us/sbtn_engineeron.gif";

supportoff = new Image();
supportoff.src = "images/us/sbtn_supportoff.gif";
supporton =  new Image();
supporton.src = "images/us/sbtn_supporton.gif";

squadoff = new Image();
squadoff.src = "images/us/sbtn_squadoff.gif";
squadon =  new Image();
squadon.src = "images/us/sbtn_squadon.gif";

allkitsoff = new Image();
allkitsoff.src = "images/us/sbtn_alloff.gif";
allkitson =  new Image();
allkitson.src = "images/us/sbtn_allon.gif";

soldierkitsoff = new Image();
soldierkitsoff.src = "images/us/btn_soldierkitsoff.gif";
soldierkitson =  new Image();
soldierkitson.src = "images/us/btn_soldierkitson.gif";

vehiclesoff = new Image();
vehiclesoff.src = "images/us/btn_vehiclesoff.gif";
vehicleson =  new Image();
vehicleson.src = "images/us/btn_vehicleson.gif";


// ----------Misc-----------// 
getithereoff = new Image();
getithereoff.src = "images/us/btn_getithereoff.gif";
getithereon =  new Image();
getithereon.src = "images/us/btn_getithereon.gif";

downloaderoff = new Image();
downloaderoff.src = "images/us/btn_downloaderoff.gif";
downloaderon =  new Image();
downloaderon.src = "images/us/btn_downloaderon.gif";

moreinfooff = new Image();
moreinfooff.src = "images/us/btn_moreinfooff.gif";
moreinfoon =  new Image();
moreinfoon.src = "images/us/btn_moreinfoon.gif";

moreinfo2off = new Image();
moreinfo2off.src = "images/us/btn_moreinfooff.gif";
moreinfo2on =  new Image();
moreinfo2on.src = "images/us/btn_moreinfoon.gif";

paoff = new Image();
paoff.src = "images/us/btn_panasianoff.gif";
paon =  new Image();
paon.src = "images/us/btn_panasianon.gif";

euoff = new Image();
euoff.src = "images/us/btn_europeanoff.gif";
euon =  new Image();
euon.src = "images/us/btn_europeanon.gif";

off = new Image();
off.src = "images/us/btn_off.gif";
on =  new Image();
on.src = "images/us/btn_on.gif";


off = new Image();
off.src = "images/us/btn_off.gif";
on =  new Image();
on.src = "images/us/btn_on.gif";


off = new Image();
off.src = "images/us/btn_off.gif";
on =  new Image();
on.src = "images/us/btn_on.gif";

off = new Image();
off.src = "images/us/btn_off.gif";
on =  new Image();
on.src = "images/us/btn_on.gif";
}

function imageon(imgName)
{
	if (document.images)
		document[imgName].src = eval(imgName + 'on.src');
}

function imageoff(imgName)
{
	if (document.images)
		document[imgName].src = eval(imgName + 'off.src');

}

