//restricao de dominio
//if(self.location.host.indexOf(".terra.")!=-1 || self.location.href.indexOf(".dsv-blog")!=-1 || self.location.href.indexOf(".54.164")!=-1){


window.compatibilizeEvent=function(e){
	if (e.srcElement && !e.target) {
		e.charCode=(e.type=="keypress")? e.keyCode : 0;
		e.isChar=(e.charCode>0);
		e.eventPhase=2;
		e.preventDefault=e.preventDefault || function(){
			this.returnValue=false;
		};
		e.stopPropagation=e.stopPropagation || function(){
			this.cancelBubble=true;
		};
		if(e.type=="mouseout"){
			e.relatedTarget=e.toElement;
		}else if(e.type=="mouseover"){
			e.relatedTarget=e.fromElement;
		}
		e.target=e.srcElement;
		e.time=(new Date).getTime();
		e.pageX=e.clientX+document.body.scrollLeft;
		e.pageY=e.clientY+document.body.scrollTop;
	}
	return e;
}
window.EventObject=function(){
	if (window.event) {
		return compatibilizeEvent(window.event);
	} else {
		return EventObject.caller.arguments[0];
	}
}
window.addListener=function(o, e, h){
	try{
		o.attachEvent("on"+e, h);
	}catch(a){
		o.addEventListener(e, h, false);
	}
}
window.removeListener=function(o, e, h){
	try{
		o.detachEvent("on"+e, h);
	}catch(a){
		o.removeEventListener(e, h, false);
	}
}
document.addListener=function(e, h){
	addListener(document, e, h);
}
document.removeListener=function(e, h){
	removeListener(document, e, h);
}





//restricao de dominio
//}