if (document.images) {

mainon = new Image();
mainon.src = "/images/layout/mainB.gif";
mainoff = new Image();
mainoff.src = "/images/layout/mainA.gif";

videoson = new Image();
videoson.src = "/images/layout/gameVideosB.gif";
videosoff = new Image();
videosoff.src = "/images/layout/gameVideosA.gif";

galleryon = new Image();
galleryon.src = "/images/layout/galleryB.gif";
galleryoff = new Image();
galleryoff.src = "/images/layout/galleryA.gif";

forumson = new Image();
forumson.src = "/images/layout/forumsB.gif";
forumsoff = new Image();
forumsoff.src = "/images/layout/forumsA.gif";

tournamentson = new Image();
tournamentson.src = "/images/layout/tournamentsB.gif";
tournamentsoff = new Image();
tournamentsoff.src = "/images/layout/tournamentsA.gif";

uploadon = new Image();
uploadon.src = "/images/layout/uploadB.gif";
uploadoff = new Image();
uploadoff.src = "/images/layout/uploadA.gif";

contacton = new Image();
contacton.src = "/images/layout/contactB.gif";
contactoff = new Image();
contactoff.src = "/images/layout/contactA.gif";

newtopicon = new Image();
newtopicon.src = "/images/forums/buttons/new_topicB.gif";
newtopicoff = new Image();
newtopicoff.src = "/images/forums/buttons/new_topicA.gif";

replyon = new Image();
replyon.src = "/images/forums/buttons/replyB.gif";
replyoff = new Image();
replyoff.src = "/images/forums/buttons/replyA.gif";

newtopic2on = new Image();
newtopic2on.src = "/images/forums/buttons/new_topicB.gif";
newtopic2off = new Image();
newtopic2off.src = "/images/forums/buttons/new_topicA.gif";

reply2on = new Image();
reply2on.src = "/images/forums/buttons/replyB.gif";
reply2off = new Image();
reply2off.src = "/images/forums/buttons/replyA.gif";

recent_newson = new Image();
recent_newson.src = "/images/layout/catagories/recent_news_JP.gif";
recent_newsoff = new Image();
recent_newsoff.src = "/images/layout/catagories/recent_news.gif";

most_viewedon = new Image();
most_viewedon.src = "/images/layout/catagories/most_viewed_JP.gif";
most_viewedoff = new Image();
most_viewedoff.src = "/images/layout/catagories/most_viewed.gif";

newest_updateson = new Image();
newest_updateson.src = "/images/layout/catagories/newest_updates_JP.gif";
newest_updatesoff = new Image();
newest_updatesoff.src = "/images/layout/catagories/newest_updates.gif";

noxs_selecton = new Image();
noxs_selecton.src = "/images/layout/catagories/noxs_select_JP.gif";
noxs_selectoff = new Image();
noxs_selectoff.src = "/images/layout/catagories/noxs_select.gif";

help_supporton = new Image();
help_supporton.src = "/images/layout/catagories/help_support_JP.gif";
help_supportoff = new Image();
help_supportoff.src = "/images/layout/catagories/help_support.gif";

affiliateson = new Image();
affiliateson.src = "/images/layout/catagories/affiliates_JP.gif";
affiliatesoff = new Image();
affiliatesoff.src = "/images/layout/catagories/affiliates.gif";

viewPaston = new Image();
viewPaston.src = "/images/layout/catagories/support/viewpastB.gif";
viewPastoff = new Image();
viewPastoff.src = "/images/layout/catagories/support/viewpastA.gif";

supporton = new Image();
supporton.src = "/images/layout/catagories/support/helpsupportB.gif";
supportoff = new Image();
supportoff.src = "/images/layout/catagories/support/helpsupportA.gif";

previewon = new Image();
previewon.src = "/TESTFORUMS/images/layout/previewB.gif";
previewoff = new Image();
previewoff.src = "/TESTFORUMS/images/layout/previewA.gif";

submiton = new Image();
submiton.src = "/TESTFORUMS/images/layout/submitB.gif";
submitoff = new Image();
submitoff.src = "/TESTFORUMS/images/layout/submitA.gif";

signupon = new Image();
signupon.src = "/images/layout/catagories/login/signup_jp.gif";
signupoff = new Image();
signupoff.src = "/images/layout/catagories/login/signup_en.gif";

forgotpasson = new Image();
forgotpasson.src = "/images/layout/catagories/login/forgotpass_jp.gif";
forgotpassoff = new Image();
forgotpassoff.src = "/images/layout/catagories/login/forgotpass_en.gif";

log_inon = new Image();
log_inon.src = "/images/layout/catagories/login/login_jp.gif";
log_inoff = new Image();
log_inoff.src = "/images/layout/catagories/login/login_en.gif";

editprofileon = new Image();
editprofileon.src = "/images/layout/catagories/login/editProfile_jp.gif";
editprofileoff = new Image();
editprofileoff.src = "/images/layout/catagories/login/editProfile_en.gif";
	
switch(location.href){
	case 'http://www.godweapon.net/tournaments/':
			schedualon = new Image();
			schedualon.src = "/images/layout/tournament/row2col2b.gif";
			schedualoff = new Image();
			schedualoff.src = "/images/layout/tournament/row2col2a.gif";
			botbon = new Image();
			botbon.src = "/images/layout/tournament/row4col2b.gif";
			botboff = new Image();
			botboff.src = "/images/layout/tournament/row4col2a.gif";
			signupon = new Image();
			signupon.src = "/images/layout/tournament/row6col2b.gif";
			signupoff = new Image();
			signupoff.src = "/images/layout/tournament/row6col2a.gif";
	break
}
}

function mouseOver(imgName) {

if (document.images) {
document[imgName].src = eval(imgName + "on.src");
}
}

function mouseOff(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "off.src");
}
}