function in_array(needle, haystack, strict_arg) {

	// Setup varibles
	var key = '';
	var strict = !!strict_arg;
	
	// Check to see if we are looking for a strict result
	if(strict) {
		
		// loop the haystack
		for (key in haystack) {
			
			// Compare the haystack index to the needle
			if (haystack[key] === needle) {
				
				// Return true
				return true;
				
			}
			
		}
		
	} else {
		
		// loop the haystack
		for (key in haystack) {
			
			// Compare the haystack index to the needle
			if (haystack[key] == needle) {
				
				// Return true
				return true;
				
			}
			
		}
		
	}
	
	// Return false
	return false;
	
}
