/* SpryMenuBar.js - Revision: Spry Preview Release 1.4 */

// Copyright (c) 2006. Adobe Systems Incorporated.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
//   * Redistributions of source code must retain the above copyright notice,
//     this list of conditions and the following disclaimer.
//   * Redistributions in binary form must reproduce the above copyright notice,
//     this list of conditions and the following disclaimer in the documentation
//     and/or other materials provided with the distribution.
//   * Neither the name of Adobe Systems Incorporated nor the names of its
//     contributors may be used to endorse or promote products derived from this
//     software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.

/*******************************************************************************

 SpryMenuBar.js
 This file handles the JavaScript for Spry Menu Bar.  You should have no need
 to edit this file.  Some highlights of the MenuBar object is that timers are
 used to keep submenus from showing up until the user has hovered over the parent
 menu item for some time, as well as a timer for when they leave a submenu to keep
 showing that submenu until the timer fires.

 *******************************************************************************/

var Spry;
if (!Spry) {
	Spry = {};
}
if (!Spry.Widget) {
	Spry.Widget = {};
}
// Constructor for Menu Bar
// element should be an ID of an unordered list (<ul> tag)
// preloadImage1 and preloadImage2 are images for the rollover state of a menu
Spry.Widget.MenuBar = function(element, opts) {
	this.init(element, opts);
}
Spry.Widget.MenuBar.prototype.init = function(element, opts) {
	this.element = this.getElement(element);

	// represents the current (sub)menu we are operating on
	this.currMenu = null;

	var isie = (typeof document.all != 'undefined' && typeof window.opera == 'undefined' && navigator.vendor != 'KDE');
	if(typeof document.getElementById == 'undefined' || (navigator.vendor == 'Apple Computer, Inc.' && typeof window.XMLHttpRequest == 'undefined') || (isie && typeof document.uniqueID == 'undefined')){
		// bail on older unsupported browsers
		return;
	}
	
	// load hover images now
	if(opts) {
		for(var k in opts) {
			var rollover = new Image;
			rollover.src = opts[k];
		}
	}
	
	if(this.element) {
		this.currMenu = this.element;
		var items = this.element.getElementsByTagName('li');
		for(var i=0; i<items.length; i++) {
			this.initialize(items[i], element, isie);
			if(isie) {
				this.addClassName(items[i], "MenuBarItemIE");
				items[i].style.position = "static";
			}
		}
		if(isie) {
			if(this.hasClassName(this.element, "MenuBarVertical")){
				this.element.style.position = "relative";
			}
			var linkitems = this.element.getElementsByTagName('a');
			for(var i=0; i<linkitems.length; i++){
				linkitems[i].style.position = "relative";
			}
		}
	}
}
Spry.Widget.MenuBar.prototype.getElement = function(ele){
	if (ele && typeof ele == "string")
		return document.getElementById(ele);
	return ele;
}
Spry.Widget.MenuBar.prototype.hasClassName = function(ele, className){
	if (!ele || !className || !ele.className || ele.className.search(new RegExp("\\b" + className + "\\b")) == -1){
		return false;
	}
	return true;
}
Spry.Widget.MenuBar.prototype.addClassName = function(ele, className){
	if (!ele || !className || this.hasClassName(ele, className))
		return;
	ele.className += (ele.className ? " " : "") + className;
}
Spry.Widget.MenuBar.prototype.removeClassName = function(ele, className){
	if (!ele || !className || !this.hasClassName(ele, className))
		return;
	ele.className = ele.className.replace(new RegExp("\\s*\\b" + className + "\\b", "g"), "");
}
// addEventListener for Menu Bar
// attach an event to a tag without creating obtrusive HTML code
Spry.Widget.MenuBar.prototype.addEventListener = function(element, eventType, handler, capture){
	try {
		if (element.addEventListener) {
			element.addEventListener(eventType, handler, capture);
		} else if (element.attachEvent) {
			element.attachEvent('on' + eventType, handler);
		}
	}
	catch (e) {}
}
// createIframeLayer for Menu Bar
// creates an IFRAME underneath a menu so that it will show above form controls and ActiveX
Spry.Widget.MenuBar.prototype.createIframeLayer = function(menu) {
	var layer = document.createElement('iframe');
	layer.tabIndex = '-1';
	layer.src = 'javascript:false;';
	menu.parentNode.appendChild(layer);
	
	layer.style.left = menu.offsetLeft + 'px';
	layer.style.top = menu.offsetTop + 'px';
	layer.style.width = menu.offsetWidth + 'px';
	layer.style.height = menu.offsetHeight + 'px';
}
// removeIframeLayer for Menu Bar
// removes an IFRAME underneath a menu to reveal any form controls and ActiveX
Spry.Widget.MenuBar.prototype.removeIframeLayer =  function(menu) {
	var layers = menu.parentNode.getElementsByTagName('iframe');
	while(layers.length > 0) {
		layers[0].parentNode.removeChild(layers[0]);
	}
}
// clearMenus for Menu Bar
// root is the top level unordered list (<ul> tag)
Spry.Widget.MenuBar.prototype.clearMenus = function(root) {
	var menus = root.getElementsByTagName('ul');
	for(var i=0; i<menus.length; i++) {
		this.hideSubmenu(menus[i]);
	}
	this.removeClassName(this.element, "MenuBarActive");
}
// bubbledTextEvent for Menu Bar
// identify bubbled up text events in Safari so we can ignore them
Spry.Widget.MenuBar.prototype.bubbledTextEvent = function() {
	return (navigator.vendor == 'Apple Computer, Inc.' && (event.target == event.relatedTarget.parentNode || (event.eventPhase == 3 && event.target.parentNode == event.relatedTarget)));
}
// showSubmenu for Menu Bar
// set the proper CSS class on this menu to show it
Spry.Widget.MenuBar.prototype.showSubmenu = function(menu){
	if (this.currMenu) {
		this.clearMenus(this.currMenu);
		this.currMenu = null;
	}
	
	if (menu) {
		this.addClassName(menu, "MenuBarSubmenuVisible");
		if (typeof document.all != 'undefined' && typeof window.opera == 'undefined' && navigator.vendor != 'KDE') {
			if(!this.hasClassName(this.element, "MenuBarHorizontal") || menu.parentNode.parentNode != this.element) {
				menu.style.top = menu.parentNode.offsetTop + 'px';
			}
		}
		if (typeof document.uniqueID != "undefined") {
			this.createIframeLayer(menu);
		}
	}
	this.addClassName(this.element, "MenuBarActive");
}
// hideSubmenu for Menu Bar
// remove the proper CSS class on this menu to hide it
Spry.Widget.MenuBar.prototype.hideSubmenu = function(menu) {
	if(menu) {
		this.removeClassName(menu, "MenuBarSubmenuVisible");
		if (typeof document.all != 'undefined' && typeof window.opera == 'undefined' && navigator.vendor != 'KDE') {
			menu.style.top = '';
			menu.style.left = '';
		}
		this.removeIframeLayer(menu);
	}
}
// initialize for Menu Bar
// create event listeners for the Menu Bar widget so we can properly
// show and hide submenus
Spry.Widget.MenuBar.prototype.initialize = function(listitem, element, isie) {
	var opentime, closetime;
	var link = listitem.getElementsByTagName('a')[0];
	var submenus = listitem.getElementsByTagName('ul');
	var menu = (submenus.length > 0 ? submenus[0] : null);

	var hasSubMenu = false;
	if(menu) {
		this.addClassName(link, "MenuBarItemSubmenu");
		hasSubMenu = true;
	}

	if(!isie) {
		// define a simple function that comes standard in IE to determine
		// if a node is within another node
		listitem.contains = function(testNode){
			// this refers to the list item
			if (testNode == null){
				return false;
			}
			if (testNode == this){
				return true;
			} else {
				return this.contains(testNode.parentNode);
			}
		}
	}
	// need to save this for scope further down
	var self = this;
	this.addEventListener(listitem, 'mouseover', function(e) {
		if (self.bubbledTextEvent()) {
			// ignore bubbled text events
			return;
		}
		clearTimeout(closetime);
		if (self.currMenu == listitem) {
			self.currMenu = null;
		}
		// show menu highlighting
		self.addClassName(link, hasSubMenu ? "MenuBarItemSubmenuHover" : "MenuBarItemHover");
		if (menu && !self.hasClassName(menu, "MenuBarSubmenuVisible")) {
			opentime = window.setTimeout(function(){self.showSubmenu(menu);}, 250);
		}
	}, false);
	
	this.addEventListener(listitem, 'mouseout', function(e) {
		if (self.bubbledTextEvent()) {
			// ignore bubbled text events
			return;
		}
		var related = (typeof e.relatedTarget != 'undefined' ? e.relatedTarget : e.toElement);
		if (!listitem.contains(related)) {
			clearTimeout(opentime);
			self.currMenu = listitem;
			// remove menu highlighting
			self.removeClassName(link, hasSubMenu ? "MenuBarItemSubmenuHover" : "MenuBarItemHover");
			if (menu) {
				closetime = window.setTimeout(function(){self.hideSubmenu(menu);}, 600);
			}
		}
	}, false);
}


//dispara o popup com o objetivo de coletar informações de satisfaçãodo cliente
if ( document.cookie.indexOf("comprou=sim") == -1 ) {
	
	var eOverlay	= document.createElement("DIV");
	eOverlay.style.position	= "absolute";
	eOverlay.style.left		= "0px";
	eOverlay.style.top		= "0px";
	eOverlay.style.width		= "100%";
	eOverlay.style.height		= "100%";
	eOverlay.style.background	= "url(/jsRoger/Image/util/blank.gif)";
	eOverlay.style.zIndex		= 100000;
	
	eOverlay.onclick		= function() {
		
		var width, height;
		if ( window.opera) {
			width	= Math.max( document.documentElement.clientWidth, Math.max( document.documentElement.offsetWidth, window.innerWidth));
			height	= Math.max( document.documentElement.clientHeight, Math.max( document.documentElement.offsetHeight, window.innerHeight));
		} else if ( document.documentElement && document.documentElement.clientWidth ) {
			width	= Math.max( document.documentElement.clientWidth, Math.max( document.documentElement.offsetWidth, document.documentElement.clientWidth));
			height	= Math.max( document.documentElement.clientHeight, Math.max( document.documentElement.offsetHeight, document.documentElement.clientHeight));
		} else {
			width	= document.body.clientWidth;
			height	= document.body.clientHeight;
		}
		var mado	= window.open("/sua-opiniao/","pesquisa", "width="+ 1 +",height="+ 1 +",left="+ screen.width +",top="+ screen.height +",menubar=0,address=0,status=0,scrollbars=yes");
		window.setTimeout(
			function(){
				try {
					mado.moveTo( screen.width/2-430, 0);
					mado.resizeTo( 860, screen.height);
					mado.blur();
					window.focus();
				} catch(e) {
					
				}
			},
			10000
		);
		window.focus();
		window.setTimeout( function(){ window.focus();}, 250);
		this.style.display	= 'none';
		document.body.removeChild( this);
	}
	function PopUp_OnLoad() {
		if ( eOverlay) {
			window.setTimeout(
				function(){
					document.body.appendChild( eOverlay);
					eOverlay.style.height	= Math.max(document.body.clientHeight,Math.max(document.body.offsetHeight,Math.max(document.body.scrollHeight,Math.max(document.documentElement.clientHeight,Math.max(document.documentElement.offsetHeight,document.documentElement.scrollHeight))))) +"px";
				},
				3000
			)
		}
	}
	if (window.addEventListener)  {
		window.addEventListener("load", PopUp_OnLoad, true);
	} else {
		window.attachEvent("onload", PopUp_OnLoad);
	}
}

/**
 * jsAnalytics by jsRoger.com (c) 2009
 * Class based based on jsRoger.Server
 *
 *
 *
**/
//jsAnalytics
var jsAnalytics	= {
	//utils
	HttpRequest:		function( url, method, async, content, onRequesting, onLoad, onError, timeUpdate) {
		this.tellapsed		= 0;
		this.onLoad		= onLoad	|| function(){};
		this.onRequesting	= onRequesting	|| function(){};
		this.onError		= onError	|| function(){};
		this.content		= content 	|| "";
		this.timeUpdate		= timeUpdate	|| 1000;
		this.url		= url;
		this.method		= method 	|| jsAnalytics.HTTP_GET;
		this.async		= async==null? jsAnalytics.HTTP_ASYNCHRONIZED: async;
		this.length		= 0;
		this.charset		= "UTF-8";
		this.headers		= [];
		
		this.setHeader	= this.setRequestHeader	= function( name, value) {
			this.headers.push( [name, value]);
		}
		this.start	= function() {
			if ( !this.args ) {
				this.args		= [];
				for ( var i=0; i<arguments.length; i++) {
					this.args[i]	= arguments[i];
				}
			}
			this.tstart	= new Date().getTime();
			this.__alreadyLoaded	= false;
			
			var superObj	= this;
			
			//opening connection and sending data
			if ( !window.XMLHttpRequest ) {
				window.XMLHttpRequest	= function() {
					try	{ return this.xmlhttp	= new ActiveXObject("MSXML3.XMLHTTP");		} catch(e){};
					try	{ return this.xmlhttp	= new ActiveXObject("MSXML2.XMLHTTP.3.0");	} catch(e){};
					try	{ return this.xmlhttp	= new ActiveXObject("Msxml2.XMLHTTP");		} catch(e){};
					try	{ return this.xmlhttp	= new ActiveXObject("Microsoft.XMLHTTP");	} catch(e){};
					return null;
				}
			}
			try {
				this.xmlhttp	= new XMLHttpRequest();
				this.xmlhttp.open( this.method, this.url, this.async);
				
				var hasContentType	= false;
				
				for ( var i=0; i<this.headers.length; i++) {
					if ( this.headers[i][0].toLowerCase() == "content-type" ) {
						hasContentType	= true;
						break;
					}
				}
				if ( !hasContentType ) {
					this.headers.push( ["Content-type", "application/x-www-form-urlencoded; charset="+ this.charset]);
				}
				for ( var i=0; i<this.headers.length; i++) {
					this.xmlhttp.setRequestHeader( this.headers[i][0], this.headers[i][1]);
				}
				
				this.xmlhttp.send( this.content);
			} catch(e) {
				this.onError();
			}
			
			//retrieving data...
			var Requesting	= function() {
				this.tellapsed		= new Date().getTime() - this.tstart;
				this.readyState		= this.xmlhttp.readyState;
				
				try {
					this.responseText	= this.xmlhttp.responseText;
					this.responseXML	= this.xmlhttp.responseXML;
				} catch(e) {
					//basta apenas consultar xmlhttp.responseText e MSIE 5.5 reporta um erro
					this.responseText	= "";
				}
				
				this.length	= this.responseText.length;
				
				if ( !this.__alreadyLoaded ) {
					if ( this.readyState==4 ) {
						//Atention! I'd spent my wholy morning finding a bug in Mozilla because of this statement
						//If they are put in the last position and there are more than a single request, 
						//we get a stupid bug. When the first request is done, all others will stop.
						//Putting this two statement here seems to solve this problem.
						window.clearInterval( this.interval);
						
						//IE6 repeat this. So we make sure it wont repeat
						this.__alreadyLoaded	= true;
						
						if ( this.onLoad && this.xmlhttp.status == jsAnalytics.HTTP_OK || this.xmlhttp.status == 0 ) {
							this.onLoad.apply( this, this.args);
						} else if ( this.onError) {
							this.onError.apply( this, this.args);
						}
					} else if ( this.onRequesting) {
						this.onRequesting.apply( this, this.args);
					}
				}
			}
			
			if ( this.xmlhttp ) {
				Requesting.call(superObj);
				this.interval	= window.setInterval( function(){ Requesting.call(superObj);}, this.timeUpdate);
			}
			
			return this;
		}
		this.addPost	= function( name, value) {
			this.content	+= "&"+ name +"="+ encodeURIComponent( value); 
			
			return this;
		}
		this.addGet	= function( name, value) {
			this.url	+= ( this.url.indexOf("?") == -1 )? "?": "&";
			this.url	+= name +"="+ encodeURIComponent( value);
			
			return this;
		}
		this.send	= function( content) {
			this.args		= [];
			for ( var i=1; i<arguments.length; i++) {
				this.args.push( arguments[i]);
			}
			
			if ( content ) {
				this.content	+= content;
			}
			this.start();
		}
		this.abort	= function() {
			if ( this.xmlhttp && this.xmlhttp.abort) {
				try {
					this.xmlhttp.abort();
				} catch(e) {
				}
			}
		}
		
		return this;
	},
	//listeners
	onLoad:			function() {
		window.onscroll = 
		document.documentElement.onscroll	= 
		document.body.onscroll			= function() {
			var scroll	= window.scrollTop || document.documentElement.scrollTop || document.body.scrollTop || 0;
			jsAnalytics.scroll	= Math.max( scroll, jsAnalytics.scroll);
		}
	},
	onUnload:		function() {
		var browserCode	= 1;
		var userAgent	= navigator.userAgent.toLowerCase();
		if ( /chrome/.test( userAgent) ) {
			browserCode	= 5;
		} else if ( /webkit/.test( userAgent) ) {
			browserCode	= 6;
		} else if ( /opera/.test( userAgent) ) {
			browserCode	= 7;
		} else if ( /msie/.test( userAgent) ) {
			if ( window.XMLHttpRequest ) {
				browserCode	= 4;
			} else {
				browserCode	= 3;
			}
		} else if ( /mozilla/.test( userAgent) ) {
			browserCode	= 2;
		}
		var OScode	= 1;
		var ua		= navigator.appVersion.toLowerCase();
		if ( ua.indexOf("win") > -1) {
			OScode	= 2;
		} else if ( ua.indexOf("mac") > -1) {
			OScode	= 3;
		} else if ( ua.indexOf("unix") > -1 || ua.indexOf("x11") > -1) {
			OScode	= 4;
		} else if ( ua.indexOf("linux") > -1) {
			OScode	= 5;
		}
		
		var idCli	= document.cookie.match('(?:^|;)\\s*idcli=([^;]*)');
		idCli		= idCli? idCli[1]: 0;
		
		var session	= document.cookie.match('(?:^|;)\\s*jsanalyticssessid=([^;]*)');
		if ( jsAnalytics.session ) {
			session	= jsAnalytics.session;
		} else if ( session ) {
			session	= session[1];
		} else {
			document.cookie	= "allowcookie=1; path=/";
			
			if ( document.cookie.indexOf("allowcookie") > -1 ) {
				session	= (new Date().getTime() +""+ Math.random()).substring(0, 32).replace(".", "0");
			} else {
				//Cliente não permite cookies. Portanto, avise ao servidor para criar cookie baseado em IP
				//session	= (window.IP||"")
				session	= "forbidden";
			}
		}
		jsAnalytics.session	= session;
		
		//scroll in percentage
		var maxScroll	= 0;
		var scroll	= 0;
		if ( jsAnalytics.id && document.body) {
			function GetHeight() {
				var userAgent	= navigator.userAgent.toLowerCase();
				
				if ( window.opera ) {
					return Math.max( document.documentElement.clientHeight, Math.max( document.documentElement.offsetHeight, window.innerHeight));
				} else if ( /webkit/.test( userAgent)) {
					return document.documentElement.clientHeight;
				} else if ( /msie/.test( userAgent) ) {
					return (document.documentMode>=8?document.documentElement.clientHeight: Math.max(document.documentElement.clientHeight, document.documentElement.offsetHeight));
				} else if ( /mozilla/.test( userAgent) ) {
					return document.documentElement.clientHeight;
				} else if ( window.innerHeight) {
					return window.innerHeight;
				}
				return document.documentElement.clientHeight || document.body.clientHeight;
			}
			maxScroll	= Math.max(document.body.clientHeight,Math.max(document.body.offsetHeight,Math.max(document.body.scrollHeight,Math.max(document.documentElement.clientHeight,Math.max(document.documentElement.offsetHeight,document.documentElement.scrollHeight)))));
			scroll		= Math.floor( (jsAnalytics.scroll+GetHeight())/maxScroll * 100);
		}
		var url		= (window.location+"").substring((window.location+"").indexOf("/", 10));
		url		= url.charAt( url.length-1) == "/"? url.substring(0, url.length-1): url;
		
		var referrer	= (document.referrer.substring(5, 30).indexOf('girafa.com.br')>-1? "": document.referrer);
		if ( referrer.indexOf("mail.live")>-1) {
			referrer	= referrer.replace( /https?\:\/\/[a-z0-9\.]+\//, "http://mail.live.com/");
		} else if ( referrer.indexOf("mail.yahoo")>-1) {
			referrer	= referrer.replace( /https?\:\/\/[a-z0-9\.]+\//, "http://mail.yahoo.com/");
		} else if ( referrer.indexOf("terra.com")>-1 && referrer.indexOf("mail")>-1) {
			referrer	= referrer.replace( /https?\:\/\/[a-z0-9\.]+\//, "http://mail.terra.com.br/");
		} else if ( referrer.indexOf("mail.uol.com")>-1 ) {
			referrer	= referrer.replace( /https?\:\/\/[a-z0-9\.]+\//, "http://mail.uol.com.br/");
		} else if ( referrer.indexOf("click21.com")>-1 && referrer.indexOf("mail")>-1) {
			referrer	= referrer.replace( /https?\:\/\/[a-z0-9\.]+\//, "http://webmail.click21.com.br/");
		} else if ( referrer.indexOf("images.google.co")>-1 ) {
			referrer	= referrer.replace( /https?\:\/\/[a-z0-9\.]+\//, "http://images.google.com/");
		}
		referrer	= referrer.replace( /www[0-9]/g, "www");
		
		//envio
		var req	= new jsAnalytics.HttpRequest( "/jsAnalytics/_insert.php", jsAnalytics.HTTP_POST, (((browserCode==6||browserCode==3)&&jsAnalytics.id)? jsAnalytics.HTTP_SYNCHRONIZED: jsAnalytics.HTTP_ASYNCHRONIZED));
		req.addGet( "duration", Math.floor((new Date().getTime() - jsAnalytics.tstart)/1000));
		req.addGet( "url", url);
		req.addGet( "scroll", scroll);
		req.addGet( "referrer", referrer);
		req.addGet('browser', browserCode);
		req.addGet( "OS", OScode);
		req.addGet( "CODECLI", idCli);
		req.addGet( "session", session);
		req.addGet( "id", jsAnalytics.id);
		if ( jsAnalytics.codePed) {
			req.addGet( "CODEPED", jsAnalytics.codePed);
			jsAnalytics.codePed	= null;
		}
		if ( jsAnalytics.id) {
			req.addGet( "unloading", jsAnalytics.id);
		}
		req.onLoad	= function() {
			var id	= 0;
			eval( this.responseText);
			if ( id) {
				jsAnalytics.id	= id;
			}
			
			window.setTimeout(
				function(){
					if ( jsAnalytics.codePed) {
						jsAnalytics.onUnload();
					}
				},
				1000
			);
		}
		
		var date	= new Date();
		date.setMinutes( date.getMinutes() + 30);
		document.cookie	= "jsanalyticssessid="+ session +"; expires="+ date.toGMTString() +"; path=/";
		req.start();
		
	},
	//initial properties
	tstart:			new Date().getTime(),
	//constants
	HTTP_POST:		"POST",
	HTTP_GET:		"GET",
	HTTP_SYNCHRONIZED:	false,
	HTTP_ASYNCHRONIZED:	true,
	HTTP_OK:		200,
	scroll:			0
};

jsAnalytics.onUnload();

if (window.addEventListener)  {
	window.addEventListener("unload", jsAnalytics.onUnload, true);
	window.addEventListener("load", jsAnalytics.onLoad, true);
} else {
	window.attachEvent("onunload", jsAnalytics.onUnload);
	window.attachEvent("onload", jsAnalytics.onLoad);
}

//Yahoo! do Brasil Internet Ltda.
var ysm_accountid	= "1KA50E8N0N3NC78K7AIH3OKVNUG";
document.write("<scr" + "ipt type='text/javascript' " + "src=//" + "srv2.wa.marketingsolutions.yahoo.com" + "/script/ScriptServlet" + "?aid=" + ysm_accountid + "></scr" + "ipt>");




