function doLoad() {
	if (navigator.userAgent.match(/Opera (\S+)/)) {
		var operaVersion = parseInt(navigator.userAgent.match(/Opera (\S+)/)[1]);
	}
	if (!document.getElementById||operaVersion <7) return;
	var imgarr=document.getElementsByTagName('img');
	var imgPreload=new Array();
	var imgSrc=new Array();
	for (i=0;i<imgarr.length;i++){
		if (imgarr[i].className.match("ro")) {
			imgSrc[i]=imgarr[i].getAttribute('src');
			str = imgSrc[i].replace(".gif","_h.gif");
			imgPreload[i]=new Image();
			imgPreload[i].src = str.replace(".jpg","_h.jpg");
			imgarr[i].setAttribute('xsrc', imgSrc[i]);
			imgarr[i].onmouseover=function(){
				str2 = this.getAttribute('src');
				str2 = str2.replace(".gif","_h.gif");
				str2 = str2.replace(".jpg","_h.jpg");
				this.setAttribute('src',str2)
			}
			imgarr[i].onmouseout=function(){
				this.setAttribute('src',this.getAttribute('xsrc'))
			}
		}
	}
	
	if (!document.getElementsByTagName) return false;
	var links = document.getElementsByTagName("a");
	for (var i=0; i < links.length; i++) {
		if (links[i].className.match("popup") || links[i].className.match("pdf")) {
			links[i].onclick = function() {
				window.open(this.href);
				return false;
			}
		}
	}
}

window.onload = doLoad;

