

if (!Prototype.Browser.IE) {
  var MouseenterMouseleave = {
    cache: {enter: [], leave: []},
    attach: function(type, element, observer, useCapture) {
      var wrapped = function(event) {
        if (event.relatedTarget==event.currentTarget || event.relatedTarget.childOf(event.currentTarget)) return;
        observer(); 
      };
      element.observe('mouse'+(type=='enter'?'over':'out'), wrapped, useCapture);
      this.cache[type].push({e:element, o:observer, w:wrapped});
    },
    detach: function(type, element, observer, useCapture) {
      var cached = this.cache[type].find(function(obj) {
        return obj.e==element && obj.o==observer;
      });
      if (cached) {
        element.stopObserving('mouse'+(type=='enter'?'over':'out'), cached.w, useCapture);
        this.cache[type] = this.cache[type].without(cached);
      }
    }
  };
}
Event.observe = function(element, name, observer, useCapture) {
    element = $(element);
    useCapture = useCapture || false;
  
    if (name == 'keypress' &&
      (Prototype.Browser.WebKit || element.attachEvent))
      name = 'keydown';
  
    if (!Prototype.Browser.IE && (name == 'mouseenter' || name == 'mouseleave')) {
      MouseenterMouseleave.attach(name.substring(5), element, observer, useCapture);
    } else {
      Event._observeAndCache(element, name, observer, useCapture);
    }
  };

Event.stopObserving = function(element, name, observer, useCapture) {
    element = $(element);
    useCapture = useCapture || false;

    if (name == 'keypress' &&
        (Prototype.Browser.WebKit || element.attachEvent))
      name = 'keydown';

    if (!Prototype.Browser.IE && (name == 'mouseenter' || name == 'mouseleave')) {
      MouseenterMouseleave.detach(name.substring(5), element, observer, useCapture);
    } else {
      if (element.removeEventListener) {
        element.removeEventListener(name, observer, useCapture);
      } else if (element.detachEvent) {
        try {
          element.detachEvent('on' + name, observer);
        } catch (e) {}
      }
    }  
  };


  
/**************************************************************/


var minibox_blink = function(event) {
	    
	//e = $(Event.element(event));
	//alert(this.className)
	//if( !Prototype.Browser.IE || navigator.appVersion.indexOf("MSIE 7")!=-1)
	//	new Effect.Opacity(this, {duration:0.5, from:0.7, to:1.0});
	//Event.stopObserving(this,'mouseover', xxx1.bindAsEventListener(this));
	//Event.observe(this,'mouseout', xxx2.bindAsEventListener(this));
	
}

Event.onDOMReady(function(){
	



});

