для этого есть 
документация
	
	| 
		
			 Цитата: 
		
	 | 
	| 
		The $.inArray() method is similar to JavaScript's native .indexOf() method in that it returns -1 when it doesn't find a match. If the first element within the array matches value, $.inArray() returns 0.
	 | 
	
А вообще вы обманули сами себя)
Естественно 
$.inArray($('#datepicker_hid').val(), arr_arvl)==-1)
 будет 
true, тк 
-1 == -1. А  
$.inArray($('#datepicker_hid').val(), arr_arvl)>0
 будет 
false, тк 
-1 < 0.