imageType="gif"

function hilight(index, state) {
	var obj=document.getElementById("butt"+index);
	obj.src="./images/"+"button_"+index+(state==1?"_over":"")+"."+imageType;
}

function newImage(arg) { 
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
		
function preloadButtons(c) {
	for (i=1; i<(c+1); i++) {
		imgz=newImage("./images/button_"+i+"_over."+imageType);
	}
}

blinkMe=new Array("#33ccff", "#cccccc", "#33ccff", "#cccccc", "#33ccff", "#cccccc");
function blinkText(f, i) {
	obj=document.getElementById(f);
	obj.style.color=blinkMe[i++];
	if (i<blinkMe.length) setTimeout("blinkText('"+f+"', "+i+")", 500);
}
		
subAd="&#119;&#98;&#98;&#108;ue";
clientAddress='<a href="m&#97;'+'&#105;&#108;to:';

function writeMA(n)
{
document.write(clientAddress+n+'&#64;'+subAd+'s&#46;&#99;om">'+n+'&#64;'+subAd+'s&#46;&#99;om</a>');
}

function rossNewWindow(mypage, myname, title, w, h, scroll)
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = "height="+h+",width="+w+",top="+wint+",left="+winl+",scrollbars="+scroll
	win = window.open('image_ref.php?i='+mypage+'&t='+title, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
