
iWelOn = new Image();
iWelOff = new Image();
iSerOn = new Image();
iSerOff = new Image();
iProOn = new Image();
iProOff = new Image();
iPubOn = new Image();
iPubOff = new Image();
iExpOn = new Image();
iExpOff = new Image();
iPoaOn = new Image();
iPoaOff = new Image();
iEmpOn = new Image();
iEmpOff = new Image();
iConOn = new Image();
iConOff = new Image();


function preLoad() {
	iWelOn.src = "img/wel_on.gif";
	iWelOff.src = "img/wel_off.gif";
	iSerOn.src = "img/ser_on.gif";
	iSerOff.src = "img/ser_off.gif";
	iProOn.src = "img/pro_on.gif";
	iProOff.src = "img/pro_off.gif";
	iPubOn.src = "img/pub_on.gif";
	iPubOff.src = "img/pub_off.gif";
	iExpOn.src = "img/exp_on.gif";
	iExpOff.src = "img/exp_off.gif";
	iPoaOn.src = "img/poa_on.gif";
	iPoaOff.src = "img/poa_off.gif";
	iEmpOn.src = "img/emp_on.gif";
	iEmpOff.src = "img/emp_off.gif";
	iConOn.src = "img/con_on.gif";
	iConOff.src = "img/con_off.gif";
	}

//ihome iabt iool iper issp iwhc ifaq ihhl irrf ibbi iiii ieee iitn iccu  

function ShowWel(){iwel.src=iWelOff.src;}
function HideWel(){iwel.src=iWelOn.src;}
function ShowSer(){iser.src=iSerOff.src;}
function HideSer(){iser.src=iSerOn.src;}
function ShowPro(){ipro.src=iProOff.src;}
function HidePro(){ipro.src=iProOn.src;}
function ShowPub(){ipub.src=iPubOff.src;}
function HidePub(){ipub.src=iPubOn.src;}
function ShowExp(){iexp.src=iExpOff.src;}
function HideExp(){iexp.src=iExpOn.src;}
function ShowPoa(){ipoa.src=iPoaOff.src;}
function HidePoa(){ipoa.src=iPoaOn.src;}
function ShowEmp(){iemp.src=iEmpOff.src;}
function HideEmp(){iemp.src=iEmpOn.src;}
function ShowCon(){icon.src=iConOff.src;}
function HideCon(){icon.src=iConOn.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();
