iHomeOn = new Image();
iHomeOff = new Image();
iAbtOn = new Image();
iAbtOff = new Image();
iOolOn = new Image();
iOolOff = new Image();
iPerOn = new Image();
iPerOff = new Image();
iSspOn = new Image();
iSspOff = new Image();
iWhcOn = new Image();
iWhcOff = new Image();
iFaqOn = new Image();
iFaqOff = new Image();
iHhlOn = new Image();
iHhlOff = new Image();
iRrfOn = new Image();
iRrfOff = new Image();
iBbiOn = new Image();
iBbiOff = new Image();
iIiiOn = new Image();
iIiiOff = new Image();
iEeeOn = new Image();
iEeeOff = new Image();
iItnOn = new Image();
iItnOff = new Image();
iTtOn = new Image();
iTtOff = new Image();
iCcuOn = new Image();
iCcuOff = new Image();

function preLoad() {
	iHomeOn.src = "img/w_on.gif";
	iHomeOff.src = "img/w_off.gif";
	iAbtOn.src = "img/au_on.gif";
	iAbtOff.src = "img/au_off.gif";
	iOolOn.src = "img/ol_on.gif";
	iOolOff.src = "img/ol_off.gif";
	iPerOn.src = "img/per_on.gif";
	iPerOff.src = "img/per_off.gif";
	iSspOn.src = "img/sp_on.gif";
	iSspOff.src = "img/sp_off.gif";
	iWhcOn.src = "img/whc_on.gif";
	iWhcOff.src = "img/whc_off.gif";
	iFaqOn.src = "img/faq_on.gif";
	iFaqOff.src = "img/faq_off.gif";
	iHhlOn.src = "img/hl_on.gif";
	iHhlOff.src = "img/hl_off.gif";
	iRrfOn.src = "img/rf_on.gif";
	iRrfOff.src = "img/rf_off.gif";
	iBbiOn.src = "img/bi_on.gif";
	iBbiOff.src = "img/bi_off.gif";
	iIiiOn.src = "img/i_on.gif";
	iIiiOff.src = "img/i_off.gif";
	iEeeOn.src = "img/e_on.gif";
	iEeeOff.src = "img/e_off.gif";
	iItnOn.src = "img/itn_on.gif";
	iItnOff.src = "img/itn_off.gif";
	iTtOn.src = "img/t_on.gif";
	iTtOff.src = "img/t_off.gif";
	iCcuOn.src = "img/cu_on.gif";
	iCcuOff.src = "img/cu_off.gif";
	}

//ihome iabt iool iper issp iwhc ifaq ihhl irrf ibbi iiii ieee iitn iccu  

function ShowHome(){ihome.src=iHomeOff.src;}
function HideHome(){ihome.src=iHomeOn.src;}
function ShowAbt(){iabt.src=iAbtOff.src;}
function HideAbt(){iabt.src=iAbtOn.src;}
function ShowOol(){iool.src=iOolOff.src;}
function HideOol(){iool.src=iOolOn.src;}
function ShowPer(){iper.src=iPerOff.src;}
function HidePer(){iper.src=iPerOn.src;}
function ShowSsp(){issp.src=iSspOff.src;}
function HideSsp(){issp.src=iSspOn.src;}
function ShowWhc(){iwhc.src=iWhcOff.src;}
function HideWhc(){iwhc.src=iWhcOn.src;}
function ShowFaq(){ifaq.src=iFaqOff.src;}
function HideFaq(){ifaq.src=iFaqOn.src;}
function ShowHhl(){ihhl.src=iHhlOff.src;}
function HideHhl(){ihhl.src=iHhlOn.src;}
function ShowRrf(){irrf.src=iRrfOff.src;}
function HideRrf(){irrf.src=iRrfOn.src;}
function ShowBbi(){ibbi.src=iBbiOff.src;}
function HideBbi(){ibbi.src=iBbiOn.src;}
function ShowIii(){iiii.src=iIiiOff.src;}
function HideIii(){iiii.src=iIiiOn.src;}
function ShowEee(){ieee.src=iEeeOff.src;}
function HideEee(){ieee.src=iEeeOn.src;}
function ShowItn(){iitn.src=iItnOff.src;}
function HideItn(){iitn.src=iItnOn.src;}
function ShowTt(){itt.src=iTtOff.src;}
function HideTt(){itt.src=iTtOn.src;}
function ShowCcu(){iccu.src=iCcuOff.src;}
function HideCcu(){iccu.src=iCcuOn.src;}


function barSize() {
	var oParent = topbar.offsetParent;
	var iWindowWidth = oParent.clientWidth;
	if (iWindowWidth > 802) {
		//window.status = iWindowWidth;
		topbar.style.width = iWindowWidth ;
		if(iWindowWidth < 839) {
			smid.style.width = 0;	
		}
		else {
			smid.style.width = iWindowWidth - 839;
		}
		//sright.style.left = iWindowWidth - 234;
		}
	}


function openWin(sDoc, iHt, iWd)
	{
	var sOption = 'menubar=yes,scrollbars=yes,resizable=yes,toolbar=yes,height=' + iHt + ',width=' + iWd;
	window.name='NewPop';
	window.open(sDoc, 'Other', sOption);
	}

preLoad();