
$(document).ready(function(){
	// cloud item
	$("a.tag_cloud_item").click(function(event){
		searchString = document.getElementById('search_string_input');
		searchForm = document.getElementById('search_string_form');
		searchString.value = $(this).html();
		searchForm.submit();		
		return false;
	});
});

function search_string_first_click (obj, defaultValue) {
	if (obj.value == defaultValue)
		obj.value = '';
}

function search_string_blur(obj, defaultValue) {
	if (obj.value == '')
		obj.value = defaultValue;
}


  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-25937430-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

