function gif_over(src,idtd) {
	src.children.tags('IMG')[0].src=src.children.tags('IMG')[0].src.replace('.gif','r.gif');
	//document.all[idtd].style.backgroundImage="url('/img/face/bg-line.gif')";
}
function gif_out(src,idtd) {
	src.children.tags('IMG')[0].src=src.children.tags('IMG')[0].src.replace('r.gif','.gif');
	//document.all[idtd].style.backgroundImage="url('/img/spacer.gif')";
}

function gif_over2(src) {
	src.children.tags('IMG')[0].src=src.children.tags('IMG')[0].src.replace('.gif','r.gif');
} 
function gif_out2(src) {
	src.children.tags('IMG')[0].src=src.children.tags('IMG')[0].src.replace('r.gif','.gif');
}

function png_over(src) {
	src.children.tags('IMG')[0].src=src.children.tags('IMG')[0].src.replace('.png','r.png');
} 
function png_out(src) {
	src.children.tags('IMG')[0].src=src.children.tags('IMG')[0].src.replace('r.png','.png');
}


function prehide(lay){
	eval("document.all."+lay+".style.top=0");
}

function show(lay,el,x,y){
	psx=get_posx(el);
	psy=get_posy(el);
	eval("document.all."+lay+".style.left=psx+x;");
	eval("document.all."+lay+".style.top=psy+y;");
	eval("document.all."+lay+".style.visibility='visible'");
	if(document.layers){
		eval("document.layers['"+lay+"'].visibility='visible'");
	}
}

function hide(lay){
	eval("document.all."+lay+".style.visibility='hidden'");
	if(document.layers){
		eval("document.layers['"+lay+"'].visibility='hidden'");
	}
}

function get_posx(el) {
	var ipos = 0;
	while (el!=null) {
		ipos+=el["offsetLeft"]
		el = el.offsetParent
	}
	return ipos;
}

function get_posy(el) {
	var ipos = 0;
	while (el!=null) {
		ipos+=el["offsetTop"]
		el = el.offsetParent
	}
	return ipos;
}