var rxHoverSrc=new RegExp("_(0|1)\\."), rxHoverSrcTest=new RegExp("_1\\.");
if (typeof(RegExp.prototype.compile)!="undefined"){
	rxHoverSrc.compile("_(0|1)\\.");
	rxHoverSrcTest.compile("_1\\.");
}
function xhover(a,s){
	if (typeof(a)=="string"){
		if (!document.getElementById){
			return false;
		}
		if (!(a=document.getElementById(a))){
			return false;
		}
	}
	if (rxHoverSrc && (img=a.firstChild)){
		if (img.className=="thumb"){
			if (s&&rxHoverSrcTest.test(img.src.toString())){
				a.onmouseover=a.onmouseout=function(){return false;};
			}
		}
		img.src=img.src.toString().replace(rxHoverSrc,"_"+(s?1:0)+".");
	}
}
function xhoverid(i,s){
	if (document.getElementById){
		if (img=document.getElementById(i)){
			img.src=img.src.toString().replace(rxHoverSrc,"_"+(s?1:0)+".");
		}
	}
}
function xservice(i,s){
	xhoverid("snta_"+i,s);
	xhoverid("snia_"+i,s);
}
function xprocess(p){
	if (document.getElementById){
		var i=-1;
		while (img=document.getElementById("cpd"+(++i))){
			img.style.display=(i==p)?"inline":"none";
		}
	}
}
