var booDebug;
var navigateURL;

function openLinkWithEvent( url, eventCate, eventType, eventId ){
	
	_gaq.push(['_trackEvent', eventCate, eventType, eventId]);
	
	if(booDebug)
		alert( 'The event ' + eventType + ' of ' + eventCate + ' category has been tracked with id ' + eventId + ' and redirected to URL: ' + url );
	
	navigateURL = url;
	
	setTimeout( "navigateToURL(navigateURL);", 500 );
	
}

function trackEvent( eventCate, eventType, eventId ){
	
	_gaq.push(['_trackEvent', eventCate, eventType, eventId]);
	
	if(booDebug)
		alert( 'The event ' + eventType + ' of ' + eventCate + ' category has been tracked with id ' + eventId );
	
}

function navigateToURL( url ){
	
	location.href = url;
	
}
