
// Netscape 3.0 compatibility test (for javascript image swapping)
compat = false;
if( parseInt( navigator.appVersion ) >= 3 ) { compat = true; }
// cache images for quick swapping
if( compat )
{

nb_homeon = new Image; (100,20)
nb_homeon.src = "/nb_home2.gif";
nb_homeoff = new Image; (100,20)
nb_homeoff.src = "/nb_home.gif";
nb_diaryon = new Image; (45,20)
nb_diaryon.src = "/nb_diary2.gif";
nb_diaryoff = new Image; (45,20)
nb_diaryoff.src = "/nb_diary.gif";
nb_noticeon = new Image; (96,20)
nb_noticeon.src = "/nb_notice2.gif";
nb_noticeoff = new Image; (96,20)
nb_noticeoff.src = "/nb_notice.gif";
nb_gosson = new Image; (100,20)
nb_gosson.src = "/nb_goss2.gif";
nb_gossoff = new Image; (100,20)
nb_gossoff.src = "/nb_goss.gif";
nb_jobson = new Image; (76,20)
nb_jobson.src = "/nb_jobs2.gif";
nb_jobsoff = new Image; (76,20)
nb_jobsoff.src = "/nb_jobs.gif";
nb_adviceon = new Image; (100,20)
nb_adviceon.src = "/nb_advice2.gif";
nb_adviceoff = new Image; (100,20)
nb_adviceoff.src = "/nb_advice.gif";
nb_tradeon = new Image; (91,20)
nb_tradeon.src = "/nb_trade2.gif";
nb_tradeoff = new Image; (91,20)
nb_tradeoff.src = "/nb_trade.gif";
nb_usefulon = new Image; (128,20)
nb_usefulon.src = "/nb_useful2.gif";
nb_usefuloff = new Image; (128,20)
nb_usefuloff.src = "/nb_useful.gif";

btn_bargon = new Image; (93,30)
btn_bargon.src = "/btn_barg2.gif";
btn_bargoff = new Image; (93,30)
btn_bargoff.src = "/btn_barg.gif";
btn_reson = new Image; (93,30)
btn_reson.src = "/btn_res2.gif";
btn_resoff = new Image; (93,30)
btn_resoff.src = "/btn_res.gif";
btn_priceon = new Image; (93,30)
btn_priceon.src = "/btn_price2.gif";
btn_priceoff = new Image; (93,30)
btn_priceoff.src = "/images/btn_price_comp_red.gif";
btn_concon = new Image; (93,18)
btn_concon.src = "/btn_conc2.gif";
btn_concoff = new Image; (93,18)
btn_concoff.src = "/btn_conc.gif";
btn_landon = new Image; (93,30)
btn_landon.src = "/tradeforum/images/btn_land2.gif";
btn_peopleon = new Image; (93,30)
btn_peopleon.src = "/mips/gfx/btn_people2.gif";
btn_peopleoff = new Image; (93,30)
btn_peopleoff.src = "/mips/gfx/btn_people.gif";

btn_planton = new Image; (93,18)
btn_planton.src = "/images/btn_plant2.gif";
btn_plantoff = new Image; (93,18)
btn_plantoff.src = "/images/btn_plant.gif";
btn_showon = new Image; (93,18)
btn_showon.src = "/images/btn_show2.gif";
btn_showoff = new Image; (93,18)
btn_showoff.src = "/images/btn_show.gif";

btn_landoff = new Image; (93,30)
btn_landoff.src = "/tradeforum/images/btn_land.gif";
btn_busion = new Image; (93,30)
btn_busion.src = "/btn_busi2.gif";
btn_busioff = new Image; (93,30)
btn_busioff.src = "/btn_busi.gif";
btn_servon = new Image; (93,30)
btn_servon.src = "/btn_serv2.gif";
btn_servoff = new Image; (93,30)
btn_servoff.src = "/btn_serv.gif";
btn_wantedon = new Image; (93,30)
btn_wantedon.src = "/btn_wanted2.gif";
btn_wantedoff = new Image; (93,30)
btn_wantedoff.src = "/btn_wanted.gif";

btn_videoson = new Image; (93,18)
btn_videoson.src = "/tradeforum/images/btn_latest-videos2.gif";
btn_videosoff = new Image; (93,18)
btn_videosoff.src = "/tradeforum/images/btn_latest-videos.gif";


btn_diyoff = new Image; (93,30)
btn_diyoff.src = "/images/btn_diy_tools.gif";
btn_diyon = new Image; (93,30)
btn_diyon.src = "/images/btn_diy_tools2.gif";
btn_chelseaon = new Image; (93,30)
btn_chelseaon.src = "/images/btn_chelsea2.gif";
btn_chelseaoff = new Image; (93,30)
btn_chelseaoff.src = "/images/btn_chelsea.gif";


btn_siteon = new Image; (93,18)
btn_siteon.src = "/btn_site2.gif";
btn_siteoff = new Image; (93,18)
btn_siteoff.src = "/btn_site.gif";


btn_gleeon = new Image; (93,18)
btn_gleeon.src = "/btn_glee2.gif";
btn_gleeoff = new Image; (93,18)
btn_gleeoff.src = "/btn_glee.gif";
}

// swap images using the cached images

function glow(x, y)
{
	 if( compat ) { document.images[x].src=eval(y+'.src'); }
}

function popUp(strURL,strType,strHeight,strWidth) {
var strOptions="";
if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
window.open(strURL, 'newWin', strOptions);
}

//#####################################
function launchRemote(frameURL, winName,wt,ht)  {
				scrWidth = screen.width;
				scrHeight = screen.height;
				posx = (scrWidth-wt)/2;
				posy = (scrHeight-ht)/2;

				 features = 'toolbar=yes,location=yes,directories=yes,status=yes,resizable=yes,scrollbars=yes,width='+wt+',height='+ht+',Top='+posy+',left='+posx;
				//features = 'toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width='+wt+',height='+ht+',Top='+posy+',left='+posx;
				dlg = window.open (frameURL, winName, features)
 }
