$(function(){
	// form di ricerca
	$('#trova').focus(function(){
		if($.trim(this.value) == 'Cerca nel sito'){
			this.value = '';
		}
		$(this).addClass('in');
	}).blur(function(){
		if($.trim(this.value) == ''){
			this.value = 'Cerca nel sito';
			$(this).removeClass('in');
		}
		
	});
	$('.open-new-window').click(function(){
		window.open(this.href);
		return false;		
	});	
	
	$('.pubblicita a').click(function(){
		var argomento = $('.tab a.current').html() || 'homepage';		
		_gaq.push(['_trackEvent', 'Mobihand', 'pubblicita lista articoli',argomento ]);
	});
	$('.colonna-dx .trovaprezzi-offer a').click(function(){			
		_gaq.push(['_trackEvent', 'Trovaprezzi', 'Sidebar']);
	});
	$('.last-topic a').click(function(){			
		_gaq.push(['_trackEvent', 'Forum', 'Last topic']);
	});
	
	$('.banner-store').click(function(){			
		_gaq.push(['_trackEvent', 'ToStore', 'Banner HomePage']);
		window.location = 'http://store.blackberryitalia.it';
	});
	
});

