(function() {
	
	var userAgent = navigator.userAgent.toLowerCase();
	browser = {
	version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1],
	safari: /webkit/.test( userAgent ),
	opera: /opera/.test( userAgent ),
	msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
	mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
	};
	$=function(){
		if (arguments.length == 1) { 		
			return _g(arguments[0]); 
		} else {
			var _ea = [];for (var i=0;i<arguments.length;i++) {_ea[i]=_g(arguments[i]);}return _ea;
		}
		function _g(_e) {
			var _ee=(typeof(_e)=='object') ? _e : document.getElementById(_e);
			return (typeof(_ee)=='object') ? _ee : false;
		}
	};
	$$={		
		init: 22,
		val: this.init,
		c : function(tag, id, de, clss) {
			de=$(de); if(typeof($(de))!='object') {return false;}
			if(typeof clss != 'string') clss='defclass';
			var temp = $(id); if(temp) {temp.style.display=''; temp.className=clss; return(temp);}
			temp = document.createElement(tag);			
			temp.setAttribute('id', id);
			temp.className=clss;
			try{de.appendChild(temp);} catch(e){return false;}			
			return temp;
		},
		vb:0
	};
})();

var bnn={"t1":"okn.gif", "t2":"okn-1.png", "t3":"okn.gif"};
function tbgwite(tt){for (t in tt) {$(t).className='alist'; $(t).style.color='#333';}}
window.onload=function() {
/*
	var a=$('alist');
	var df='t1';
	for (t in bnn) {
		if(t==df && $(t)) {$(t).className+=" actv";}
		$(t).onmouseover=function(e){
			tbgwite(bnn);
			this.className+=" actv";
			this.style.color='#FFF';
			var tid=this.getAttribute('id');
			$('adim').src='/images/'+bnn[tid];
		};
	}
*/
	var imgs = document.getElementsByTagName("img");
	for(var i=0;i<imgs.length;i++) {
		if(typeof(imgs[i].className)!='undefined' &&  imgs[i].className=="reabl") {
			var w=imgs[i].width;
			var h=imgs[i].height;
			
			imgs[i].width=parseInt(w*.75);
			imgs[i].height=parseInt(h*.75);
			
			imgs[i].onmouseover=function() {
				var img=this.parentNode.getElementsByTagName("img");
				var f=0;
				for(var j=0;j<img.length;j++) {
					if(typeof(img[j].className)!='undefined' &&  img[j].className=="nclreadl") {
						img[j].style.display='block';
						f=1;
					}					
				}
				
				var w=this.width;
				var h=this.height;
				if(f==0) {				
				var id=Math.round(Math.random()*Math.pow(10,15));
				var ni=$$.c('IMG', 'img'+id, this.parentNode, 'nclreadl');
				ni.src=this.src;
				ni.width=parseInt(w);
				ni.height=parseInt(h);
				}
				this.style.position='absolute';
				this.width=parseInt(w/.75);
				this.height=parseInt(h/.75);
			}
			imgs[i].onmouseout=function() {
				var img=this.parentNode.getElementsByTagName("img");
				for(var j=0;j<img.length;j++) {
					if(typeof(img[j].className)!='undefined' &&  img[j].className=="nclreadl") {
						img[j].style.display='none';
					}					
				}
				this.style.position='static';
				var w=this.width;
				var h=this.height;
				this.width=parseInt(w*.75);
				this.height=parseInt(h*.75);
				
			}
				
		}
	}

}
