var _effect_slideShowSpeed = 1;
var _effect_i;
var _effect_j;
var obj, lastobj, selectobj;
var _effect_width = 135;
var _effect_height = 120;
var _effect_Max_Width = 150;
var _effect_Max_Height = 140;
function _effect_onmouseover(mobj){
	if (!mobj) return 0;
	if (lastobj)
		if (selectobj){
			if (selectobj.id != lastobj.id)
				_effect_onmouseout(lastobj);
		}else{
			_effect_onmouseout(lastobj);
		}
	if (selectobj){
		if (selectobj.id !=mobj.id){
			lastobj = mobj;
			obj = mobj;
			_effect_j = 100;
			_effect_i = 0;
			_effect_Slid();
		}
	}else{
		lastobj = mobj;
		obj = mobj;
		_effect_j = 100;
		_effect_i = 0;
		_effect_Slid();
	}
}

function _effect_onmouseout(mobj){
	if (selectobj){
		if(selectobj.id!=mobj.id){
			mobj.style.filter = 'alpha(opacity=60)';
			mobj.style.width = _effect_width +'px';
			mobj.style.height = _effect_height +'px';
		}
	}else{
		mobj.style.filter = 'alpha(opacity=60)';
		mobj.style.width = _effect_width +'px';
		mobj.style.height = _effect_height +'px';
	}
}

function _effect_click(id, mobj){
	if (selectobj)
		if (selectobj.id != mobj.id){
			selectobj.style.border = "none";
			selectobj.style.filter = 'alpha(opacity=60)';
			selectobj.style.width = _effect_width +'px';
			selectobj.style.height = _effect_height +'px';
		}
	selectobj = mobj;
	selectobj.style.border = "1px solid #000000";
	xmlhttpPost('ajax.asp','topproduct','','topproduct'+ id,'topproduct');
}
function _effect_Slid(){
	mobj = obj;
	mobj.style.filter = 'alpha(opacity='+ _effect_j +')';
	if(_effect_width + _effect_i<_effect_Max_Width || true) mobj.style.width = _effect_width + _effect_i +'px';
	if(_effect_height + _effect_i<_effect_Max_Height || true) mobj.style.height = _effect_height + _effect_i +'px';
	_effect_j =_effect_j + 1;
	_effect_i = _effect_i + 5;
	if ((_effect_height + _effect_i<_effect_Max_Height) || (_effect_width + _effect_i<_effect_Max_Width))	t = setTimeout('_effect_Slid()', _effect_slideShowSpeed);
}