var lgo = false, lo = false, lgtime = -1;
var lg = new Array(
new Array(new Image(50,50),new Image(50,50)),
new Array('http://www.fingerbox.com','http://www.fingerbox.com')
);

lg[0][0].src='../imgages/FingerboxBanner.gif';
lg[0][1].src='../images/FingerboxBanner.gif';

function zero(z,zz) {
var digit = (zero.arguments.length<2)?1:zz;
var zo = z+"", ze = "";
if (digit>zo.length) {
for (var i=0;i<digit-zo.length;i++)
	ze+="0";
return ze+z;
}else return z;
}

function faceoff(obj,srx) {
if (faceoff.arguments.length>1) {
	if (obj) {
		if (document.all) {
			obj.filters.blendTrans.Stop();
			obj.filters.blendTrans.Apply();
			obj.src=srx.src;
			obj.filters.blendTrans.Play();
		}else obj.src=srx.src;
	}
}
}


function logos() {
lgtime++;
if (lgtime>1||lgtime<0) lgtime = 0;
faceoff(lgo,lg[0][lgtime]);
lo = setTimeout("logos()",3500);
}

function lghref() {
(lgtime)?window.open(lg[1][lgtime],'lgg','width=500,height=400,scrollbars,status,resizable'):top.location.href=lg[1][lgtime];
}


function loads() {
if (document.images["logo"]) lgo=document.images["logo"];
logos();
}

function brs(count) {
if (count>=1) {window.open('http://www.heatpumps.com.hk','new', 'directories, scrollbars, location, menubar, resizable, toolbar, status')};
if (count>=2) {window.open('http://www.paradisepools.hk','new', 'directories, scrollbars, location, menubar, resizable, toolbar, status')};
if (count>=3) {window.open('http://www.aquaria.hk','new', 'directories, scrollbars, location, menubar, resizable, toolbar, status')};
if (count>=4) {window.open('http://www.webshop.hk','new', 'directories, scrollbars, location, menubar, resizable, toolbar, status')};
if (count>=5) {window.open('http://www.e-cateringhk.com','new', 'directories, scrollbars, location, menubar, resizable, toolbar, status')};
}
