function init() {
	k=-1;
}
function showexpo(i) {
	
	if(typeof(k)=='undefined') {return;} 
	//if (!k) {return;}
	if (i==k) {return;}
	if (k>=0) {hideexpo(k);}
	document.images["menu"+i].src=document.images["menu"+i].src.replace("?txt=","?cl=FFFF00&txt=");
	if (document.layers) {
		var expo = document["expo"+i];
	}
	if (document.getElementById) {
		var expo = document.getElementById("expo"+i);
	}
	if (document.all) {
		var expo = document.all["expo"+i];
	}
	if (expo) {
		expo.style.display="block";
		if (document.images["libimg"+i]) {
			id = i;
			j = 0;
			wi = document.images["libimg"+i].width;
			//alert(parseInt(wi/40));
			document.images["libimg"+i].width=0;
			cmpt=setInterval("imgeffect()",2);
		}
	}
	k=i;
}

function imgeffect() {
	//alert(wi);
	j+=parseInt(wi/30);
	document.images["libimg"+id].width=j;
	if(j>wi) { document.images["libimg"+id].width=wi; clearInterval(cmpt); }
}

function hideexpo(i) {
	document.images["menu"+i].src=document.images["menu"+i].src.replace("?cl=FFFF00&txt=","?txt=");
	if (document.layers) {
		var expo = document["expo"];
	}
	if (document.getElementById) {
		var expo = document.getElementById("expo"+i);
	}
	if (document.all) {
		var expo = document.all["expo"+i];
	}
	if (expo) {
		expo.style.display="none";
		if (document.images["libimg"+i]) {
			document.images["libimg"+i].width = wi;
			clearInterval(cmpt);
		}
	}
}

function popup(url,hwnd,w,h) {
	window.open(url,hwnd,"TOP=0,LEFT=20,resizable=yes,toolbar=0,status=0,scrollbars=1,WIDTH="+w+",HEIGHT="+h);
}

window.onload=init();


