<!--//PowerImage js function
	function addEvent(elm, evType, fn, useCapture) {
		if(elm.addEventListener) {
			elm.addEventListener(evType, fn, useCapture);
			return true;
		} else if (elm.attachEvent) {
			var r = elm.attachEvent('on' + evType, fn);
			return r;
		} else {
			elm['on' + evType] = fn;
		}
	}
	var userAgent = navigator.userAgent.toLowerCase();
var is_opera = userAgent.indexOf('opera') != -1 && opera.version();
var isIE = (userAgent.indexOf('msie') != -1 && userAgent.substr(userAgent.indexOf('msie') + 5, 3) && !is_opera) ;
function disableEvent(event) {
	e = event ? event : window.event;
	if(isIE) {
		e.returnValue = false;
		e.cancelBubble = true;
	} else if(e) {
		e.stopPropagation();
		e.preventDefault();
	}
}
	function $(id){
		return document.getElementById(id);
	}
	function activeLink(event,obj)
	{
		if(obj.lks[obj._o])
		{
			location.href = obj.lks[obj._o];
		}
		disableEvent(event);
	}
	function _next(obj){
		obj._o = obj._n
		obj._n += 1;
		if (obj._n==obj.imgslength)
		{
			obj._n=0;
		}
		obj.old_img = obj.imgs[obj._o];
		obj.new_img = obj.imgs[obj._n];
		$(obj.link_img).href = 'javascript:void(0);';
		if(obj.lks[obj._o])
		{
			$(obj.link_img).style.cursor = 'pointer';
		}else
		{
			$(obj.link_img).style.cursor = 'default';
		}	
		$(obj.link_img).onclick = function(event) {activeLink(event,obj);};
	}
	function _opacity(obj,opacity){
		obj.style.filter="Alpha(opacity="+opacity+")";
		obj.style.opacity = parseFloat(opacity/100).toFixed(1);
	}
	function showimg(obj,fn){
		obj.n_s += 10;
		obj.o_s -= 10;
		_opacity($(obj.imglist+obj.new_img),obj.n_s);
		_opacity($(obj.imglist+obj.old_img),obj.o_s);
		if (obj.o_s==0)
		{
			_next(obj);
			obj.n_s = 0;
			obj.o_s = 100;
			obj._sleep = true;
		}else{
			obj._sleep = false;
		}
		if (obj._sleep)
		{
			window.clearInterval(obj.oTimer); 
			setTimeout(fn,obj.sleeps);
		}
	}
	function init(obj,fn){
		obj.oTimer = setInterval(fn,obj.speed);
	}
function PowerImage(){
	this.imgs;
	this.lks ;
	this.imgslength;
	this.link_img;
	this.imglist;
	this.o_s;
	this.n_s;
	this._o;
	this._n;
	this._sleep;
	this.oTimer;
	this.old_img;
	this.new_img;
}
//-->
