// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

function vote(id) {
	new Ajax.Request('/store/vote?id=' + id, 
		{asynchronous:true, 
		evalScripts:true, 
		on200:function(request){Element.show('vr_' + id );}, 
		on404:function(request){Element.hide('vr_' + id);}, 
		onLoading:function(request){Element.hide('p_' + id);}
		}); 
		
		return false;
}